First Commit
This commit is contained in:
commit
dbdc5bcc4a
1791 files changed
+489451
No files matched your search
@@ -0,0 +1,29 @@
|
||||
#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
|
||||
Reference in new issue
Block a user