diff options
Diffstat (limited to 'glances/plugins/glances_network.py')
-rw-r--r-- | glances/plugins/glances_network.py | 42 |
1 files changed, 9 insertions, 33 deletions
diff --git a/glances/plugins/glances_network.py b/glances/plugins/glances_network.py index 98061924..62715bd2 100644 --- a/glances/plugins/glances_network.py +++ b/glances/plugins/glances_network.py @@ -29,50 +29,26 @@ import psutil # 'key': 'interface_name'} # Fields description fields_description = { - 'interface_name': { - 'description': 'Interface name.', - 'unit': 'string' - }, - 'alias': { - 'description': 'Interface alias name (optional).', - 'unit': 'string' - }, - 'rx': { - 'description': 'The received/input rate (in bit per second).', - 'unit': 'bps' - }, - 'tx': { - 'description': 'The sent/output rate (in bit per second).', - 'unit': 'bps' - }, - 'cx': { - 'description': 'The cumulative received+sent rate (in bit per second).', - 'unit': 'bps' - }, + 'interface_name': {'description': 'Interface name.', 'unit': 'string'}, + 'alias': {'description': 'Interface alias name (optional).', 'unit': 'string'}, + 'rx': {'description': 'The received/input rate (in bit per second).', 'unit': 'bps'}, + 'tx': {'description': 'The sent/output rate (in bit per second).', 'unit': 'bps'}, + 'cx': {'description': 'The cumulative received+sent rate (in bit per second).', 'unit': 'bps'}, 'cumulative_rx': { 'description': 'The number of bytes received through the interface (cumulative).', 'unit': 'bytes', }, - 'cumulative_tx': { - 'description': 'The number of bytes sent through the interface (cumulative).', - 'unit': 'bytes' - }, + 'cumulative_tx': {'description': 'The number of bytes sent through the interface (cumulative).', 'unit': 'bytes'}, 'cumulative_cx': { 'description': 'The cumulative number of bytes reveived and sent through the interface (cumulative).', - 'unit': 'bytes' + 'unit': 'bytes', }, 'speed': { 'description': 'Maximum interface speed (in bit per second). Can return 0 on some operating-system.', 'unit': 'bps', }, - 'is_up': { - 'description': 'Is the interface up ?', - 'unit': 'bool' - }, - 'time_since_update': { - 'description': 'Number of seconds since last update.', - 'unit': 'seconds' - }, + 'is_up': {'description': 'Is the interface up ?', 'unit': 'bool'}, + 'time_since_update': {'description': 'Number of seconds since last update.', 'unit': 'seconds'}, } # SNMP OID |