mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Move trigger stats to telemetry instruments
This commit is contained in:
parent
77c05357b5
commit
8b4af06484
2 changed files with 25 additions and 4 deletions
|
@ -18,6 +18,13 @@ class Val;
|
|||
|
||||
using ValPtr = IntrusivePtr<Val>;
|
||||
|
||||
namespace telemetry {
|
||||
class Gauge;
|
||||
class Counter;
|
||||
using GaugePtr = std::shared_ptr<Gauge>;
|
||||
using CounterPtr = std::shared_ptr<Counter>;
|
||||
} // namespace telemetry
|
||||
|
||||
namespace detail {
|
||||
|
||||
class Frame;
|
||||
|
@ -187,7 +194,8 @@ public:
|
|||
private:
|
||||
using TriggerList = std::list<Trigger*>;
|
||||
TriggerList* pending;
|
||||
unsigned long total_triggers = 0;
|
||||
telemetry::CounterPtr trigger_count;
|
||||
telemetry::GaugePtr trigger_pending;
|
||||
};
|
||||
|
||||
} // namespace trigger
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue