HistogramStorage<T extends num> class
HistogramStorage is used for storing and accumulating histogram data.
- Inheritance
-
- Object
- MetricStorage
- HistogramStorageBase<
T> - HistogramStorage
- Mixed-in types
Constructors
-
HistogramStorage({required List<
double> boundaries, bool recordMinMax = true, ExemplarFilter? exemplarFilter}) - Creates a new HistogramStorage instance.
Properties
-
boundaries
→ List<
double> -
The bucket boundaries for this histogram.
final
- exemplarFilter → ExemplarFilter
-
The exemplar filter used by this storage.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- recordMinMax → bool
-
Whether to record min and max values.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
collectPoints(
) → List< MetricPoint< HistogramValue> > -
Collects the current set of metric points.
override
-
getValue(
[Attributes? attributes]) → HistogramValue -
Gets the current histogram value for the given attributes.
If no attributes are provided, returns a combined HistogramValue across all attribute sets.
override
-
maybeOffer(
ExemplarReservoir reservoir, T value, Attributes attributes, Context context, DateTime timestamp, [int? bucketIndex]) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
record(
T value, [Attributes? attributes, Context? context, DateTime? timestamp]) → void -
Records a measurement with the given attributes and context.
override
-
reset(
) → void -
Resets all points (for delta temporality).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited