summaryrefslogtreecommitdiff
path: root/include/fieldstat/fieldstat.h
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-07-01 14:12:17 +0800
committerchenzizhan <[email protected]>2024-07-01 14:12:17 +0800
commit6b74ef667309b726bcb6a89e9eae88fa94fc63f5 (patch)
treec98694813851cd3b995e369021310b7ee1d964c9 /include/fieldstat/fieldstat.h
parentc554605af35c4894466a51e2764b8e9416570eb2 (diff)
refactor: exdata in cells. no cell id anymore
Diffstat (limited to 'include/fieldstat/fieldstat.h')
-rw-r--r--include/fieldstat/fieldstat.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h
index b0e679a..a4b58e2 100644
--- a/include/fieldstat/fieldstat.h
+++ b/include/fieldstat/fieldstat.h
@@ -184,16 +184,12 @@ struct fieldstat_tag_list
void fieldstat_get_cubes(const struct fieldstat *instance, int **cube_ids, int *n_cube);
/*
- * @brief Get all the registered metrics of a cube.
- * @return return FS_ERR_NULL_HANDLER or FS_ERR_INVALID_CUBE_ID. Or FS_OK
-*/
-int fieldstat_get_metrics_used_by_cube(const struct fieldstat *instance, int cube_id, int **metric_id_out, size_t *n_metric);
-
-/*
* @brief Get all the registered metrics by fieldstat_register_counter, fieldstat_register_hll, fieldstat_register_hist.
*/
void fieldstat_get_metrics(const struct fieldstat *instance, int **metric_id_out, size_t *n_metric);
+void fieldstat_get_metric_in_cell(const struct fieldstat *instance, int cube_id, const struct fieldstat_tag_list *tags, int **metric_id_out, size_t *n_metric_out);
+
// query the name of the metric, return NULL if metric_id is invalid.
const char *fieldstat_get_metric_name(const struct fieldstat *instance, int metric_id);
@@ -201,12 +197,6 @@ const char *fieldstat_get_metric_name(const struct fieldstat *instance, int metr
enum metric_type fieldstat_get_metric_type(const struct fieldstat *instance, int metric_id);
/*
- get the tags added to metric when calling fieldstat_counter_incrby, fieldstat_counter_set, fieldstat_hll_add, fieldstat_hist_record.
-*/
-void fieldstat_get_cells_used_by_metric(const struct fieldstat *instance, int cube_id, int metric_id,
- struct fieldstat_tag_list **tag_list, size_t *n_cell);
-
-/*
get the tags added to cube when calling fieldstat_counter_incrby, fieldstat_counter_set, fieldstat_hll_add, fieldstat_hist_record.
*/
void fieldstat_get_cells_used_by_cube(const struct fieldstat *instance, int cube_id, struct fieldstat_tag_list **tag_list, size_t *n_cell);