blob: d5f6d70e030efee7109aa4fbd8535be92616cbff [file] [log] [blame]
Jian Li5c411232015-12-16 15:29:16 -08001{
2 "type": "object",
3 "title": "meters",
4 "required": [
5 "meters"
6 ],
7 "properties": {
Jian Li2e02fab2016-02-25 15:45:59 +09008 "meters": {
Jian Li5c411232015-12-16 15:29:16 -08009 "type": "array",
10 "xml": {
11 "name": "meters",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "meter",
17 "required": [
18 "id",
19 "appId",
20 "deviceId",
21 "unit",
22 "burst",
23 "state",
24 "life",
25 "refCount",
26 "packets",
27 "bytes",
28 "bands"
29 ],
30 "properties": {
31 "id": {
32 "type": "string",
33 "example": "1"
34 },
35 "appId": {
36 "type": "string",
Jayasree Ghoshe7a240c2016-09-10 14:45:15 +053037 "example": "org.onosproject.rest"
Jian Li5c411232015-12-16 15:29:16 -080038 },
39 "deviceId": {
40 "type": "string",
41 "example": "of:0000000000000001"
42 },
43 "unit": {
44 "type": "string",
45 "example": "KB_PER_SEC"
46 },
47 "burst": {
48 "type": "boolean",
49 "example": true
50 },
51 "state": {
52 "type": "string",
53 "example": "ADDED"
54 },
55 "life": {
56 "type": "integer",
57 "format": "int64",
58 "example": 0
59 },
60 "refCount": {
61 "type": "integer",
62 "format": "int64",
63 "example": 0
64 },
65 "packets": {
66 "type": "integer",
67 "format": "int64",
68 "example": 0
69 },
70 "bytes": {
71 "type": "integer",
72 "format": "int64",
73 "example": 0
74 },
75 "bands": {
76 "type": "array",
77 "xml": {
78 "name": "bands",
79 "wrapped": true
80 },
81 "items": {
82 "type": "object",
83 "title": "bands",
84 "required": [
85 "type",
86 "rate",
87 "burstSize",
88 "prec",
89 "packets",
90 "bytes"
91 ],
92 "properties": {
93 "type": {
94 "type": "string",
95 "example": "REMARK"
96 },
97 "rate": {
98 "type": "integer",
99 "format": "int64",
100 "example": 0
101 },
102 "burstSize": {
103 "type": "integer",
104 "format": "int64",
105 "example": 0
106 },
107 "prec": {
108 "type": "integer",
109 "format": "int16",
110 "example": 0
111 },
112 "packets": {
113 "type": "integer",
114 "format": "int64",
115 "example": 0
116 },
117 "bytes": {
118 "type": "integer",
119 "format": "int64",
120 "example": 0
121 }
122 }
123 }
124 }
125 }
126 }
127 }
128 }
Jayasree Ghoshe7a240c2016-09-10 14:45:15 +0530129}