Opsgenie
Opsgenie
Alerts API with priority mapping and automatic close.
Create an API integration in Opsgenie and use its key. Alias is the monitor id, so repeats update rather than duplicate.
cURL
curl -X POST https://api.logstreem.com/v1/notifiers \
-H "Authorization: Bearer $LOGSTREEM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "SRE on-call",
"type": "opsgenie",
"config": {
"api_key": "eb243592-faa2-4ba2-a551q-1afdf565c889",
"region": "eu",
"priority": "P2"
}
}'| Config | Note |
|---|---|
api_key | From an API integration |
region | us or eu. Must match your Opsgenie instance |
priority | P1–P5. Default P3 |
responders | Optional team or schedule names |