From 240c7b0572a37b19811953264e7fbdd8df8aaeef Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Mon, 6 Jul 2015 12:34:23 +0300 Subject: [PATCH] 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 --- api/api-doc/commitlog.json | 47 +++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/api/api-doc/commitlog.json b/api/api-doc/commitlog.json index a401efe4bd..c4ebbb4475 100644 --- a/api/api-doc/commitlog.json +++ b/api/api-doc/commitlog.json @@ -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": [] + } + ] + } ] }