An implementation of InMemoryMetricData that stores only the most recent data point in each time series, and allows convenient lookups of time series.
This makes simple tests easier to write.
Definition at line 52 of file includes/opentelemetry/exporters/memory/in_memory_metric_data.h.


Public Types | |
| using | AttributeToPoint = std::map< opentelemetry::sdk::metrics::PointAttributes, opentelemetry::sdk::metrics::PointType > |
| using | AttributeToPoint = std::map< opentelemetry::sdk::metrics::PointAttributes, opentelemetry::sdk::metrics::PointType > |
Public Member Functions | |
| void | Add (std::unique_ptr< sdk::metrics::ResourceMetrics > resource_metrics) override |
| const AttributeToPoint & | Get (const std::string &scope, const std::string &metric) |
| void | Clear () |
| void | Add (std::unique_ptr< sdk::metrics::ResourceMetrics > resource_metrics) override |
| const AttributeToPoint & | Get (const std::string &scope, const std::string &metric) |
| void | Clear () |
| using exporter::memory::SimpleAggregateInMemoryMetricData::AttributeToPoint = std::map<opentelemetry::sdk::metrics::PointAttributes, opentelemetry::sdk::metrics::PointType> |
Definition at line 56 of file includes/opentelemetry/exporters/memory/in_memory_metric_data.h.
| using exporter::memory::SimpleAggregateInMemoryMetricData::AttributeToPoint = std::map<opentelemetry::sdk::metrics::PointAttributes, opentelemetry::sdk::metrics::PointType> |
Definition at line 56 of file 9.2/includes/opentelemetry/exporters/memory/in_memory_metric_data.h.
|
overridevirtual |
Implements exporter::memory::InMemoryMetricData.
|
overridevirtual |
Implements exporter::memory::InMemoryMetricData.
| void exporter::memory::SimpleAggregateInMemoryMetricData::Clear | ( | ) |
| void exporter::memory::SimpleAggregateInMemoryMetricData::Clear | ( | ) |
| const AttributeToPoint& exporter::memory::SimpleAggregateInMemoryMetricData::Get | ( | const std::string & | scope, |
| const std::string & | metric | ||
| ) |
| const AttributeToPoint& exporter::memory::SimpleAggregateInMemoryMetricData::Get | ( | const std::string & | scope, |
| const std::string & | metric | ||
| ) |