mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Expose telemetry API to scripting land
This commit is contained in:
parent
d4466db5ce
commit
2bac354e43
20 changed files with 887 additions and 11 deletions
|
@ -31,6 +31,12 @@ public:
|
|||
|
||||
virtual ~Manager();
|
||||
|
||||
/**
|
||||
* Initialization of the manager. This is called late during Bro's
|
||||
* initialization after any scripts are processed.
|
||||
*/
|
||||
virtual void InitPostScript();
|
||||
|
||||
/**
|
||||
* @return A counter metric family. Creates the family lazily if necessary.
|
||||
* @param prefix The prefix (namespace) this family belongs to.
|
||||
|
@ -384,7 +390,7 @@ public:
|
|||
return fam.GetOrAdd({});
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
IntCounterFamily
|
||||
IntCounterFam(std::string_view prefix, std::string_view name,
|
||||
Span<const std::string_view> labels,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue