mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-22 10:45:57 +00:00
Implements network alerts
This commit is contained in:
parent
95a2647390
commit
11fa6b5212
11 changed files with 355 additions and 58 deletions
|
|
@ -23,12 +23,16 @@
|
|||
|
||||
/* *************************************** */
|
||||
|
||||
NetworkStats::NetworkStats() {
|
||||
NetworkStats::NetworkStats() : AlertableEntity() {
|
||||
network_id = 0;
|
||||
}
|
||||
|
||||
/* *************************************** */
|
||||
|
||||
void NetworkStats::lua(lua_State* vm) {
|
||||
lua_push_str_table_entry(vm, "network_key", ntop->getLocalNetworkName(network_id));
|
||||
lua_push_uint64_table_entry(vm, "network_id", network_id);
|
||||
|
||||
lua_push_uint64_table_entry(vm, "ingress", ingress.getNumBytes());
|
||||
lua_push_uint64_table_entry(vm, "egress", egress.getNumBytes());
|
||||
lua_push_uint64_table_entry(vm, "inner", inner.getNumBytes());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue