MXS-1220: Add POST handling for monitors

Doing a POST on the /monitors/ resource now creates a new monitor.
This commit is contained in:
Markus Mäkelä
2017-04-19 22:24:29 +03:00
committed by Markus Mäkelä
parent 076599ee5e
commit 9aa4138705
4 changed files with 180 additions and 66 deletions

View File

@ -188,4 +188,13 @@ bool runtime_destroy_monitor(MXS_MONITOR *monitor);
*/
SERVER* runtime_create_server_from_json(json_t* json);
/**
* @brief Create a new monitor from JSON
*
* @param json JSON defining the monitor
*
* @return Created monitor or NULL on error
*/
MXS_MONITOR* runtime_create_monitor_from_json(json_t* json);
MXS_END_DECLS