Skip to content

Commit

Permalink
chore(provider): signalfx handle inputs dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
talboren committed Apr 24, 2024
1 parent f01af1c commit c7f66af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions keep/providers/signalfx_provider/signalfx_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ def _format_alert(
description = event.pop("description", "")
name = event.pop("messageTitle", "")
lastReceived = event.pop("timestamp", datetime.datetime.utcnow().isoformat())
inputs: dict = event.pop("inputs", {})
new_inputs = []
for key, value in inputs.items():
value["id"] = key
new_inputs.append(value)
event["inputs"] = new_inputs
url = event.pop("detectorUrl")
url = SignalfxProvider.sanitize_url(url)
_id = event.pop("incidentId")
Expand Down

0 comments on commit c7f66af

Please sign in to comment.