mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Remove the is_sum argument from BIF histogram creation methods
This commit is contained in:
parent
0ee3b8c506
commit
53c3d2032a
2 changed files with 3 additions and 6 deletions
|
@ -428,8 +428,7 @@ function register_histogram_family(opts: MetricOpts): HistogramFamily
|
|||
opts$labels,
|
||||
opts$bounds,
|
||||
opts$help_text,
|
||||
opts$unit,
|
||||
opts?$is_total ? opts$is_total : F
|
||||
opts$unit
|
||||
);
|
||||
return HistogramFamily($__family=f, $__labels=opts$labels);
|
||||
}
|
||||
|
|
|
@ -367,8 +367,7 @@ function Telemetry::__int_histogram_family%(prefix: string,
|
|||
labels: string_vec,
|
||||
bounds: int_vec,
|
||||
helptext: string &default = "Zeek Script Metric",
|
||||
unit: string &default = "",
|
||||
is_sum: bool &default = F%): opaque of int_histogram_metric_family
|
||||
unit: string &default = ""%): opaque of int_histogram_metric_family
|
||||
%{
|
||||
auto lbl_vec = sv_vec(labels->AsVectorVal());
|
||||
auto std_bounds = to_std_vec<int64_t>(bounds);
|
||||
|
@ -430,8 +429,7 @@ function Telemetry::__dbl_histogram_family%(prefix: string,
|
|||
labels: string_vec,
|
||||
bounds: double_vec,
|
||||
helptext: string &default = "Zeek Script Metric",
|
||||
unit: string &default = "",
|
||||
is_sum: bool &default = F%): opaque of dbl_histogram_metric_family
|
||||
unit: string &default = ""%): opaque of dbl_histogram_metric_family
|
||||
%{
|
||||
auto lbl_vec = sv_vec(labels->AsVectorVal());
|
||||
auto std_bounds = to_std_vec<double>(bounds);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue