C++ Actor Framework 1.0.0
Loading...
Searching...
No Matches
caf::telemetry::label Class Reference

An (immutable) key-value pair for adding extra dimensions to metrics. More...

#include <label.hpp>

Inheritance diagram for caf::telemetry::label:
caf::detail::comparable< label >

Public Member Functions

 label (label &&)=default
 
 label (const label &)=default
 
labeloperator= (label &&)=default
 
labeloperator= (const label &)=default
 
 label (std::string_view name, std::string_view value)
 
 label (const label_view &view)
 
std::string_view name () const noexcept
 
std::string_view value () const noexcept
 
void value (std::string_view new_value)
 
const std::string & str () const noexcept
 Returns the label in name=value notation.
 
int compare (const label_view &other) const noexcept
 
int compare (const label &other) const noexcept
 

Static Public Member Functions

template<class T1 , class T2 >
static int compare (const T1 &lhs, const T2 &rhs) noexcept
 

Related Symbols

(Note that these are not member symbols.)

CAF_CORE_EXPORT std::string to_string (const label &x)
 Returns the label in name=value notation.
 

Detailed Description

An (immutable) key-value pair for adding extra dimensions to metrics.

Constructor & Destructor Documentation

◆ label()

caf::telemetry::label::label ( std::string_view name,
std::string_view value )
Precondition
name matches the regex [a-zA-Z_:][a-zA-Z0-9_:]*

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