Sample class Null safety

A Sample represents a sampled value of a metric.

Constructors

Sample(String name, List<String> labelNames, List<String> labelValues, double value, [int? timestamp])
Constructs a new sample with name, labelNames, labelValues as well as the sampled value and an optional timestamp. labelNames and labelValues can be empty lists.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
labelNames List<String>
The unmodifiable list of label names corresponding to the labelValues. Label values and name with the same index belong to each other.
final
labelValues List<String>
The unmodifiable list of label values corresponding to the labelNames. Label values and name with the same index belong to each other.
final
name String
The name of the metric.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
timestamp int?
The timestamp of the moment the sample was taken.
final
value double
The sampled value of the metric.
final

Methods

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

Operators

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