NVIDIA DeepStream SDK API Reference

9.2 Release
exporter::memory::SimpleAggregateInMemoryMetricData Class Referencefinal

Detailed Description

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.

Inheritance diagram for exporter::memory::SimpleAggregateInMemoryMetricData:
Collaboration diagram for exporter::memory::SimpleAggregateInMemoryMetricData:

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 ()
 

Member Typedef Documentation

◆ AttributeToPoint [1/2]

using exporter::memory::SimpleAggregateInMemoryMetricData::AttributeToPoint = std::map<opentelemetry::sdk::metrics::PointAttributes, opentelemetry::sdk::metrics::PointType>

◆ AttributeToPoint [2/2]

using exporter::memory::SimpleAggregateInMemoryMetricData::AttributeToPoint = std::map<opentelemetry::sdk::metrics::PointAttributes, opentelemetry::sdk::metrics::PointType>

Member Function Documentation

◆ Add() [1/2]

void exporter::memory::SimpleAggregateInMemoryMetricData::Add ( std::unique_ptr< sdk::metrics::ResourceMetrics >  resource_metrics)
overridevirtual

◆ Add() [2/2]

void exporter::memory::SimpleAggregateInMemoryMetricData::Add ( std::unique_ptr< sdk::metrics::ResourceMetrics >  resource_metrics)
overridevirtual

◆ Clear() [1/2]

void exporter::memory::SimpleAggregateInMemoryMetricData::Clear ( )

◆ Clear() [2/2]

void exporter::memory::SimpleAggregateInMemoryMetricData::Clear ( )

◆ Get() [1/2]

const AttributeToPoint& exporter::memory::SimpleAggregateInMemoryMetricData::Get ( const std::string &  scope,
const std::string &  metric 
)

◆ Get() [2/2]

const AttributeToPoint& exporter::memory::SimpleAggregateInMemoryMetricData::Get ( const std::string &  scope,
const std::string &  metric 
)

The documentation for this class was generated from the following file: