summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornicolargo <nicolas@nicolargo.com>2022-12-20 14:23:46 +0100
committernicolargo <nicolas@nicolargo.com>2022-12-20 14:23:46 +0100
commit07415b5f778cd39d364c44db8ec5b9f8f3a5fffb (patch)
tree9617e7f67922ba59b15c5757acae945bef9ca3bf
parente5e3cefa45f94670f20e7d000d9a84f5bfad622f (diff)
What is CW from network #2222 (related to discussion #2221)
-rw-r--r--glances/plugins/glances_network.py43
1 files changed, 36 insertions, 7 deletions
diff --git a/glances/plugins/glances_network.py b/glances/plugins/glances_network.py
index a59cb4bf..98061924 100644
--- a/glances/plugins/glances_network.py
+++ b/glances/plugins/glances_network.py
@@ -29,21 +29,50 @@ 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'},
+ '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'
+ },
'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