summaryrefslogtreecommitdiffstats
path: root/src/rrd2json.h
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-11-29 22:55:51 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-11-29 22:55:51 +0200
commit29f349198b8dec33d3c3c2a0e56d547f2c80aa4c (patch)
tree1f605f098991c36b2fb6d0c2e62b6373a98599ed /src/rrd2json.h
parent76eafaa8cdae91d6c7447ccfbae63f152aaa0767 (diff)
added support for custom dashboards - new API is operational and stable
Diffstat (limited to 'src/rrd2json.h')
-rwxr-xr-xsrc/rrd2json.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rrd2json.h b/src/rrd2json.h
index 65a98a914d..c4c4950654 100755
--- a/src/rrd2json.h
+++ b/src/rrd2json.h
@@ -12,8 +12,8 @@ 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_DATATABLE_JSON 1
+#define DATASOURCE_DATATABLE_JSONP 2
#define DATASOURCE_SSV 3
#define DATASOURCE_CSV 4
#define DATASOURCE_JSONP 5
@@ -33,6 +33,8 @@ extern char *hostname;
#define RRDR_OPTION_SECONDS 0x00000010 // output seconds, instead of dates
#define RRDR_OPTION_MILLISECONDS 0x00000020 // output milliseconds, instead of dates
#define RRDR_OPTION_NULL2ZERO 0x00000040 // do not show nulls, convert them to zeros
+#define RRDR_OPTION_OBJECTSROWS 0x00000080 // each row of values should be an object, not an array
+#define RRDR_OPTION_GOOGLE_JSON 0x00000100 // comply with google JSON/JSONP specs
extern void rrd_stats_api_v1_chart(RRDSET *st, BUFFER *wb);
extern void rrd_stats_api_v1_charts(BUFFER *wb);