MXS-1929: Allow service creation at runtime

Services can now be created at runtime. The command to create services is
exposed in the REST API.
This commit is contained in:
Markus Mäkelä
2018-07-18 10:10:10 +03:00
parent 5a40064826
commit 037cedf70e
4 changed files with 92 additions and 0 deletions

View File

@ -275,6 +275,15 @@ MXS_MONITOR* runtime_create_monitor_from_json(json_t* json);
*/
MXS_FILTER_DEF* runtime_create_filter_from_json(json_t* json);
/**
* @brief Create a new service from JSON
*
* @param json JSON defining the service
*
* @return Created service or NULL on error
*/
SERVICE* runtime_create_service_from_json(json_t* json);
/**
* @brief Alter a monitor using JSON
*