PeriodicExportingMetricReader class
PeriodicExportingMetricReader is a MetricReader that periodically collects metrics and exports them.
- Inheritance
-
- Object
- MetricReader
- PeriodicExportingMetricReader
Constructors
- PeriodicExportingMetricReader(MetricExporter _exporter, {Duration interval = const Duration(seconds: 60), Duration timeout = const Duration(seconds: 30)})
- Creates a new PeriodicExportingMetricReader.
Properties
- exporter → MetricExporter
-
The configured exporter that this reader sends metrics to.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- meterProvider → MeterProvider?
-
Get the MeterProvider this reader is associated with.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
collect(
) → Future< MetricData> -
Collect metrics from the MeterProvider.
override
-
forceFlush(
) → Future< bool> -
Force flush metrics through the associated exporter.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerMeterProvider(
MeterProvider provider) → void -
Register a MeterProvider with this reader.
inherited
-
shutdown(
) → Future< bool> -
Shutdown the metric reader.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited