forked from openconnectivityfoundation/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oic.wk.nmon.raml
81 lines (77 loc) · 2.09 KB
/
oic.wk.nmon.raml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#%RAML 0.8
title: Network Monitoring
version: v1-20180306
documentation:
- title: OCF Copyright
content: Copyright (c) 2018 Open Connectivity Foundation, Inc. All rights reserved.
- title: OCF License
content: !include LICENSE.md
- title: OCF Disclaimer
content: !include DISCLAIMER.md
schemas:
- nmon: !include schemas/oic.wk.nmon-schema.json
- nmon-update: !include schemas/oic.wk.nmon-Update-schema.json
traits:
- interface-all:
queryParameters:
if:
enum: ["oic.if.rw","oic.if.baseline"]
- interface-rw:
queryParameters:
if:
enum: ["oic.if.rw"]
/nmonResURI:
displayName: Network Monitoring
description: |
The resource through which a Device can monitor network traffic.
get:
is: [ interface-all ]
description: Retrieve the network monitor action status
responses:
200:
body:
application/json:
schema: nmon
example: |
{
"rt": ["oic.wk.nmon"],
"ianaifType": 71,
"reset": false,
"col" : false,
"tx" : 10,
"rx" : 15,
"mmstx" : 50,
"amstx" : 35,
"mmsrx" : 35,
"amsrx" : 20
}
post:
is: [ interface-rw ]
description: |
Start/Stop collecting and reset the networking monitor resource
body:
application/json:
schema: nmon-update
example: |
{
"col": true,
"reset": true
}
responses:
200:
body:
application/json:
schema: nmon
example: |
{
"rt": ["oic.wk.nmon"],
"ianaifType": 71,
"reset": false,
"col" : true,
"tx" : 0,
"rx" : 0,
"mms-tx" : 0,
"ams-tx" : 0,
"mms-rx" : 0,
"ams-rx" : 0
}