opsgenie-go-sdk-v2 icon indicating copy to clipboard operation
opsgenie-go-sdk-v2 copied to clipboard

Opsgenie GO SDK v2

Results 48 opsgenie-go-sdk-v2 issues
Sort by recently updated
recently updated
newest added

Currently the only option for exporting a schedule (https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/schedule/schedule.go#L75) is by giving a schedule and a file path as a parameter, which the function combines to export to that filepath...

in client/client.go, the following if-else branches contain the identical logic and should be combined: ```go if err == context.DeadlineExceeded { return nil, err } return nil, err ```

We're getting a lot of warnings for `Could not set requestId`. It seems to be coming from this line https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/master/client/client.go#L149 Below is a sample of a response not containing the...

I am creating an alert with the `alertClient.Create()` function https://docs.opsgenie.com/docs/opsgenie-go-api-v2#create-alert. How can I get the ID of the newly created alert? Currently, I am setting a self-generated ID as alias...

This is needed to align with [API docs](https://docs.opsgenie.com/docs/maintenance-api#list-maintenance) where we are able to list only a type of windows.

The [validation](https://github.com/opsgenie/opsgenie-go-sdk-v2/blob/b54d8bd73df43c558d4d348484c7e04957851738/og/entity.go#L162-L170) for the `priority` field in conditions does not allow the `match` operation. However, I have managed to create this via the console (at least for the ServiceNow integration):...

Treat a nil pointer for ListRequest.Expand as "false", basically, omitting the param from the URL. Allows one to `resp, err := sc.List(nil, &schedule.ListRequest{})` without a panic.

Hi, It seems that Postmortem API is not implemented in Go SDK. On top of that, there is no way to get a postmortem that is linked to an incident...