Remove the is_sum argument from BIF histogram creation methods

This commit is contained in:
Tim Wojtulewicz 2024-04-24 12:08:48 -07:00
parent 0ee3b8c506
commit 53c3d2032a
2 changed files with 3 additions and 6 deletions

View file

@ -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);
}

View file

@ -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);