mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 08:50:12 +00:00
Document the host and network user scripts C API
This commit is contained in:
parent
2fa848cad5
commit
daa8441282
10 changed files with 102 additions and 37 deletions
|
|
@ -34,7 +34,7 @@ local script = {
|
|||
-- #################################################################
|
||||
|
||||
function script.hooks.all(params)
|
||||
local value = alerts_api.host_delta_val(script.key, params.granularity, host.getApplicationBytes(script.env.dns_app_id)["bytes"])
|
||||
local value = alerts_api.host_delta_val(script.key, params.granularity, host.getApplicationBytes(script.env.dns_app_id))
|
||||
|
||||
-- Check if the configured threshold is crossed by the value and possibly trigger an alert
|
||||
alerts_api.checkThresholdAlert(params, alert_consts.alert_types.alert_threshold_cross, value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue