Skip to content

Commit

Permalink
fix: make redis great again
Browse files Browse the repository at this point in the history
  • Loading branch information
shahargl committed Sep 7, 2024
1 parent 2327073 commit d570855
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions keep/providers/newrelic_provider/newrelic_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,10 @@ def _format_alert(
).isoformat()

# format status and severity to Keep format
status = event.get("status", "") or event.get("state", "")
status = event.pop("status", "") or event.pop("state", "")
status = NewrelicProvider.STATUS_MAP.get(status.lower(), AlertStatus.FIRING)

severity = event.get("severity", "") or event.get("priority", "")
severity = event.pop("severity", "") or event.pop("priority", "")
severity = NewrelicProvider.SEVERITIES_MAP.get(
severity.lower(), AlertSeverity.INFO
)
Expand Down

0 comments on commit d570855

Please sign in to comment.