From f52d7ae07721995a5fc4c9f7b7ac5d31a391cf70 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 9 Oct 2020 08:11:09 +0000 Subject: [PATCH] Feature: Added experimental STATS_JSON_REQUEST "stats.json" --- src/admin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/admin.c b/src/admin.c index e55aae0e..d1736be2 100644 --- a/src/admin.c +++ b/src/admin.c @@ -76,6 +76,7 @@ #define LISTCLIENTS_HTML_REQUEST "listclients.xsl" #define STATS_RAW_REQUEST "stats" #define STATS_HTML_REQUEST "stats.xsl" +#define STATS_JSON_REQUEST "stats.json" #define QUEUE_RELOAD_RAW_REQUEST "reloadconfig" #define QUEUE_RELOAD_HTML_REQUEST "reloadconfig.xsl" #define QUEUE_RELOAD_JSON_REQUEST "reloadconfig.json" @@ -145,6 +146,7 @@ static const admin_command_handler_t handlers[] = { { LISTCLIENTS_HTML_REQUEST, ADMINTYPE_MOUNT, ADMIN_FORMAT_HTML, command_show_listeners, NULL}, { STATS_RAW_REQUEST, ADMINTYPE_HYBRID, ADMIN_FORMAT_RAW, command_stats, NULL}, { STATS_HTML_REQUEST, ADMINTYPE_HYBRID, ADMIN_FORMAT_HTML, command_stats, NULL}, + { STATS_JSON_REQUEST, ADMINTYPE_HYBRID, ADMIN_FORMAT_JSON, command_stats, NULL}, { "stats.xml", ADMINTYPE_HYBRID, ADMIN_FORMAT_RAW, command_stats, NULL}, { QUEUE_RELOAD_RAW_REQUEST, ADMINTYPE_GENERAL, ADMIN_FORMAT_RAW, command_queue_reload, NULL}, { QUEUE_RELOAD_HTML_REQUEST, ADMINTYPE_GENERAL, ADMIN_FORMAT_HTML, command_queue_reload, NULL},