Jian Li | c132c11 | 2016-01-28 20:27:34 -0800 | [diff] [blame] | 1 | { |
| 2 | "type": "object", |
Jian Li | ba6b117 | 2016-02-01 22:40:42 -0800 | [diff] [blame] | 3 | "title": "networks", |
Jian Li | c132c11 | 2016-01-28 20:27:34 -0800 | [diff] [blame] | 4 | "required": [ |
Jian Li | ba6b117 | 2016-02-01 22:40:42 -0800 | [diff] [blame] | 5 | "networks" |
Jian Li | c132c11 | 2016-01-28 20:27:34 -0800 | [diff] [blame] | 6 | ], |
| 7 | "properties": { |
Jian Li | ba6b117 | 2016-02-01 22:40:42 -0800 | [diff] [blame] | 8 | "networks": { |
| 9 | "type": "array", |
| 10 | "xml": { |
| 11 | "name": "networks", |
| 12 | "wrapped": true |
| 13 | }, |
| 14 | "items": { |
| 15 | "type": "object", |
| 16 | "title": "networks", |
| 17 | "required": [ |
| 18 | "resourceName", |
| 19 | "incomingBytes", |
| 20 | "outgoingBytes", |
| 21 | "incomingPackets", |
| 22 | "outgoingPackets" |
| 23 | ], |
| 24 | "properties": { |
| 25 | "resourceName": { |
| 26 | "type": "string", |
| 27 | "example": "eth0" |
| 28 | }, |
| 29 | "incomingBytes": { |
| 30 | "type": "integer", |
| 31 | "format": "int64", |
| 32 | "example": "1024" |
| 33 | }, |
| 34 | "outgoingBytes": { |
| 35 | "type": "integer", |
| 36 | "format": "int64", |
| 37 | "example": "1024" |
| 38 | }, |
| 39 | "incomingPackets": { |
| 40 | "type": "integer", |
| 41 | "format": "int64", |
| 42 | "example": "1000" |
| 43 | }, |
| 44 | "outgoingPackets": { |
| 45 | "type": "integer", |
| 46 | "format": "int64", |
| 47 | "example": "2000" |
| 48 | } |
| 49 | } |
| 50 | } |
Jian Li | c132c11 | 2016-01-28 20:27:34 -0800 | [diff] [blame] | 51 | } |
| 52 | } |
| 53 | } |