Skip to content

Commit

Permalink
fix: add default inform severity
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Oct 24, 2023
1 parent 67c1082 commit a6a20b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions alerta/models/alarms/alerta_isa_18_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
Severity.Unknown: 0
}
DEFAULT_NORMAL_SEVERITY = Severity.Normal
DEFAULT_INFORM_SEVERITY = Severity.Informational
DEFAULT_PREVIOUS_SEVERITY = Severity.Normal

COLOR_MAP = {
Expand Down Expand Up @@ -90,6 +91,7 @@ def register(self, app):

StateMachine.DEFAULT_STATUS = Status.Closed
StateMachine.DEFAULT_NORMAL_SEVERITY = app.config['DEFAULT_NORMAL_SEVERITY'] or DEFAULT_NORMAL_SEVERITY
StateMachine.DEFAULT_INFORM_SEVERITY = app.config['DEFAULT_INFORM_SEVERITY'] or DEFAULT_INFORM_SEVERITY
StateMachine.DEFAULT_PREVIOUS_SEVERITY = app.config['DEFAULT_PREVIOUS_SEVERITY'] or DEFAULT_PREVIOUS_SEVERITY

def trend(self, previous, current):
Expand Down

0 comments on commit a6a20b4

Please sign in to comment.