From 164ccd0525c7adf21c71afed8f2b68dcda2ea044 Mon Sep 17 00:00:00 2001 From: Amnon Heiman Date: Sun, 5 Jul 2015 11:38:50 +0300 Subject: [PATCH] API: Adding the stream manager Swagger definition This adds the swagger definition file for the stream manager. The API is based on the StreamManagerMBean and the StreamMetrics. The following commands where added: get_current_streams get_current_streams_state get_all_active_streams_outbound get_total_incoming_bytes get_all_total_incoming_bytes get_total_outgoing_bytes get_all_total_outgoing_bytes --- api/api-doc/stream_manager.json | 96 +++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/api/api-doc/stream_manager.json b/api/api-doc/stream_manager.json index f893b1215b..1463fe95ff 100644 --- a/api/api-doc/stream_manager.json +++ b/api/api-doc/stream_manager.json @@ -25,6 +25,102 @@ ] } ] + }, + { + "path":"/stream_manager/metrics/outbound", + "operations":[ + { + "method":"GET", + "summary":"Get number of active outbound streams", + "type":"int", + "nickname":"get_all_active_streams_outbound", + "produces":[ + "application/json" + ], + "parameters":[ + ] + } + ] + }, + { + "path":"/stream_manager/metrics/incoming/{peer}", + "operations":[ + { + "method":"GET", + "summary":"Get total incoming bytes", + "type":"int", + "nickname":"get_total_incoming_bytes", + "produces":[ + "application/json" + ], + "parameters":[ + { + "name":"peer", + "description":"The stream peer", + "required":true, + "allowMultiple":false, + "type":"string", + "paramType":"path" + } + ] + } + ] + }, + { + "path":"/stream_manager/metrics/incoming", + "operations":[ + { + "method":"GET", + "summary":"Get all total incoming bytes", + "type":"int", + "nickname":"get_all_total_incoming_bytes", + "produces":[ + "application/json" + ], + "parameters":[ + ] + } + ] + }, + { + "path":"/stream_manager/metrics/outgoing/{peer}", + "operations":[ + { + "method":"GET", + "summary":"Get total outgoing bytes", + "type":"int", + "nickname":"get_total_outgoing_bytes", + "produces":[ + "application/json" + ], + "parameters":[ + { + "name":"peer", + "description":"The stream peer", + "required":true, + "allowMultiple":false, + "type":"string", + "paramType":"path" + } + ] + } + ] + }, + { + "path":"/stream_manager/metrics/outgoing", + "operations":[ + { + "method":"GET", + "summary":"Get all total outgoing bytes", + "type":"int", + "nickname":"get_all_total_outgoing_bytes", + "produces":[ + "application/json" + ], + "parameters":[ + ] + } + ] } ], "models":{