blob: e3ed71f168e3c436e0c4c29687e4e08af50c72a6 [file] [log] [blame]
Srikanth Vavilapallid120f5c2015-11-24 14:15:01 -08001{
2 "type": "object",
3 "title": "all-port-statistics",
4 "required": [
5 "statistics"
6 ],
7 "properties": {
8 "statistics": {
9 "type": "array",
10 "required": [
11 "statistics"
12 ],
13 "xml": {
14 "name": "statistics",
15 "wrapped": true
16 },
17 "items": {
18 "type": "object",
19 "title": "statistics",
20 "required": [
21 "ports"
22 ],
23 "properties": {
24 "deviceId": {
25 "type": "string",
26 "example": "of:0000000000000001"
27 },
28 "ports": {
29 "type": "array",
30 "xml": {
31 "name": "ports",
32 "wrapped": true
33 },
34 "items": {
35 "type": "object",
36 "title": "ports",
37 "required": [
38 "port",
39 "packetsReceived",
40 "packetsSent",
41 "bytesReceived",
42 "bytesSent",
43 "packetsRxDropped",
44 "packetsTxDropped",
45 "packetsRxErrors",
46 "packetsTxErrors",
47 "durationSec"
48 ],
49 "properties": {
50 "port": {
51 "type": "integer",
52 "format": "int64",
53 "example": 1
54 },
55 "packetsReceived": {
56 "type": "integer",
57 "format": "int64",
58 "example": 98
59 },
60 "packetsSent": {
61 "type": "integer",
62 "format": "int64",
63 "example": 98
64 },
65 "bytesReceived": {
66 "type": "integer",
67 "format": "int64",
68 "example": 9162
69 },
70 "bytesSent": {
71 "type": "integer",
72 "format": "int64",
73 "example": 9162
74 },
75 "packetsRxDropped": {
76 "type": "integer",
77 "format": "int64",
78 "example": 0
79 },
80 "packetsTxDropped": {
81 "type": "integer",
82 "format": "int64",
83 "example": 0
84 },
85 "packetsRxErrors": {
86 "type": "integer",
87 "format": "int64",
88 "example": 0
89 },
90 "packetsTxErrors": {
91 "type": "integer",
92 "format": "int64",
93 "example": 0
94 },
95 "durationSec": {
96 "type": "integer",
97 "format": "int64",
98 "example": 90
99 }
100 }
101 }
102 }
103 }
104 }
105 }
106 }
107}