summaryrefslogtreecommitdiffstats
path: root/web/api/queries/rrdr.h
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@tsaousis.gr>2018-10-27 19:44:27 +0300
committerGitHub <noreply@github.com>2018-10-27 19:44:27 +0300
commit798c141c49ee85bddc8f48f25d2cb593ec96da07 (patch)
tree61daf51c5c18f625ca2541b9abe762ad27f13b85 /web/api/queries/rrdr.h
parentbcdfedbe8215fdf461b61900eba2a9de4be6c0b8 (diff)
Split the API formatters in modules (#4504)
* split all API formatters in modules * added markdown formatting * updated csv readme * updated csv readme * more documentation * added more documentation * updated documentation * fixed typo * fixed typo
Diffstat (limited to 'web/api/queries/rrdr.h')
-rw-r--r--web/api/queries/rrdr.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/web/api/queries/rrdr.h b/web/api/queries/rrdr.h
index a0295db463..c7633f0beb 100644
--- a/web/api/queries/rrdr.h
+++ b/web/api/queries/rrdr.h
@@ -4,7 +4,6 @@
#define NETDATA_QUERIES_RRDR_H
#include "libnetdata/libnetdata.h"
-#include "../web_api_v1.h"
typedef enum rrdr_options {
RRDR_OPTION_NONZERO = 0x00000001, // don't output dimensions will just zero values
@@ -44,7 +43,7 @@ typedef enum rrdr_result_flags {
} RRDR_RESULT_FLAGS;
typedef struct rrdresult {
- RRDSET *st; // the chart this result refers to
+ struct rrdset *st; // the chart this result refers to
RRDR_RESULT_FLAGS result_options; // RRDR_RESULT_OPTION_*
@@ -93,15 +92,10 @@ typedef struct rrdresult {
#define rrdr_rows(r) ((r)->rows)
-// formatters
-extern void rrdr2json(RRDR *r, BUFFER *wb, RRDR_OPTIONS options, int datatable);
-extern void rrdr2csv(RRDR *r, BUFFER *wb, RRDR_OPTIONS options, const char *startline, const char *separator, const char *endline, const char *betweenlines);
-extern calculated_number rrdr2value(RRDR *r, long i, RRDR_OPTIONS options, int *all_values_are_null);
-extern void rrdr2ssv(RRDR *r, BUFFER *wb, RRDR_OPTIONS options, const char *prefix, const char *separator, const char *suffix);
-
extern void rrdr_free(RRDR *r);
-extern RRDR *rrdr_create(RRDSET *st, long n);
+extern RRDR *rrdr_create(struct rrdset *st, long n);
+#include "../web_api_v1.h"
#include "web/api/queries/query.h"
extern RRDR *rrd2rrdr(RRDSET *st, long points_requested, long long after_requested, long long before_requested, RRDR_GROUPING group_method, long resampling_time_requested, RRDR_OPTIONS options, const char *dimensions);