MetricType enum Null safety

Defines the different metric type supported by Prometheus.

Inheritance

Constructors

MetricType()
const

Values

counter → const MetricType

MetricType.counter is a monotonically increasing counter.

const MetricType(0)
gauge → const MetricType

MetricType.gauge represents a value that can go up and down.

const MetricType(1)
summary → const MetricType

A MetricType.summary samples observations over sliding windows of time and provides instantaneous insight into their distributions, frequencies, and sums.

const MetricType(2)
histogram → const MetricType

MetricType.histograms allow aggregatable distributions of events, such as request latencies.

const MetricType(3)
untyped → const MetricType

MetricType.untyped can be used for metrics that don't fit the other types.

const MetricType(4)

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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<MetricType>
A constant List of the values in this enum, in order of their declaration.
[counter, gauge, summary, histogram, untyped]