Skip to main content
GET
/
organization
/
{organizationId}
/
alert-rules
List alert rules
curl --request GET \
  --url https://api.qovery.com/organization/{organizationId}/alert-rules \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "cluster_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "tag": "<string>",
      "condition": {
        "kind": "CUSTOM",
        "operator": "ABOVE",
        "threshold": 123,
        "function": "NONE",
        "promql": "<string>"
      },
      "for_duration": "<string>",
      "severity": "LOW",
      "enabled": true,
      "alert_receiver_ids": [
        "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      ],
      "presentation": {
        "summary": "<string>",
        "runbook_url": "<string>"
      },
      "target": {
        "target_type": " CLUSTER",
        "target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
      },
      "state": "UNDEPLOYED",
      "is_up_to_date": true
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

organizationId
string<uuid>
required

Organization ID

Response

OK

results
AlertRuleResponse · object[]
required