Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetOrCreateIntegrations ¶
func (c *Client) GetOrCreateIntegrations(ctx context.Context, teamName string) (*IntegrationsResponse, bool, error)
Gets OpsGenie integrations return codes: - 400: Bad request to Opsgenie - 401: Unauthorized - 404: Not found returned by Opsgenie. Does the specified Opsgenie team exist? - 422: Semantic error in request to Opsgenie. - 429: Rate limited by Opsgenie.
type Integration ¶
type IntegrationsResponse ¶
type IntegrationsResponse struct {
Integrations []Integration `json:"integrations"`
}
Click to show internal directories.
Click to hide internal directories.