diff options
| author | chenzizhan <[email protected]> | 2023-10-08 12:22:59 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-10-08 12:22:59 +0800 |
| commit | b88f84e9d50240b26f10efe9823705b591698cc8 (patch) | |
| tree | 5fa89d0b6ef9cf7ebb590920750d0bf11efaea6e /include | |
| parent | 437277576e283d64ff6160ce309ab17a56ceddaf (diff) | |
exporter does not bind instance
Diffstat (limited to 'include')
| -rw-r--r-- | include/fieldstat/fieldstat_exporter.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/fieldstat/fieldstat_exporter.h b/include/fieldstat/fieldstat_exporter.h index e846231..2eafb0e 100644 --- a/include/fieldstat/fieldstat_exporter.h +++ b/include/fieldstat/fieldstat_exporter.h @@ -13,7 +13,7 @@ extern "C" /* -------------------------------------------------------------------------- */ struct fieldstat_json_exporter; -struct fieldstat_json_exporter *fieldstat_json_exporter_new(const struct fieldstat *instance); +struct fieldstat_json_exporter *fieldstat_json_exporter_new(); void fieldstat_json_exporter_set_global_tag(struct fieldstat_json_exporter *exporter, const struct fieldstat_tag tag_list[], size_t n_tag); void fieldstat_json_exporter_set_name(struct fieldstat_json_exporter *exporter, const char *name); void fieldstat_json_exporter_free(struct fieldstat_json_exporter *exporter); @@ -21,11 +21,11 @@ void fieldstat_json_exporter_free(struct fieldstat_json_exporter *exporter); /* Output the fieldstat instance to json string array. User must free the output string. */ -char *fieldstat_json_exporter_export(const struct fieldstat_json_exporter *exporter, const struct timeval *timestamp); +char *fieldstat_json_exporter_export(const struct fieldstat_json_exporter *exporter, const struct fieldstat *instance, const struct timeval *timestamp); /* after call fieldstat_json_exporter_export_array, user must free the output array and each string. */ -void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *exporter, const struct timeval *timestamp, char ***output, size_t *output_size); +void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *exporter, const struct fieldstat *instance, const struct timeval *timestamp, char ***output, size_t *output_size); /* 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. |
