Skip to main content

Create Load Balancer Alert

Creates a monitoring alert (trigger) for one or more load balancers. The request body must be wrapped in a top-level trigger_data object - a missing trigger_data key returns 400 trigger_data key is required.

For load balancers, set service_type to load_balancer and list the load balancer IDs in service_ids. The alert fires when the chosen metric (trigger_type) crosses trigger_threshold according to trigger_operator. Notifications are sent to the user groups in usergroups, owned by the IAM member in owner.

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 scope for the alert.

    • must be a non-empty string
    example{{location}}

Request body

application/json

object
trigger_dataobjectrequired

Wrapper object holding the alert definition. Required - a missing trigger_data key returns a 400 error.

Responses

200Successful response
object
codeinteger
example201
dataobject
errorsobject
messagestring
exampleCreated Successfully