Addition of show eventtimes and /events/times URL to maxinfo

This commit is contained in:
Mark Riddoch
2015-02-20 11:53:47 +00:00
parent 039d3c4c0b
commit a022775342
4 changed files with 100 additions and 7 deletions

View File

@ -666,6 +666,10 @@ PARSE_ERROR err;
typedef RESULTSET *(*RESULTSETFUNC)();
/**
* Table that maps a URI to a function to call to
* to obtain the result set related to that URI
*/
static struct uri_table {
char *uri;
RESULTSETFUNC func;
@ -678,6 +682,7 @@ static struct uri_table {
{ "/servers", serverGetList },
{ "/variables", maxinfo_variables },
{ "/status", maxinfo_status },
{ "/event/times", eventTimesGetList },
{ NULL, NULL }
};