summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2023-03-24 14:10:59 +0800
committerfumingwei <[email protected]>2023-03-24 14:10:59 +0800
commite09e7f397145613f1776622a2219047b9066f3a5 (patch)
tree57529534a861fffe98637fcd734b084bda8a7e0b /inc
parenta52d18031284607d4c75878b14fdb7aff0396665 (diff)
feature:summay和histogram注册接口新增output_window参数
Diffstat (limited to 'inc')
-rw-r--r--inc/fieldstat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/inc/fieldstat.h b/inc/fieldstat.h
index 64aff47..4c64ea8 100644
--- a/inc/fieldstat.h
+++ b/inc/fieldstat.h
@@ -170,10 +170,11 @@ void fieldstat_passive_output(struct fieldstat_instance *instance);
* of figures in a decimal number that will be maintained. E.g. a value of 3 will mean
* the results from the histogram will be accurate up to the first three digits. Must
* be a value between 1 and 5 (inclusive).
+ * @param output_window The of output data. 1: output the data in the time interval window, 0: output data all the time.
* @return metric id: -1 is failed, >= 0 is success
*/
int fieldstat_register_histogram(struct fieldstat_instance *instance, const char *field_name, const struct fieldstat_tag tags[], size_t n_tag,
- const char *upper_inclusive_bounds, const long long lowest_trackable_value, long long highest_trackable_value, int significant_figures);
+ const char *upper_inclusive_bounds, const long long lowest_trackable_value, long long highest_trackable_value, int significant_figures, int output_window);
/**
* Register summary metric
@@ -190,10 +191,11 @@ int fieldstat_register_histogram(struct fieldstat_instance *instance, const char
* of figures in a decimal number that will be maintained. E.g. a value of 3 will mean
* the results from the histogram will be accurate up to the first three digits. Must
* be a value between 1 and 5 (inclusive).
+ * @param output_window The of output data. 1: output the data in the time interval window, 0: output data all the time.
* @return metric id: -1 is failed, >= 0 is success
*/
int fieldstat_register_summary(struct fieldstat_instance *instance, const char *field_name, const struct fieldstat_tag tags[], size_t n_tag,
- const char *quantiles, const long long lowest_trackable_value, long long highest_trackable_value, int significant_figures);
+ const char *quantiles, const long long lowest_trackable_value, long long highest_trackable_value, int significant_figures, int output_window);
/**
* Register dynamic fieldstat instance.