APIMetricSet class abstract

Base class for an APIMetric set.

Implementers

Constructors

APIMetricSet({Map<String, APIMetric>? metrics})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasMetrics bool
Returns true if any metric is set. See metrics.
no setter
metrics Map<String, APIMetric>
Returns the current metrics.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
disposeAsync() Future<void>
Asynchronous call to dispose.
getMetric(String name) APIMetric?
Returns a metric.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMetric(String name, {Duration? duration, String? description, int? n}) APIMetric
Set a metric.
startMetric(String name, {String? description}) DateTime
Starts a metric chronometer.
stopAllMetrics({DateTime? now}) → void
stopMetric(String name, {DateTime? now}) Duration?
Stops a metric previously started and adds it to metrics. See startMetric.
toString() String
A string representation of this object.
inherited

Operators

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