Skip to main content

Create a Cluster Alert

Creates a monitoring alert for a cluster node. The alert fires when a metric (trigger_type) crosses trigger_threshold per trigger_operator, and notifies the chosen user groups. The alert configuration is wrapped in a trigger_data object with service_type: "kubernetes" and the target node service_ids.

POST/api/v1/monitoring/single-service/alerts/

Query parameters

  • project_idQueryintegerrequired

    Identifier of the project to scope the request to. Required integer project ID.

    • required
    • must be a valid integer project ID
    example{{project_id}}
  • apikeyQuerystringrequired

    API key used to authenticate the request.

    • required
    • non-empty string
    example{{api_key}}
  • locationQuerystringrequired

    Region of the cluster.

    • required
    • must be a valid region name (e.g., Delhi, Chennai)
    example{{location}}

Request body

application/json

object

The alert definition is wrapped in a trigger_data object.

trigger_dataobjectrequired

Responses

200Successful response
object
codeinteger
example201
dataobject
errorsobject
messagestring
exampleCreated Successfully