summaryrefslogtreecommitdiffstats
path: root/src/rrd2json.h
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-11-28 00:03:41 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-11-28 00:03:41 +0200
commit537e212e1d9e9d64c250d43f39791e9ff30159af (patch)
tree085e705af96a94a169723fddd123a49d63845b90 /src/rrd2json.h
parentd25ed08a317abf31a85caeebb763b9f024fedbf3 (diff)
avl is now threat safe (found a condition where the trees could cause netdata to crash); added a still incomplete version of the new API
Diffstat (limited to 'src/rrd2json.h')
-rwxr-xr-xsrc/rrd2json.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rrd2json.h b/src/rrd2json.h
index 69dfabbe1c..2454f1bb1f 100755
--- a/src/rrd2json.h
+++ b/src/rrd2json.h
@@ -10,14 +10,20 @@
extern char *hostname;
// type of JSON generations
+#define DATASOURCE_INVALID -1
#define DATASOURCE_JSON 0
#define DATASOURCE_GOOGLE_JSON 1
#define DATASOURCE_GOOGLE_JSONP 2
+#define DATASOURCE_SSV 3
+#define DATASOURCE_CSV 4
#define GROUP_AVERAGE 0
#define GROUP_MAX 1
#define GROUP_SUM 2
+extern void rrd_stats_api_v1_chart(RRDSET *st, struct web_buffer *wb);
+extern void rrd_stats_api_v1_charts(struct web_buffer *wb);
+
extern unsigned long rrd_stats_one_json(RRDSET *st, char *options, struct web_buffer *wb);
extern void rrd_stats_graph_json(RRDSET *st, char *options, struct web_buffer *wb);