From 3ef36681cc3a324aed6f2b78fa3da4e3624f43ff Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Sun, 26 Jul 2015 09:14:31 +0300 Subject: [PATCH] API: Adding read, write latency histogram to column_family This adds the latency histogram to the column_family swagger definitions. The definitions are based on the ColumnFamilyMetrics. It adds the following commands: get_read_latency_histogram get_all_read_latency_histogram get_write_latency_histogram get_all_write_latency_histogram Signed-off-by: Amnon Heiman --- api/api-doc/column_family.json | 86 ++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) diff --git a/api/api-doc/column_family.json b/api/api-doc/column_family.json index 2e4df149ff..a5163ad804 100644 --- a/api/api-doc/column_family.json +++ b/api/api-doc/column_family.json @@ -958,6 +958,49 @@ } ] }, + { + "path":"/column_family/metrics/read_latency/histogram/{name}", + "operations":[ + { + "method":"GET", + "summary":"Get read latency histogram", + "$ref": "#/utils/histogram", + "nickname":"get_read_latency_histogram", + "produces":[ + "application/json" + ], + "parameters":[ + { + "name":"name", + "description":"The column family name in keysspace:name format", + "required":true, + "allowMultiple":false, + "type":"string", + "paramType":"path" + } + ] + } + ] + }, + { + "path":"/column_family/metrics/read_latency/histogram/", + "operations":[ + { + "method":"GET", + "summary":"Get read latency histogram from all column family", + "type":"array", + "items":{ + "$ref": "#/utils/histogram" + }, + "nickname":"get_all_read_latency_histogram", + "produces":[ + "application/json" + ], + "parameters":[ + ] + } + ] + }, { "path":"/column_family/metrics/read_latency", "operations":[ @@ -1081,6 +1124,49 @@ } ] }, + { + "path":"/column_family/metrics/write_latency/histogram/{name}", + "operations":[ + { + "method":"GET", + "summary":"Get write latency histogram", + "$ref": "#/utils/histogram", + "nickname":"get_write_latency_histogram", + "produces":[ + "application/json" + ], + "parameters":[ + { + "name":"name", + "description":"The column family name in keysspace:name format", + "required":true, + "allowMultiple":false, + "type":"string", + "paramType":"path" + } + ] + } + ] + }, + { + "path":"/column_family/metrics/write_latency/histogram/", + "operations":[ + { + "method":"GET", + "summary":"Get write latency histogram of all column family", + "type":"array", + "items":{ + "$ref": "#/utils/histogram" + }, + "nickname":"get_all_write_latency_histogram", + "produces":[ + "application/json" + ], + "parameters":[ + ] + } + ] + }, { "path":"/column_family/metrics/write_latency", "operations":[