From 4db907d86a36ff8d7db9f651ba35b393765abd6f Mon Sep 17 00:00:00 2001 From: chenzizhan Date: Tue, 21 Nov 2023 10:59:23 +0800 Subject: incrby batch --- include/fieldstat/fieldstat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h index 6f44d6a..4832a06 100644 --- a/include/fieldstat/fieldstat.h +++ b/include/fieldstat/fieldstat.h @@ -124,6 +124,9 @@ int fieldstat_register_hist(struct fieldstat *instance, const char *metric_name, */ int fieldstat_counter_incrby(struct fieldstat *instance, int cube_id, int metric_id, const struct fieldstat_tag *tags, size_t n_tag, long long increment); +int fieldstat_counter_incrby_batch(struct fieldstat *instance, + int cube_id, int metric_ids[], const struct fieldstat_tag *tags, size_t n_tag, long long increments[], int n_metric); + /* * @brief let the value of counter metric equal to value. Other annotations refer to fieldstat_counter_incrby. * @return Refer to fieldstat_counter_incrby. What's more, be cautious to call this function if the metric is a primary metric of a topk cube, -- cgit v1.2.3