LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
logit::PrometheusSample Struct Reference

A single metric sample with optional labels and timestamp. More...

#include <PrometheusTextFormatConfig.hpp>

Public Attributes

std::string name
 Full metric name (including suffixes).
 
double value = 0.0
 Sample value.
 
std::vector< PrometheusLabel > labels
 Labels for this sample.
 
int64_t timestamp_ms = 0
 Timestamp in ms; 0 = omit.
 

Detailed Description

A single metric sample with optional labels and timestamp.

Definition at line 27 of file PrometheusTextFormatConfig.hpp.

Member Data Documentation

◆ labels

std::vector<PrometheusLabel> logit::PrometheusSample::labels

Labels for this sample.

Definition at line 30 of file PrometheusTextFormatConfig.hpp.

◆ name

std::string logit::PrometheusSample::name

Full metric name (including suffixes).

Definition at line 28 of file PrometheusTextFormatConfig.hpp.

◆ timestamp_ms

int64_t logit::PrometheusSample::timestamp_ms = 0

Timestamp in ms; 0 = omit.

Definition at line 31 of file PrometheusTextFormatConfig.hpp.

◆ value

double logit::PrometheusSample::value = 0.0

Sample value.

Definition at line 29 of file PrometheusTextFormatConfig.hpp.


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