mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Change all instruments to only handle doubles
This commit is contained in:
parent
6eab954fd2
commit
46ff48c29a
35 changed files with 635 additions and 1148 deletions
|
@ -32,12 +32,12 @@ namespace detail {
|
|||
class ProtocolStats {
|
||||
public:
|
||||
struct Protocol {
|
||||
std::shared_ptr<telemetry::IntGauge> active;
|
||||
std::shared_ptr<telemetry::IntCounter> total;
|
||||
std::shared_ptr<telemetry::Gauge> active;
|
||||
std::shared_ptr<telemetry::Counter> total;
|
||||
ssize_t max = 0;
|
||||
|
||||
Protocol(const std::shared_ptr<telemetry::IntGaugeFamily>& active_family,
|
||||
const std::shared_ptr<telemetry::IntCounterFamily>& total_family, std::string protocol)
|
||||
Protocol(const std::shared_ptr<telemetry::GaugeFamily>& active_family,
|
||||
const std::shared_ptr<telemetry::CounterFamily>& total_family, std::string protocol)
|
||||
: active(active_family->GetOrAdd({{"protocol", protocol}})),
|
||||
total(total_family->GetOrAdd({{"protocol", protocol}})) {}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue