Score changes

- Move score from status definition to user scripts
- Separate flow score counter from the peers score
- Create a new HostScore class to hold the score data
This commit is contained in:
emanuele-f 2020-01-16 18:09:21 +01:00
parent 38facb051a
commit 566b9ece0b
29 changed files with 162 additions and 126 deletions

View file

@ -24,14 +24,11 @@ end
-- #################################################################
return {
-- score: the score of this status
-- prio: when a flow has multiple status set, the most important status is the one with highest priority
-- alert_type: the alert type associated to this status
-- alert_severity: the alert severity associated to this status
-- i18n_title: a localization string for the status
-- i18n_description (optional): a localization string / function for the description
cli_score = 100,
srv_score = 100,
-- A flow can have multiple statuses set. The predominant status is the one with the
-- histest "prio"