]> arthur.barton.de Git - netdata.git/blobdiff - src/rrd2json.h
added API option percentage to return the percentage of each dimension against the...
[netdata.git] / src / rrd2json.h
index 8a6ce9c02a861a9cbd274b307cf6db35da247700..d1f850d4ac073980393f9c46bc81f7c7cc7d540c 100755 (executable)
@@ -42,7 +42,7 @@ extern char *hostname;
 #define RRDR_OPTION_NONZERO            0x00000001 // don't output dimensions will just zero values
 #define RRDR_OPTION_REVERSED           0x00000002 // output the rows in reverse order (oldest to newest)
 #define RRDR_OPTION_ABSOLUTE           0x00000004 // values positive, for DATASOURCE_SSV before summing
-#define RRDR_OPTION_MIN2MAX                    0x00000008 // for DATASOURCE_SSV, out max - min
+#define RRDR_OPTION_MIN2MAX                    0x00000008 // for DATASOURCE_SSV, out max - min, instead of sum
 #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
@@ -50,6 +50,7 @@ extern char *hostname;
 #define RRDR_OPTION_GOOGLE_JSON                0x00000100 // comply with google JSON/JSONP specs
 #define RRDR_OPTION_JSON_WRAP          0x00000200 // wrap the response in a JSON header with info about the result
 #define RRDR_OPTION_LABEL_QUOTES       0x00000400 // in CSV output, wrap header labels in double quotes
+#define RRDR_OPTION_PERCENTAGE         0x00000800 // give values as percentage of total
 
 extern void rrd_stats_api_v1_chart(RRDSET *st, BUFFER *wb);
 extern void rrd_stats_api_v1_charts(BUFFER *wb);