mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Implement replies/requests ratio alert
This commit is contained in:
parent
65049b2cac
commit
a0761db1e8
6 changed files with 118 additions and 5 deletions
|
|
@ -837,6 +837,20 @@ end
|
|||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.requestReplyRatioType(key, requests, replies, granularity)
|
||||
return({
|
||||
alert_type = alert_consts.alert_types.request_reply_ratio,
|
||||
alert_subtype = key,
|
||||
alert_granularity = alert_consts.alerts_granularities[granularity],
|
||||
alert_severity = alert_consts.alert_severities.warning,
|
||||
alert_type_params = {
|
||||
requests = requests, replies = replies,
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
-- ##############################################
|
||||
|
||||
function alerts_api.load_check_modules(subdir, str_granularity)
|
||||
local checks_dir = os_utils.fixPath(ALERT_CHECKS_MODULES_BASEDIR .. "/" .. subdir)
|
||||
local available_modules = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue