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

OpenTelemetry attribute representation. More...

#include <opentelemetry_adapter.h>

Collaboration diagram for kcenon::monitoring::otel_attribute:
Collaboration graph

Public Member Functions

 otel_attribute ()=default
 
 otel_attribute (const std::string &k, const std::string &v)
 
bool operator== (const otel_attribute &other) const
 

Public Attributes

std::string key
 
std::string value
 

Detailed Description

OpenTelemetry attribute representation.

Definition at line 74 of file opentelemetry_adapter.h.

Constructor & Destructor Documentation

◆ otel_attribute() [1/2]

kcenon::monitoring::otel_attribute::otel_attribute ( )
default

◆ otel_attribute() [2/2]

kcenon::monitoring::otel_attribute::otel_attribute ( const std::string & k,
const std::string & v )
inline

Member Function Documentation

◆ operator==()

bool kcenon::monitoring::otel_attribute::operator== ( const otel_attribute & other) const
inline

Definition at line 81 of file opentelemetry_adapter.h.

81 {
82 return key == other.key && value == other.value;
83 }

References key, kcenon::monitoring::other, and value.

Member Data Documentation

◆ key

std::string kcenon::monitoring::otel_attribute::key

Definition at line 75 of file opentelemetry_adapter.h.

Referenced by operator==(), and TEST_F().

◆ value

std::string kcenon::monitoring::otel_attribute::value

Definition at line 76 of file opentelemetry_adapter.h.

Referenced by operator==(), and TEST_F().


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