mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +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$labels,
|
||||||
opts$bounds,
|
opts$bounds,
|
||||||
opts$help_text,
|
opts$help_text,
|
||||||
opts$unit,
|
opts$unit
|
||||||
opts?$is_total ? opts$is_total : F
|
|
||||||
);
|
);
|
||||||
return HistogramFamily($__family=f, $__labels=opts$labels);
|
return HistogramFamily($__family=f, $__labels=opts$labels);
|
||||||
}
|
}
|
||||||
|
|
|
@ -367,8 +367,7 @@ function Telemetry::__int_histogram_family%(prefix: string,
|
||||||
labels: string_vec,
|
labels: string_vec,
|
||||||
bounds: int_vec,
|
bounds: int_vec,
|
||||||
helptext: string &default = "Zeek Script Metric",
|
helptext: string &default = "Zeek Script Metric",
|
||||||
unit: string &default = "",
|
unit: string &default = ""%): opaque of int_histogram_metric_family
|
||||||
is_sum: bool &default = F%): opaque of int_histogram_metric_family
|
|
||||||
%{
|
%{
|
||||||
auto lbl_vec = sv_vec(labels->AsVectorVal());
|
auto lbl_vec = sv_vec(labels->AsVectorVal());
|
||||||
auto std_bounds = to_std_vec<int64_t>(bounds);
|
auto std_bounds = to_std_vec<int64_t>(bounds);
|
||||||
|
@ -430,8 +429,7 @@ function Telemetry::__dbl_histogram_family%(prefix: string,
|
||||||
labels: string_vec,
|
labels: string_vec,
|
||||||
bounds: double_vec,
|
bounds: double_vec,
|
||||||
helptext: string &default = "Zeek Script Metric",
|
helptext: string &default = "Zeek Script Metric",
|
||||||
unit: string &default = "",
|
unit: string &default = ""%): opaque of dbl_histogram_metric_family
|
||||||
is_sum: bool &default = F%): opaque of dbl_histogram_metric_family
|
|
||||||
%{
|
%{
|
||||||
auto lbl_vec = sv_vec(labels->AsVectorVal());
|
auto lbl_vec = sv_vec(labels->AsVectorVal());
|
||||||
auto std_bounds = to_std_vec<double>(bounds);
|
auto std_bounds = to_std_vec<double>(bounds);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue