mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 17:48:21 +00:00
Fix a reporter message in sumstats.
This commit is contained in:
parent
4f4ef99a6b
commit
26f8bd7ad7
1 changed files with 7 additions and 3 deletions
|
@ -122,6 +122,12 @@ export {
|
||||||
## A callback with the full collection of Results for
|
## A callback with the full collection of Results for
|
||||||
## this SumStat.
|
## this SumStat.
|
||||||
epoch_finished: function(rt: SumStats::ResultTable) &optional;
|
epoch_finished: function(rt: SumStats::ResultTable) &optional;
|
||||||
|
#epoch_finished: function(num_keys: count) &optional;
|
||||||
|
|
||||||
|
## A callback that receives each of the results at the
|
||||||
|
## end of the analysis epoch. The function will be
|
||||||
|
## called once for each key.
|
||||||
|
#epoch_finished_result: function(key::SumStats::Key, result: SumStats::Result) &optional;
|
||||||
};
|
};
|
||||||
|
|
||||||
## Create a summary statistic.
|
## Create a summary statistic.
|
||||||
|
@ -162,9 +168,6 @@ export {
|
||||||
## Returns: The result for the requested sumstat key.
|
## Returns: The result for the requested sumstat key.
|
||||||
global request_key: function(ss_name: string, key: Key): Result;
|
global request_key: function(ss_name: string, key: Key): Result;
|
||||||
|
|
||||||
## This record is primarily used for internal threshold tracking.
|
|
||||||
type Thresholding: record {};
|
|
||||||
|
|
||||||
## This event is generated when thresholds are reset for a SumStat.
|
## This event is generated when thresholds are reset for a SumStat.
|
||||||
##
|
##
|
||||||
## name: SumStats name that thresholds were reset for.
|
## name: SumStats name that thresholds were reset for.
|
||||||
|
@ -429,6 +432,7 @@ function observe(id: string, key: Key, obs: Observation)
|
||||||
# future if on demand access is provided to the
|
# future if on demand access is provided to the
|
||||||
# SumStats results.
|
# SumStats results.
|
||||||
if ( ! ss?$epoch_finished &&
|
if ( ! ss?$epoch_finished &&
|
||||||
|
r$ssname in threshold_tracker &&
|
||||||
( ss?$threshold &&
|
( ss?$threshold &&
|
||||||
key in threshold_tracker[r$ssname] &&
|
key in threshold_tracker[r$ssname] &&
|
||||||
threshold_tracker[r$ssname][key] != 0 ) ||
|
threshold_tracker[r$ssname][key] != 0 ) ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue