ReceivePlatformAlerts
Receive alert notifications from managed platforms (ZStack/ZStone) Auth: HMAC(webhookToken, platformUUID) in query param 'token'.
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
sourceStringRequiredSource platform identifier
Example: zstack
tokenStringRequiredHMAC authentication token
Example: hmac-token-abc123
alertsListRequiredList of alert payloads from the platform
Example: (nested array)
statusStringAlert status: firing or resolved
Example: firing
fingerprintStringUnique fingerprint for deduplication
Example: abc123def456
generatorUrlStringURL to the alert source in the generator system
Example: http://prometheus:9090/graph?g0.expr=up
labelsLinkedHashMapKey-value labels attached to this resource
Example: (nested object)
annotationsLinkedHashMapArbitrary key-value annotations for metadata
Example: (nested object)
startsAtStringISO 8601 timestamp when the alert started firing
Example: 2024-01-15T09:30:00Z
endsAtStringISO 8601 timestamp when the alert was resolved
Example: 2024-01-15T10:00:00Z
commonLabelsLinkedHashMapRequiredLabels common to all alerts in this group
Example: (nested object)
Responses
Endpoint
POST/api/v1/alerting/receive
/api/v1/alerting/receive
Request Example
curl -X POST '{host}/api/v1/alerting/receive' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"source":"zstack","token":"hmac-token-abc123","alerts":"(nested array)","commonLabels":"(nested object)"}'
Response Example
200{
"received": 5,
"created": 3,
"updated": 1,
"skipped": 1,
"injected": 4,
"fallback": false,
"fallbackReason": "primary channel unavailable"
}Change History
This API has no change history records yet.
