-
Notifications
You must be signed in to change notification settings - Fork 160
/
dataMetric-scopeId.yaml
52 lines (50 loc) · 1.57 KB
/
dataMetric-scopeId.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
openapi: 3.0.3
info:
title: Eclipse Kapua REST API - Data Metric
version: '1.0'
contact:
name: Eclipse Kapua Dev Team
url: https://eclipse.org/kapua
email: kapua-dev@eclipse.org
license:
name: Eclipse Public License 2.0
url: https://www.eclipse.org/legal/epl-2.0
paths:
/{scopeId}/data/metrics:
get:
tags:
- Data Metric
summary: Query the Data Metrics
operationId: dataMetricQuery
parameters:
- $ref: '../openapi.yaml#/components/parameters/scopeId'
- name: clientId
in: query
schema:
type: string
description: The client ID to filter results
- name: channel
in: query
schema:
type: string
description: The channel to filter results. It allows '#' wildcard in last channel level
- name: name
in: query
schema:
type: string
description: The metric name to filter results
- $ref: '../openapi.yaml#/components/parameters/limit'
- $ref: '../openapi.yaml#/components/parameters/offset'
responses:
200:
description: The result of the query
content:
application/json:
schema:
$ref: './dataMetric.yaml#/components/schemas/metricInfoListResult'
401:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'