Skip to content

Commit

Permalink
Merge branch 'main' into feat/servicenow-cmdb-and-auto-mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren authored Sep 8, 2024
2 parents fb74fbf + c13c024 commit e424c30
Show file tree
Hide file tree
Showing 2 changed files with 629 additions and 635 deletions.
5 changes: 5 additions & 0 deletions keep/providers/newrelic_provider/newrelic_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,17 @@ def _format_alert(
name = event.get("title", "")

logger.info("Formatted event from New Relic")
# TypeError: keep.api.models.alert.AlertDto() got multiple values for keyword argument 'source'"
if "source" in event:
newrelic_source = event.pop("source")

return AlertDto(
source=["newrelic"],
name=name,
lastReceived=lastReceived,
status=status,
severity=severity,
newrelic_source=newrelic_source,
**event,
)

Expand Down
Loading

0 comments on commit e424c30

Please sign in to comment.