summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2023-11-21 10:59:23 +0800
committerchenzizhan <[email protected]>2023-11-21 10:59:23 +0800
commit4db907d86a36ff8d7db9f651ba35b393765abd6f (patch)
tree9c9bf7c29cd6f452cc883b8238ee985c287703de /include
parentc36286e590e3a169c011a2a15c2eb4e46785865d (diff)
incrby batch
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat.h3
1 files changed, 3 insertions, 0 deletions
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,