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