| 1 | // SPDX-License-Identifier: GPL-3.0-or-later |
| 2 | |
| 3 | #ifndef NETDATA_EXPORTING_JSON_H |
| 4 | #define NETDATA_EXPORTING_JSON_H |
| 5 | |
| 6 | #include "exporting/exporting_engine.h" |
| 7 | |
| 8 | int init_json_instance(struct instance *instance); |
| 9 | int init_json_http_instance(struct instance *instance); |
| 10 | |
| 11 | int format_host_labels_json_plaintext(struct instance *instance, RRDHOST *host); |
| 12 | |
| 13 | int format_dimension_collected_json_plaintext(struct instance *instance, RRDDIM *rd); |
| 14 | int format_dimension_stored_json_plaintext(struct instance *instance, RRDDIM *rd); |
| 15 | |
| 16 | int open_batch_json_http(struct instance *instance); |
| 17 | int close_batch_json_http(struct instance *instance); |
| 18 | |
| 19 | void json_http_prepare_header(struct instance *instance); |
| 20 | |
| 21 | #endif //NETDATA_EXPORTING_JSON_H |