Opsgenie Provider
OpsGenie Provider is a provider that allows to create alerts in OpsGenie.
Authentication
This provider requires authentication.
- api_key: OpsGenie api key (required: True, sensitive: True)
- integration_name: OpsGenie integration name (required: True, sensitive: False)
Certain scopes may be required to perform specific actions or queries via the provider. Below is a summary of relevant scopes and their use cases:
- opsgenie:create: Create OpsGenie alerts (mandatory)
In workflows
This provider can be used in workflows.
As “step” to query data, example:
As “action” to make changes or update data, example:
Check the following workflow examples:
- failed-to-login-workflow.yml
- opsgenie-close-alert.yml
- opsgenie-create-alert.yml
- opsgenie_open_alerts.yml
Provider Methods
The provider exposes the following Provider Methods. They are available in the AI Assistant.
-
close_alert Close an alert (action, scopes: opsgenie:create)
-
comment_alert Comment an alert (action, scopes: opsgenie:create)
Connecting with the Provider
To use the Opsgenie Provider, you’ll need to provide the API Key and Integration Name from API Integration. You can create an API integration under Settings -> Integrations -> Add integration and search for API Integration. Select API and provide a name for the integration and click on continue.
You can create an integration key under Settings -> Integrations -> Add integration
If you are in the free tier, the integration key can be created under Teams -> Your team -> Integrations -> Add Integration (API)
Visit the Opsgenie API Integration for creating an API integration quickly.
Visit the Opsgenie API Integration documentation for latest information.
Useful Links
- How to create Opsgenie API Integration - https://support.atlassian.com/opsgenie/docs/create-a-default-api-integration/