Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
Loading...
Searching...
No Matches
kcenon::monitoring::otel_metric_data Struct Reference

OpenTelemetry metric data representation. More...

#include <opentelemetry_adapter.h>

Collaboration diagram for kcenon::monitoring::otel_metric_data:
Collaboration graph

Public Member Functions

void add_attribute (const std::string &key, const std::string &attribute_value)
 

Public Attributes

std::string name
 
std::string description
 
std::string unit
 
double value {0.0}
 
std::vector< otel_attributeattributes
 
std::chrono::system_clock::time_point timestamp
 
otel_resource resource
 

Detailed Description

OpenTelemetry metric data representation.

Definition at line 167 of file opentelemetry_adapter.h.

Member Function Documentation

◆ add_attribute()

void kcenon::monitoring::otel_metric_data::add_attribute ( const std::string & key,
const std::string & attribute_value )
inline

Definition at line 176 of file opentelemetry_adapter.h.

176 {
177 attributes.emplace_back(key, attribute_value);
178 }
std::vector< otel_attribute > attributes

References attributes.

Member Data Documentation

◆ attributes

std::vector<otel_attribute> kcenon::monitoring::otel_metric_data::attributes

Definition at line 172 of file opentelemetry_adapter.h.

Referenced by add_attribute().

◆ description

std::string kcenon::monitoring::otel_metric_data::description

Definition at line 169 of file opentelemetry_adapter.h.

◆ name

std::string kcenon::monitoring::otel_metric_data::name

Definition at line 168 of file opentelemetry_adapter.h.

◆ resource

otel_resource kcenon::monitoring::otel_metric_data::resource

Definition at line 174 of file opentelemetry_adapter.h.

◆ timestamp

std::chrono::system_clock::time_point kcenon::monitoring::otel_metric_data::timestamp

Definition at line 173 of file opentelemetry_adapter.h.

◆ unit

std::string kcenon::monitoring::otel_metric_data::unit

Definition at line 170 of file opentelemetry_adapter.h.

◆ value

double kcenon::monitoring::otel_metric_data::value {0.0}

Definition at line 171 of file opentelemetry_adapter.h.

171{0.0};

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