MXS-2363 Skeleton of /v1/maxscale/query_classifier/cache

URL routing in place, callback exists, but no actual information.
This commit is contained in:
Johan Wikman
2019-03-27 13:29:27 +02:00
parent 1a81371346
commit 9ec82932cf
6 changed files with 31 additions and 0 deletions

View File

@ -66,4 +66,13 @@ bool qc_alter_from_json(json_t* pJson);
*/
std::unique_ptr<json_t> qc_classify_as_json(const char* zHost, const std::string& statement);
/**
* Return query classifier cache content.
*
* @param zHost The MaxScale host.
*
* @return A json object containing information about the query classifier cache.
*/
std::unique_ptr<json_t> qc_cache_as_json(const char* zHost);
MXS_END_DECLS