Opsgenie is a modern incident management platform for operating always-on services, empowering Dev and Ops teams to plan for service disruptions and stay in control during incidents.
Go to siteThe Opsgenie API enables automated incident management and alerting to streamline response actions. It allows you to create, update, and manage alerts, as well as configure and query users, schedules, and on-call rotations. Integrating Opsgenie with Pipedream opens up possibilities for orchestrating complex workflows, such as incident triggering from various sources, auto-update of tickets, synchronization with other tools, and much more, all in a serverless environment.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
opsgenie: {
type: "app",
app: "opsgenie",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.opsgenie.$auth.instance_region}.opsgenie.com/v2/teams`,
headers: {
"Authorization": `GenieKey ${this.opsgenie.$auth.api_key}`,
},
})
},
})
Incident Alerting from Monitoring Tools: Trigger an Opsgenie alert in Pipedream when a monitoring tool like Datadog or Prometheus detects an anomaly. This workflow can automatically escalate and notify the right teams based on the alert severity.
Scheduled On-Call Rotations Sync: Use Pipedream to sync Opsgenie's on-call schedules with Google Calendar. This ensures that any changes in Opsgenie are reflected on the team's calendars, keeping everyone informed of their on-call periods without manual updates.
Auto-Resolution of Incidents: Configure a workflow in Pipedream to watch for status updates from a linked ticketing system, such as Jira. When an incident is marked as resolved in Jira, automatically close the corresponding alert in Opsgenie.
Get the status of the alert with the specified ID. See the documentation
Opsgenie uses API keys for authentication. When you connect your Opsgenie account, Pipedream securely stores the keys so you can easily authenticate to Opsgenie APIs in both code and no-code steps.
Opsgenie uses two sets of API Keys for different purposes - the Global API Key is primarily used for global configuration management, and the Team API Key is tied directly to a given team. To learn about the difference between Global API Key and Team API Key, see the docs here.
Please note, that you will need to provide your Team API Key to Create Alert, Acknowledge Alert, or Close Alert as those API calls are restricted to Team API Keys.