blob: 517c564d35fc7d2ee892a0344ffacc3e866b8901 [file] [log] [blame]
Jian Liecb3c0f2015-12-15 10:07:49 -08001{
2 "type": "object",
3 "title": "groups",
4 "required": [
5 "groups"
6 ],
7 "properties": {
8 "groups": {
9 "type": "array",
10 "xml": {
11 "name": "groups",
12 "wrapped": true
13 },
14 "items": {
15 "type": "object",
16 "title": "group",
17 "required": [
18 "id",
19 "state",
20 "life",
21 "packets",
22 "bytes",
23 "referenceCount",
24 "type",
25 "deviceId",
26 "buckets"
27 ],
28 "properties": {
29 "id": {
30 "type": "string",
31 "example": "1"
32 },
33 "state": {
34 "type": "string",
35 "example": "PENDING_ADD"
36 },
37 "life": {
38 "type": "integer",
39 "format": "int64",
40 "example": 69889
41 },
42 "packets": {
43 "type": "integer",
44 "format": "int64",
45 "example": 22546
46 },
47 "bytes": {
48 "type": "integer",
49 "format": "int64",
50 "example": 1826226
51 },
52 "referenceCount": {
53 "type": "integer",
54 "format": "int64",
55 "example": 1826226
56 },
57 "type": {
58 "type": "string",
59 "example": "ALL"
60 },
61 "deviceId": {
62 "type": "string",
63 "example": "of:0000000000000003"
64 },
65 "buckets": {
66 "type": "array",
67 "xml": {
68 "name": "buckets",
69 "wrapped": true
70 },
71 "items": {
72 "type": "object",
73 "title": "buckets",
74 "required": [
75 "treatment",
76 "weight",
77 "watchPort",
78 "watchGroup"
79 ],
80 "properties": {
81 "treatment": {
82 "type": "object",
83 "title": "treatment",
84 "required": [
85 "instructions",
86 "deferred"
87 ],
88 "properties": {
89 "instructions": {
90 "type": "array",
91 "title": "treatment",
92 "required": [
93 "properties",
94 "port"
95 ],
96 "items": {
97 "type": "object",
98 "title": "instructions",
99 "required": [
100 "type",
101 "port"
102 ],
103 "properties": {
104 "type": {
105 "type": "string",
106 "example": "OUTPUT"
107 },
108 "port": {
109 "type": "string",
110 "example": "2"
111 }
112 }
113 }
114 }
115 }
116 }
117 }
118 }
119 }
120 }
121 }
122 }
123 }
124}