summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-07-31 11:06:04 +0800
committerchenzizhan <[email protected]>2024-07-31 11:06:04 +0800
commit522de9e0ee428f1b0001d7e947221dd8682f1791 (patch)
treee53700a64265d0d42d5d0f16b5cbe54b056ffaba /include
parent8e35902789563017c37ae3002aac1e271b903a78 (diff)
rename global_tag->global_dimension
Diffstat (limited to 'include')
-rw-r--r--include/fieldstat/fieldstat_exporter.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/fieldstat/fieldstat_exporter.h b/include/fieldstat/fieldstat_exporter.h
index 2df08ab..e890167 100644
--- a/include/fieldstat/fieldstat_exporter.h
+++ b/include/fieldstat/fieldstat_exporter.h
@@ -14,7 +14,7 @@ extern "C"
struct fieldstat_json_exporter;
struct fieldstat_json_exporter *fieldstat_json_exporter_new();
-void fieldstat_json_exporter_set_global_tag(struct fieldstat_json_exporter *exporter, const struct field tag_list[], size_t n_field);
+void fieldstat_json_exporter_set_global_dimension(struct fieldstat_json_exporter *exporter, const struct field tag_list[], size_t n_field);
void fieldstat_json_exporter_set_name(struct fieldstat_json_exporter *exporter, const char *name);
void fieldstat_json_exporter_free(struct fieldstat_json_exporter *exporter);
@@ -75,7 +75,7 @@ char *fieldstat_json_exporter_export_flat(const struct fieldstat_json_exporter *
let json exporter output delta value by the side of the original value(accumulated). If a cell / metric is new, the delta value is the same as the original value.
Outputting delta value is disabled by default.
When the exporter name or exporter global tags are changed, or the fieldstat instance is reset, or one of the cube is deleted, the delta value will be reset. (next output will be the original value)
- it is recommended to call this function after fieldstat_json_exporter_set_name and fieldstat_json_exporter_set_global_tag.
+ it is recommended to call this function after fieldstat_json_exporter_set_name and fieldstat_json_exporter_set_global_dimension.
Only affects the metrics of counter type.
Outputting delta value is time-consuming.
*/