summaryrefslogtreecommitdiffstats
path: root/src/rrd2json.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rrd2json.h')
-rw-r--r--src/rrd2json.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/rrd2json.h b/src/rrd2json.h
index e3e5cb690..7b1401970 100644
--- a/src/rrd2json.h
+++ b/src/rrd2json.h
@@ -2,7 +2,8 @@
#define NETDATA_RRD2JSON_H 1
#define HOSTNAME_MAX 1024
-extern char *hostname;
+
+#define API_RELATIVE_TIME_MAX (3 * 365 * 86400)
// type of JSON generations
#define DATASOURCE_INVALID -1
@@ -30,6 +31,12 @@ extern char *hostname;
#define DATASOURCE_FORMAT_SSV_COMMA "ssvcomma"
#define DATASOURCE_FORMAT_CSV_JSON_ARRAY "csvjsonarray"
+#define ALLMETRICS_FORMAT_SHELL "shell"
+#define ALLMETRICS_FORMAT_PROMETHEUS "prometheus"
+
+#define ALLMETRICS_SHELL 1
+#define ALLMETRICS_PROMETHEUS 2
+
#define GROUP_UNDEFINED 0
#define GROUP_AVERAGE 1
#define GROUP_MIN 2
@@ -54,6 +61,9 @@ extern char *hostname;
extern void rrd_stats_api_v1_chart(RRDSET *st, BUFFER *wb);
extern void rrd_stats_api_v1_charts(BUFFER *wb);
+extern void rrd_stats_api_v1_charts_allmetrics_shell(BUFFER *wb);
+extern void rrd_stats_api_v1_charts_allmetrics_prometheus(BUFFER *wb);
+
extern unsigned long rrd_stats_one_json(RRDSET *st, char *options, BUFFER *wb);
extern void rrd_stats_graph_json(RRDSET *st, char *options, BUFFER *wb);