API: Adding the commit log metrics definitions

This adds the commit log swagger definition to to the commit log
definition file.

The API is based on the CommitLogMetrics.
The following commands were added:
get_completed_tasks
get_pending_tasks
get_total_commit_log_size

Signed-off-by: Amnon Heiman <amnon@cloudius-systems.com>
This commit is contained in:
Amnon Heiman
2015-07-06 12:34:23 +03:00
parent 510f236e7c
commit 240c7b0572

View File

@@ -69,6 +69,51 @@
]
}
]
}
},
{
"path": "/commitlog/metrics/completed_tasks",
"operations": [
{
"method": "GET",
"summary": "Get completed tasks",
"type": "long",
"nickname": "get_completed_tasks",
"produces": [
"application/json"
],
"parameters": []
}
]
},
{
"path": "/commitlog/metrics/pending_tasks",
"operations": [
{
"method": "GET",
"summary": "Get pending tasks",
"type": "long",
"nickname": "get_pending_tasks",
"produces": [
"application/json"
],
"parameters": []
}
]
},
{
"path": "/commitlog/metrics/total_commit_log_size",
"operations": [
{
"method": "GET",
"summary": "Get total commit log size",
"type": "long",
"nickname": "get_total_commit_log_size",
"produces": [
"application/json"
],
"parameters": []
}
]
}
]
}