blob: d572ccb1ce7997ce730bd3206d2c3c1cf791cdb5 [file] [log] [blame]
Jian Li5c411232015-12-16 15:29:16 -08001{
2 "type": "object",
3 "title": "meter",
4 "required": [
Jian Li5c411232015-12-16 15:29:16 -08005 "deviceId",
6 "unit",
7 "burst",
8 "bands"
9 ],
10 "properties": {
Jian Li5c411232015-12-16 15:29:16 -080011 "deviceId": {
12 "type": "string",
13 "example": "of:0000000000000001"
14 },
15 "unit": {
16 "type": "string",
17 "example": "KB_PER_SEC"
18 },
19 "burst": {
20 "type": "boolean",
21 "example": true
22 },
23 "bands": {
24 "type": "array",
25 "xml": {
26 "name": "bands",
27 "wrapped": true
28 },
29 "items": {
30 "type": "object",
31 "title": "bands",
32 "required": [
33 "type",
34 "rate",
35 "burstSize",
36 "prec"
37 ],
38 "properties": {
39 "type": {
40 "type": "string",
41 "example": "REMARK"
42 },
43 "rate": {
44 "type": "integer",
45 "format": "int64",
46 "example": "0"
47 },
48 "burstSize": {
49 "type": "integer",
50 "format": "int64",
51 "example": "0"
52 },
53 "prec": {
54 "type": "integer",
55 "format": "int16",
56 "example": "0"
57 }
58 }
59 }
60 }
61 }
62}