@cryptotaxi247 / netdata-1 / commits / dace85830

added allmetrics call to swagger

Costa Tsaousis (ktsaou) committed Jan 3, 2017 at 23:35 UTC dace858302a77b7306bb4eab30d2fc693ec7d38e
1 file changed +17
web/netdata-swagger.yaml
+17
@@ -259,6 +259,23 @@ paths:
259 description: 'No chart with the given id is found.'
260 '500':
261 description: 'Internal server error. This usually means the server is out of memory.'
262 + /allmetrics:
263 + get:
264 + summary: 'Get a value of all the metrics maintained by netdata'
265 + description: 'The charts endpoint returns the latest value of all charts and dimensions stored in the netdata server.'
266 + parameters:
267 + - name: format
268 + in: query
269 + description: 'The format of the response to be returned'
270 + required: true
271 + type: string
272 + enum: [ 'shell', 'prometheus' ]
273 + default: 'shell'
274 + responses:
275 + '200':
276 + description: 'All the metrics returned in the format requested'
277 + '400':
278 + description: 'The format requested is not supported'
279 definitions:
280 chart_summary:
281 type: object