mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00

- Fixing the parts of the `make restdoc` and `make doc` process that were broken by the last Bro script re-organization - Generated documentation for Bro scripts derived from BiFs now use the original BiF source file as the "original source file" link - Renaming of the internal POLICYDEST definition and other misc places that refer to "policy" scripts; that terminology doesn't make total sense now - Added a documentation blacklist reminder test that will fail if there's scripts that are blacklisted from being documentated because they're still in progress - Some minor Bro script changes to fix small @load dependency errors Addresses #543
19 lines
473 B
Text
19 lines
473 B
Text
@load base/frameworks/metrics
|
|
|
|
redef enum Metrics::ID += {
|
|
CONNS_ORIGINATED,
|
|
CONNS_RESPONDED
|
|
};
|
|
|
|
event bro_init()
|
|
{
|
|
Metrics::configure(CONNS_ORIGINATED, [$aggregation_mask=24, $break_interval=5mins]);
|
|
Metrics::configure(CONNS_RESPONDED, [$aggregation_mask=24, $break_interval=5mins]);
|
|
}
|
|
|
|
event connection_established(c: connection)
|
|
{
|
|
Metrics::add_data(CONNS_ORIGINATED, [$host=c$id$orig_h], 1);
|
|
Metrics::add_data(CONNS_RESPONDED, [$host=c$id$resp_h], 1);
|
|
}
|
|
|