opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
34 stars 63 forks source link

`service_incident_rule` uses ServiceId as required string, not array #107

Open Benbentwo opened 1 year ago

Benbentwo commented 1 year ago

Context

When creating a team's incident ruleset via API we currently must use service ID as a string. This must be a valid Id as well (as seen in the validation section).

When trying to create the team incident ruleset via web however, we notice we can add multiple services to a ruleset. This allows us to state "when alert X comes with data Y, we know service A and B are down!" Similarly through an empty array, we could declare a generic incident that can mark high priority alerts without immediately specifying impact.

Symptoms

References:

Solution

We need an update such that the ServiceId is an array and brought up to web API versions structure.