mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-05-24 22:23:43 +02:00
29 lines
415 B
C++
29 lines
415 B
C++
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "client_metric.h"
|
|
|
|
namespace prometheus {
|
|
|
|
class Metric {
|
|
|
|
public:
|
|
enum class Type {
|
|
Counter,
|
|
Gauge,
|
|
Summary,
|
|
Histogram,
|
|
Untyped,
|
|
};
|
|
|
|
Type type;
|
|
|
|
Metric (Type type_) : type(type_) {}
|
|
virtual ~Metric() = default;
|
|
|
|
virtual ClientMetric Collect() const = 0;
|
|
|
|
};
|
|
|
|
} // namespace prometheus
|