Prometheus Client Library for Modern C++
Loading...
Searching...
No Matches
info.h
1#pragma once
2
3#include "prometheus/client_metric.h"
4#include "prometheus/detail/builder.h" // IWYU pragma: export
5#include "prometheus/detail/core_export.h"
6#include "prometheus/metric_type.h"
7
8namespace prometheus {
9
15
26class PROMETHEUS_CPP_CORE_EXPORT Info {
27 public:
28 static const MetricType metric_type{MetricType::Info};
29
31 Info() = default;
32
36 ClientMetric Collect() const;
37};
38
66PROMETHEUS_CPP_CORE_EXPORT detail::Builder<Info> BuildInfo();
67
68} // namespace prometheus
A info metric to represent textual information which should not change during process lifetime.
Definition info.h:26
Info()=default
Create a info.
Definition client_metric.h:12