According to https://docs.opsgenie.com/docs/alert-api#create-alert neither of those two fields are documented as supported but they still work for now as a hangover from the old API. The JSON instead should look like this:
Also, the escalation and schedule types are not currently supported. I propose adding users, escalations, and schedules keys that take the same schema as the teams key and then the handler can munge all four into the one responders field, adding the correct type key along the way. The current recipients key can be supported instead of/as well as users by munging it into additional users entries.
The handler code currently creates an alert like this:
According to https://docs.opsgenie.com/docs/alert-api#create-alert neither of those two fields are documented as supported but they still work for now as a hangover from the old API. The JSON instead should look like this:
Also, the escalation and schedule types are not currently supported. I propose adding
users
,escalations
, andschedules
keys that take the same schema as theteams
key and then the handler can munge all four into the one responders field, adding the correcttype
key along the way. The currentrecipients
key can be supported instead of/as well asusers
by munging it into additionalusers
entries.