Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 1 | syntax = "proto3"; |
Jian Li | c9b4bf1 | 2017-06-26 23:50:32 +0900 | [diff] [blame] | 2 | option java_package = "org.onosproject.grpc.net.device.models"; |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 3 | |
Jian Li | c9b4bf1 | 2017-06-26 23:50:32 +0900 | [diff] [blame] | 4 | package net.device; |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 5 | |
Jian Li | c9b4bf1 | 2017-06-26 23:50:32 +0900 | [diff] [blame] | 6 | message PortStatisticsProto { |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 7 | int32 port = 1; |
| 8 | int64 packets_received = 2; |
| 9 | int64 packets_sent = 3; |
| 10 | int64 bytes_received = 4; |
| 11 | int64 bytes_sent = 5; |
| 12 | int64 packets_rx_dropped = 6; |
| 13 | int64 packets_tx_dropped = 7; |
| 14 | int64 packets_rx_errors = 8; |
| 15 | int64 packets_tx_errors = 9; |
| 16 | int64 duration_sec = 10; |
| 17 | int64 duration_nano = 11; |
| 18 | bool is_zero = 12; |
| 19 | // TODO add all other fields |
| 20 | } |