Skip to main content
Alerting & Response/Alert Routing & Policies

ReceivePlatformAlerts

Receive alert notifications from managed platforms (ZStack/ZStone). Uses platform HMAC credentials in the declared request source/token fields, without an end-user Bearer token. source is required; token validation follows the platform webhook configuration.

POST/api/v1/alerting/receive

Operation ID

ReceivePlatformAlerts

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Platform HMAC Credentials

Auth Context

No end-user Bearer token is used. source is required. Token validation follows the platform webhook configuration: when a webhook token is configured, the supplied token must be valid.

Request Inputs

application/json

Body Fields

  • source
    StringRequired

    Source platform identifier

    Example: zstack

  • token
    String

    HMAC authentication token

    Example: hmac-token-abc123

  • alerts
    List

    List of alert payloads from the platform

    • status
      String

      Alert status: firing or resolved

      Example: firing

    • fingerprint
      String

      Unique fingerprint for deduplication

      Example: abc123def456

    • generatorURL
      String

      URL to the alert source in the generator system

      Example: http://prometheus:9090/graph?g0.expr=up

    • labels
      LinkedHashMap

      Key-value labels attached to this resource

    • annotations
      LinkedHashMap

      Arbitrary key-value annotations for metadata

    • startsAt
      String

      ISO 8601 timestamp when the alert started firing

      Example: 2024-01-15T09:30:00Z

    • endsAt
      String

      ISO 8601 timestamp when the alert was resolved

      Example: 2024-01-15T10:00:00Z

  • commonLabels
    LinkedHashMap

    Labels common to all alerts in this group

Responses

200 OK

Successful response

Content-Type: application/json

Response body root type: object

  • received
    Integer

    Number of alerts received in the payload

    Example: 5

    {"format":"int32"}

  • created
    Integer

    Number of new alerts created

    Example: 3

    {"format":"int32"}

  • updated
    Integer

    Number of existing alerts updated

    Example: 1

    {"format":"int32"}

  • skipped
    Integer

    Number of duplicate alerts skipped

    Example: 1

    {"format":"int32"}

  • injected
    Integer

    Number of alerts injected into the pipeline

    Example: 4

    {"format":"int32"}

  • fallback
    Boolean

    Whether fallback processing was used

    Example: false

  • fallbackReason
    String

    Reason for fallback if applicable

    Example: primary channel unavailable

  • Change Time

    AddedRequest body fields generatorURLDeletedRequest body fields generatorUrl
    View API