diff options
| author | chenzizhan <[email protected]> | 2023-11-21 10:59:23 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-11-21 10:59:23 +0800 |
| commit | 4db907d86a36ff8d7db9f651ba35b393765abd6f (patch) | |
| tree | 9c9bf7c29cd6f452cc883b8238ee985c287703de /include/fieldstat/fieldstat.h | |
| parent | c36286e590e3a169c011a2a15c2eb4e46785865d (diff) | |
incrby batch
Diffstat (limited to 'include/fieldstat/fieldstat.h')
| -rw-r--r-- | include/fieldstat/fieldstat.h | 3 |
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, |
