C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Member Functions | Related Functions | List of all members
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 &x) const noexcept
 

Related Functions

(Note that these are not member functions.)

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 file: