SentryMeasurementUnit enum

The unit of measurement of a metric value. Units augment metric values by giving them a magnitude and semantics. Units and their precisions are uniquely represented by a string identifier.

This is a singe enum because Enhanced Enums in Dart is only available in newer versions.

Inheritance

Constructors

SentryMeasurementUnit()
const

Values

nanoSecond → const SentryMeasurementUnit

Duration units Nanosecond ("nanosecond"), 10^-9 seconds.

microSecond → const SentryMeasurementUnit

Microsecond ("microsecond"), 10^-6 seconds.

milliSecond → const SentryMeasurementUnit

Millisecond ("millisecond"), 10^-3 seconds.

second → const SentryMeasurementUnit

Full second ("second").

minute → const SentryMeasurementUnit

Minute ("minute"), 60 seconds.

hour → const SentryMeasurementUnit

Hour ("hour"), 3600 seconds.

day → const SentryMeasurementUnit

Day ("day"), 86,400 seconds.

week → const SentryMeasurementUnit

Week ("week"), 604,800 seconds.

bit → const SentryMeasurementUnit

Information units Bit ("bit"), corresponding to 1/8 of a byte.

byte → const SentryMeasurementUnit

Byte ("byte").

kiloByte → const SentryMeasurementUnit

Kilobyte ("kilobyte"), 10^3 bytes.

kibiByte → const SentryMeasurementUnit

Kibibyte ("kibibyte"), 2^10 bytes.

megaByte → const SentryMeasurementUnit

Megabyte ("megabyte"), 10^6 bytes.

mebiByte → const SentryMeasurementUnit

Mebibyte ("mebibyte"), 2^20 bytes.

gigaByte → const SentryMeasurementUnit

Gigabyte ("gigabyte"), 10^9 bytes.

gibiByte → const SentryMeasurementUnit

Gibibyte ("gibibyte"), 2^30 bytes.

teraByte → const SentryMeasurementUnit

Terabyte ("terabyte"), 10^12 bytes.

tebiByte → const SentryMeasurementUnit

Tebibyte ("tebibyte"), 2^40 bytes.

petaByte → const SentryMeasurementUnit

Petabyte ("petabyte"), 10^15 bytes.

pebiByte → const SentryMeasurementUnit

Pebibyte ("pebibyte"), 2^50 bytes.

exaByte → const SentryMeasurementUnit

Exabyte ("exabyte"), 10^18 bytes.

exbiByte → const SentryMeasurementUnit

Exbibyte ("exbibyte"), 2^60 bytes.

ratio → const SentryMeasurementUnit

Fraction units Floating point fraction of 1.

percent → const SentryMeasurementUnit

Ratio expressed as a fraction of 100. 100% equals a ratio of 1.0.

none → const SentryMeasurementUnit

Untyped value without a unit.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SentryMeasurementUnit>
A constant List of the values in this enum, in order of their declaration.