summaryrefslogtreecommitdiff
path: root/include/fieldstat
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-07-18 18:03:05 +0800
committerchenzizhan <[email protected]>2024-07-18 18:03:05 +0800
commit7f415b4385607dcc29babe80356c2c973c301097 (patch)
tree14045d840ca574bf9d3a5ff971d7142cf02279a4 /include/fieldstat
parent5f25467142e9bf1dfae083edcd4dc29195105b1b (diff)
fieldstat easy output flat when called actively
Diffstat (limited to 'include/fieldstat')
-rw-r--r--include/fieldstat/fieldstat_easy.h10
-rw-r--r--include/fieldstat/fieldstat_exporter.h3
2 files changed, 2 insertions, 11 deletions
diff --git a/include/fieldstat/fieldstat_easy.h b/include/fieldstat/fieldstat_easy.h
index 067b43f..97d7394 100644
--- a/include/fieldstat/fieldstat_easy.h
+++ b/include/fieldstat/fieldstat_easy.h
@@ -29,16 +29,6 @@ void fieldstat_easy_free(struct fieldstat_easy *fse);
int fieldstat_easy_enable_auto_output(struct fieldstat_easy *pthis, const char *output_path, int interval_second);
/*
- affect the output of fieldstat_easy_output and fieldstat_easy_output_array.
- 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 fieldstat instance is reset, the delta value will be reset. (next output will be the original value)
- Only affects the metrics of counter type.
- Outputting delta value is time-consuming. Be cautious when enabling it.
-*/
-void fieldstat_easy_enable_delta_in_active_output(struct fieldstat_easy *fse);
-
-/*
* @brief add a metric to the cube of cube_id. One metric may be associated with different cells.
* @param metric_name: name of the metric. Cannot be NULL. Must be unique.
* @return metric id>=0 if success. If failed, return FS_ERR_NULL_HANDLER, FS_ERR_INVALID_KEY(when metric_name is not unique in this cube).
diff --git a/include/fieldstat/fieldstat_exporter.h b/include/fieldstat/fieldstat_exporter.h
index d314ba0..2df08ab 100644
--- a/include/fieldstat/fieldstat_exporter.h
+++ b/include/fieldstat/fieldstat_exporter.h
@@ -69,7 +69,8 @@ do not support fieldstat_json_exporter_enable_delta.
if a cell has no metric record, the cell will not be exported. (The same as fieldstat_json_exporter_export_array)
*/
-void fieldstat_json_exporter_export_flat(const struct fieldstat_json_exporter *exporter, const struct fieldstat *instance, const struct timeval *timestamp, char ***output, size_t *output_size);
+void fieldstat_json_exporter_export_flat_array(const struct fieldstat_json_exporter *exporter, const struct fieldstat *instance, const struct timeval *timestamp, char ***output, size_t *output_size);
+char *fieldstat_json_exporter_export_flat(const struct fieldstat_json_exporter *exporter, const struct fieldstat *instance, const struct timeval *timestamp);
/*
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.