Opsgenie

Manage incidents and on-call schedules via Opsgenie API. Create alerts and escalations.

kbarbel640-del Updated 1 repo stars

File contents

Opsgenie

Incident management.

Environment

export OPSGENIE_API_KEY="xxxxxxxxxx"

Create Alert

curl -X POST "https://api.opsgenie.com/v2/alerts" \
  -H "Authorization: GenieKey $OPSGENIE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message": "Server down", "priority": "P1"}'

List Alerts

curl "https://api.opsgenie.com/v2/alerts" -H "Authorization: GenieKey $OPSGENIE_API_KEY"

Acknowledge Alert

curl -X POST "https://api.opsgenie.com/v2/alerts/{alertId}/acknowledge" \
  -H "Authorization: GenieKey $OPSGENIE_API_KEY"

Links

kbarbel640-del/skills/tree/main/skills/mrgoodb/opsgenie commit 7fa4c7b7dc

Frequently asked questions

npx skillmds@latest add kbarbel640-del/opsgenie