Use this skill to interact with SIGNL4 via its inbound webhook:
Authentication is handled via the team secret embedded in the webhook URL.
Webhook documentation:
https://docs.signl4.com/integrations/webhook/webhook.html
The following environment variable must be set:
SIGNL4_TEAM_SECRET – the SIGNL4 team secret used in the webhook URLOptional (advanced):
SIGNL4_WEBHOOK_BASE – defaults to https://connect.signl4.com/webhookRequired:
Optional:
X-S4-Service)X-S4-AlertingScenario – e.g. single_ack, multi_ack, emergency)X-S4-Location, format: "lat,long")Required:
X-S4-ExternalID if the alert might need to be closed later.X-S4-Status: "new" to create an alert.Set the webhook URL:
WEBHOOK_URL="${SIGNL4_WEBHOOK_BASE:-https://connect.signl4.com/webhook}/${SIGNL4_TEAM_SECRET}"
Send the alert:
curl -sS -X POST "$WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{
"Title": "<TITLE>",
"Message": "<MESSAGE>",
"X-S4-ExternalID": "<EXTERNAL_ID>",
"X-S4-Status": "new",
"X-S4-Service": "<OPTIONAL_SERVICE>",
"X-S4-AlertingScenario": "<OPTIONAL_SCENARIO>",
"X-S4-Location": "<OPTIONAL_LAT_LONG>",
"X-S4-SourceSystem": "OpenClaw"
}'
If the request fails:
SIGNL4_TEAM_SECRET is set and correctTo close an alert, you must:
X-S4-Status to resolvedcurl -sS -X POST "$WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{
"X-S4-ExternalID": "<EXTERNAL_ID>",
"X-S4-Status": "resolved"
}'
SIGNL4_TEAM_SECRET as confidential共 1 个版本