Class MetricReader
java.lang.Object
io.opencensus.exporter.metrics.util.MetricReader
Helper class to read all available
Metrics from a MetricProducerManager and
exports them to a MetricExporter.- Since:
- 0.19
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricReadercreate(MetricReader.Options options) Creates a newMetricReader.voidreadAndExport(MetricExporter metricExporter) Reads the metrics from theMetricProducerManagerand exports them to themetricExporter.
-
Method Details
-
create
Creates a newMetricReader.- Parameters:
options- the options forMetricReader.- Returns:
- a new
MetricReader. - Since:
- 0.19
-
readAndExport
Reads the metrics from theMetricProducerManagerand exports them to themetricExporter.- Parameters:
metricExporter- the exporter called to export the metrics read.- Since:
- 0.19
-