---
title: "List a project's alert rules"
description: "Each with its status, in sort order: state (the default: firing, error, noData, pending, ok, disabled, then name), name, or changed (the latest stateSince first; rules without one last). total counts the rules the filters keep. limit is 1-100 (default 25). 404 while alerting isn't offered (the console hides Alerting then)."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Observability API

`GET /v1/organizations/{orgId}/projects/{projectId}/obs/alert-rules`

Each with its status, in sort order: state (the default: firing, error, noData, pending, ok, disabled, then name), name, or changed (the latest stateSince first; rules without one last). total counts the rules the filters keep. limit is 1-100 (default 25). 404 while alerting isn't offered (the console hides Alerting then).

## Authentication

Requires one of the following:

- `apiKey`, http, header `Authorization`
- `oauth`, http, header `Authorization`
- `sessionCookie`, apiKey, in cookie

## Path parameters

- `ListAlertRules.path.orgId` (string, required)
  - format `uuid`
- `ListAlertRules.path.projectId` (string, required)
  - format `uuid`

## Query parameters

- `ListAlertRules.query.limit` (integer, optional) — The page size. Out of range is 400, never a clamp.
  - min 1; max 100; default `25`
- `ListAlertRules.query.cursor` (string, optional) — The previous page's nextCursor. Bound to the organization, the list and its filters.
- `ListAlertRules.query.state` (array<string>, optional) — Only rules in these states (repeatable): ok, pending, firing, noData, error, disabled.
- `ListAlertRules.query.enabled` (string, optional) — true or false.
  - one of `"true"`, `"false"`
- `ListAlertRules.query.q` (string, optional) — Only rules whose name contains this (case-insensitive).
- `ListAlertRules.query.kind` (array<string>, optional) — Only rules whose condition is of these kinds (repeatable).
- `ListAlertRules.query.contactPoint` (string, optional) — Only rules that notify this contact point.
  - format `uuid`
- `ListAlertRules.query.label` (array<string>, optional) — Only rules whose static labels match (repeatable): name=value, name!=value, name=~regex or name!~regex (anchored RE2; a missing label is empty).
- `ListAlertRules.query.sort` (string, optional) — state (default), name or changed.
  - one of `"state"`, `"name"`, `"changed"`

## Code samples

### cURL

```curl
curl --request GET \
  --url https://obs.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/obs/alert-rules \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://obs.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/obs/alert-rules';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://obs.ezghcloud.com/v1/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/obs/alert-rules"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

A page of alert rules.

#### Example

```json
{
  "alertRules": [
    {
      "annotations": {
        "property1": "string",
        "property2": "string"
      },
      "condition": {
        "logs": {
          "aggregate": {
            "field": null,
            "fn": "string"
          },
          "dataset": "d93f2be0-02b1-4d87-8b6e-fc5cba21ed8d",
          "filter": {},
          "groupBy": [
            {
              "field": null
            }
          ],
          "threshold": {
            "op": ">",
            "value": 0
          },
          "window": "string"
        }
      },
      "contactPoints": [
        "497f6eca-6276-4993-bfeb-53cbbbba6f08"
      ],
      "createdAt": "2019-08-24T14:15:22Z",
      "createdBy": {
        "id": "string",
        "type": "string"
      },
      "description": "string",
      "enabled": true,
      "for": "string",
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "keepFiringFor": "string",
      "kind": "string",
      "labels": {
        "property1": "string",
        "property2": "string"
      },
      "name": "string",
      "noData": "ok",
      "notifyOnResolve": true,
      "onError": "error",
      "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8",
      "repeatInterval": "string",
      "resourceName": "string",
      "slug": "string",
      "status": {
        "counts": {
          "firing": 0,
          "noData": 0,
          "pending": 0
        },
        "degraded": true,
        "degradedSince": "2019-08-24T14:15:22Z",
        "error": "string",
        "errorSince": "2019-08-24T14:15:22Z",
        "lastDurationMs": 0,
        "lastEvaluatedAt": "2019-08-24T14:15:22Z",
        "state": "string",
        "stateSince": "2019-08-24T14:15:22Z",
        "warnings": [
          "string"
        ]
      },
      "updatedAt": "2019-08-24T14:15:22Z",
      "updatedBy": {
        "id": "string",
        "type": "string"
      },
      "version": 0,
      "warnings": [
        "string"
      ]
    }
  ],
  "nextCursor": "string",
  "total": 0
}
```

- `ListAlertRules.response.200.alertRules` (array<object>, required)
  - `ListAlertRules.response.200.alertRules.condition` (object, required) — Exactly one of promql, logs and traces.
    - `ListAlertRules.response.200.alertRules.condition.logs` (object, optional) — A logs or traces aggregate over [t − window, t); each group whose value satisfies the threshold is an active instance.
      - `ListAlertRules.response.200.alertRules.condition.logs.aggregate` (object, required) — One aggregation, as a dashboard panel's: {fn, field?}.
        - `ListAlertRules.response.200.alertRules.condition.logs.aggregate.fn` (string, required)
        - `ListAlertRules.response.200.alertRules.condition.logs.aggregate.field` (unknown, optional)
      - `ListAlertRules.response.200.alertRules.condition.logs.dataset` (string, required)
        - format `uuid`
      - `ListAlertRules.response.200.alertRules.condition.logs.threshold` (object, required)
        - `ListAlertRules.response.200.alertRules.condition.logs.threshold.op` (string, required)
          - one of `">"`, `">="`, `"<"`, `"<="`, `"=="`, `"!="`
        - `ListAlertRules.response.200.alertRules.condition.logs.threshold.value` (number, required)
      - `ListAlertRules.response.200.alertRules.condition.logs.window` (string, required) — The aggregate's window, ending at the evaluation time: 1m to 15m in whole minutes.
      - `ListAlertRules.response.200.alertRules.condition.logs.filter` (object, optional) — The dashboard panel's filter: logs' filters (LogFilters) or traces' (TraceFilters), kept as sent (stored as JSON: key order and number spelling may be normalized). Default {}.
      - `ListAlertRules.response.200.alertRules.condition.logs.groupBy` (array<object>, optional) — At most 2 fields; at most 50 groups are evaluated (more is a rule error).
        - `ListAlertRules.response.200.alertRules.condition.logs.groupBy.field` (unknown, required)
    - `ListAlertRules.response.200.alertRules.condition.promql` (object, optional)
      - `ListAlertRules.response.200.alertRules.condition.promql.expr` (string, required) — A PromQL expression returning an instant vector, with its comparison: every series it returns is an active instance. Ranges, subquery ranges and offsets add up to at most 1h along any path; @ isn't allowed.
        - maxLength 8192
    - `ListAlertRules.response.200.alertRules.condition.traces` (object, optional) — A logs or traces aggregate over [t − window, t); each group whose value satisfies the threshold is an active instance.
      - `ListAlertRules.response.200.alertRules.condition.traces.aggregate` (object, required) — One aggregation, as a dashboard panel's: {fn, field?}.
        - `ListAlertRules.response.200.alertRules.condition.traces.aggregate.fn` (string, required)
        - `ListAlertRules.response.200.alertRules.condition.traces.aggregate.field` (unknown, optional)
      - `ListAlertRules.response.200.alertRules.condition.traces.dataset` (string, required)
        - format `uuid`
      - `ListAlertRules.response.200.alertRules.condition.traces.threshold` (object, required)
        - `ListAlertRules.response.200.alertRules.condition.traces.threshold.op` (string, required)
          - one of `">"`, `">="`, `"<"`, `"<="`, `"=="`, `"!="`
        - `ListAlertRules.response.200.alertRules.condition.traces.threshold.value` (number, required)
      - `ListAlertRules.response.200.alertRules.condition.traces.window` (string, required) — The aggregate's window, ending at the evaluation time: 1m to 15m in whole minutes.
      - `ListAlertRules.response.200.alertRules.condition.traces.filter` (object, optional) — The dashboard panel's filter: logs' filters (LogFilters) or traces' (TraceFilters), kept as sent (stored as JSON: key order and number spelling may be normalized). Default {}.
      - `ListAlertRules.response.200.alertRules.condition.traces.groupBy` (array<object>, optional) — At most 2 fields; at most 50 groups are evaluated (more is a rule error).
        - `ListAlertRules.response.200.alertRules.condition.traces.groupBy.field` (unknown, required)
  - `ListAlertRules.response.200.alertRules.contactPoints` (array<string>, required) — 0 to 10 contact point IDs of the project. Default none (the rule still evaluates and keeps state).
    - format `uuid`
  - `ListAlertRules.response.200.alertRules.createdAt` (string, required) — UTC, millisecond precision: 2026-10-02T10:20:00.000Z.
    - format `date-time`
  - `ListAlertRules.response.200.alertRules.createdBy` (object, required)
    - `ListAlertRules.response.200.alertRules.createdBy.id` (string, required)
    - `ListAlertRules.response.200.alertRules.createdBy.type` (string, required) — user or bot (org-api's principal type).
  - `ListAlertRules.response.200.alertRules.enabled` (boolean, required) — Off: the rule isn't evaluated and has no instances. Default true.
  - `ListAlertRules.response.200.alertRules.for` (string, required) — How long the condition must hold before an instance fires: 0 to 24h in whole minutes. Default 0.
  - `ListAlertRules.response.200.alertRules.id` (string, required)
    - format `uuid`
  - `ListAlertRules.response.200.alertRules.keepFiringFor` (string, required) — How long a firing instance keeps firing after the condition stops holding: 0 to 24h in whole minutes. Default 0.
  - `ListAlertRules.response.200.alertRules.kind` (string, required) — The condition's kind: promql, logs or traces.
  - `ListAlertRules.response.200.alertRules.name` (string, required)
    - minLength 1; maxLength 100
  - `ListAlertRules.response.200.alertRules.noData` (string, required) — Logs and traces conditions whose aggregate returns no groups: ok (nothing active), alerting (one active instance) or noData (one instance in the noData state). Default noData. PromQL ignores it: use absent().
    - one of `"ok"`, `"alerting"`, `"noData"`
  - `ListAlertRules.response.200.alertRules.notifyOnResolve` (boolean, required) — Notify when instances resolve. Default true.
  - `ListAlertRules.response.200.alertRules.onError` (string, required) — A rule error (the engine refuses the query, more than 1,000 instances, a budget exceeded): error puts the rule in the error state and notifies; ok records it without notifying. Default error. EZGH's own failures never notify.
    - one of `"error"`, `"ok"`
  - `ListAlertRules.response.200.alertRules.projectId` (string, required)
    - format `uuid`
  - `ListAlertRules.response.200.alertRules.repeatInterval` (string, required) — How often a still-firing rule notifies again: 5m to 7d. Default 4h.
  - `ListAlertRules.response.200.alertRules.resourceName` (string, required)
  - `ListAlertRules.response.200.alertRules.slug` (string, required)
  - `ListAlertRules.response.200.alertRules.status` (object, required) — A rule's evaluation state.
    - `ListAlertRules.response.200.alertRules.status.counts` (object, required)
      - `ListAlertRules.response.200.alertRules.status.counts.firing` (integer, required)
      - `ListAlertRules.response.200.alertRules.status.counts.noData` (integer, required)
      - `ListAlertRules.response.200.alertRules.status.counts.pending` (integer, required)
    - `ListAlertRules.response.200.alertRules.status.degraded` (boolean, required) — Evaluations are delayed by an EZGH issue (late data or storage unavailable): state is held and nothing resolves or notifies about it.
    - `ListAlertRules.response.200.alertRules.status.degradedSince` (string | null, required)
      - format `date-time`
    - `ListAlertRules.response.200.alertRules.status.error` (string | null, required) — The last evaluation's rule error, or null.
    - `ListAlertRules.response.200.alertRules.status.errorSince` (string | null, required)
      - format `date-time`
    - `ListAlertRules.response.200.alertRules.status.lastDurationMs` (integer | null, required)
    - `ListAlertRules.response.200.alertRules.status.lastEvaluatedAt` (string | null, required)
      - format `date-time`
    - `ListAlertRules.response.200.alertRules.status.state` (string, required) — ok, pending, firing, noData, error or disabled (off, or its organization is being deleted). More may be added.
    - `ListAlertRules.response.200.alertRules.status.stateSince` (string | null, required) — When the rule entered its state (as obs-alerts recorded it); null when not known yet, or disabled.
      - format `date-time`
    - `ListAlertRules.response.200.alertRules.status.warnings` (array<string>, required) — sampledData, noContactPoints. More codes may be added.
  - `ListAlertRules.response.200.alertRules.updatedAt` (string, required) — UTC, millisecond precision: 2026-10-02T10:20:00.000Z.
    - format `date-time`
  - `ListAlertRules.response.200.alertRules.updatedBy` (object, required)
    - `ListAlertRules.response.200.alertRules.updatedBy.id` (string, required)
    - `ListAlertRules.response.200.alertRules.updatedBy.type` (string, required) — user or bot (org-api's principal type).
  - `ListAlertRules.response.200.alertRules.version` (integer, required)
  - `ListAlertRules.response.200.alertRules.annotations` (map<string>, optional) — Templates (Prometheus's alerting template language, without query, range or template; at most 4 KiB each, 16 in all), rendered per instance with $labels and $value.
  - `ListAlertRules.response.200.alertRules.description` (string, optional)
    - maxLength 1000
  - `ListAlertRules.response.200.alertRules.labels` (map<string>, optional) — Static labels on every instance (at most 32). alertname, ezgh_* and __* are reserved.
  - `ListAlertRules.response.200.alertRules.warnings` (array<string>, optional) — Create and update answers only: sampledData (a traces condition on a dataset with tail sampling sees only kept spans) and noContactPoints (the rule notifies no one).
- `ListAlertRules.response.200.nextCursor` (string | null, required)
- `ListAlertRules.response.200.total` (integer, required) — The rules the filters keep.

### 400

invalid_request (with issues), invalid_cursor, or the endpoint's own 400 codes.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.400.error` (object, required)
  - `ListAlertRules.response.400.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.400.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.400.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.400.error.issues.message` (string, required)
    - `ListAlertRules.response.400.error.issues.path` (string, required)
  - `ListAlertRules.response.400.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.400.error.quota.id` (string, required)
    - `ListAlertRules.response.400.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.400.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.400.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.400.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.400.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.400.error.quota.region` (string, optional)
    - `ListAlertRules.response.400.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.400.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.400.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.400.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 401

unauthenticated: no credential, or one that doesn't check out.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.401.error` (object, required)
  - `ListAlertRules.response.401.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.401.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.401.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.401.error.issues.message` (string, required)
    - `ListAlertRules.response.401.error.issues.path` (string, required)
  - `ListAlertRules.response.401.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.401.error.quota.id` (string, required)
    - `ListAlertRules.response.401.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.401.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.401.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.401.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.401.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.401.error.quota.region` (string, optional)
    - `ListAlertRules.response.401.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.401.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.401.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.401.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 403

access_denied: the caller's policies don't allow the action; forbidden_origin: a cookie-authenticated write from an origin that isn't allowed; spend_limit_reached.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.403.error` (object, required)
  - `ListAlertRules.response.403.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.403.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.403.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.403.error.issues.message` (string, required)
    - `ListAlertRules.response.403.error.issues.path` (string, required)
  - `ListAlertRules.response.403.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.403.error.quota.id` (string, required)
    - `ListAlertRules.response.403.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.403.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.403.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.403.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.403.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.403.error.quota.region` (string, optional)
    - `ListAlertRules.response.403.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.403.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.403.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.403.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 404

not_found: unknown, malformed, or in an organization the caller isn't in.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.404.error` (object, required)
  - `ListAlertRules.response.404.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.404.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.404.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.404.error.issues.message` (string, required)
    - `ListAlertRules.response.404.error.issues.path` (string, required)
  - `ListAlertRules.response.404.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.404.error.quota.id` (string, required)
    - `ListAlertRules.response.404.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.404.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.404.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.404.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.404.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.404.error.quota.region` (string, optional)
    - `ListAlertRules.response.404.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.404.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.404.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.404.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 429

too_many_requests, with Retry-After; or quota_exceeded (a rate, usage or concurrency quota, with quota), never with Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.429.error` (object, required)
  - `ListAlertRules.response.429.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.429.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.429.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.429.error.issues.message` (string, required)
    - `ListAlertRules.response.429.error.issues.path` (string, required)
  - `ListAlertRules.response.429.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.429.error.quota.id` (string, required)
    - `ListAlertRules.response.429.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.429.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.429.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.429.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.429.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.429.error.quota.region` (string, optional)
    - `ListAlertRules.response.429.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.429.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.429.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.429.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 500

internal_error: a bug; the details are in the logs, under the request ID.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.500.error` (object, required)
  - `ListAlertRules.response.500.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.500.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.500.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.500.error.issues.message` (string, required)
    - `ListAlertRules.response.500.error.issues.path` (string, required)
  - `ListAlertRules.response.500.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.500.error.quota.id` (string, required)
    - `ListAlertRules.response.500.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.500.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.500.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.500.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.500.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.500.error.quota.region` (string, optional)
    - `ListAlertRules.response.500.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.500.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.500.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.500.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.

### 503

unavailable: a dependency the request needs is down. Retry after Retry-After.

#### Example

```json
{
  "error": {
    "code": "string",
    "issues": [
      {
        "message": "string",
        "path": "string"
      }
    ],
    "message": "string",
    "quota": {
      "id": "string",
      "inFlight": 0,
      "kind": "allocation",
      "limit": 0,
      "periodStart": "2019-08-24T14:15:22Z",
      "region": "string",
      "resetsAt": "2019-08-24T14:15:22Z",
      "scope": "organization",
      "scopeResourceName": "string",
      "used": 0,
      "window": "string"
    }
  }
}
```

- `ListAlertRules.response.503.error` (object, required)
  - `ListAlertRules.response.503.error.code` (string, required)
    - maxLength 64; pattern `^[a-z][a-z0-9_]*$`
  - `ListAlertRules.response.503.error.message` (string, required)
    - maxLength 1024
  - `ListAlertRules.response.503.error.issues` (array<object>, optional) — invalid_request: one entry per problem, at a dotted path.
    - `ListAlertRules.response.503.error.issues.message` (string, required)
    - `ListAlertRules.response.503.error.issues.path` (string, required)
  - `ListAlertRules.response.503.error.quota` (object, optional) — quota_exceeded: the quota that refused the request. Never with Retry-After.
    - `ListAlertRules.response.503.error.quota.id` (string, required)
    - `ListAlertRules.response.503.error.quota.kind` (unknown, required)
      - one of `"allocation"`, `"rate"`, `"usage"`, `"concurrency"`
    - `ListAlertRules.response.503.error.quota.limit` (integer, required)
      - min 0
    - `ListAlertRules.response.503.error.quota.scope` (unknown, required)
      - one of `"organization"`, `"project"`, `"resource"`
    - `ListAlertRules.response.503.error.quota.inFlight` (integer, optional)
      - min 0
    - `ListAlertRules.response.503.error.quota.periodStart` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.503.error.quota.region` (string, optional)
    - `ListAlertRules.response.503.error.quota.resetsAt` (string, optional)
      - format `date-time`
    - `ListAlertRules.response.503.error.quota.scopeResourceName` (string, optional)
    - `ListAlertRules.response.503.error.quota.used` (integer, optional)
      - min 0
    - `ListAlertRules.response.503.error.quota.window` (string, optional) — rate only: an ISO 8601 duration, PT1S to PT1H.


Source: https://docs.ezghcloud.com/obs-api/ListAlertRules/index.md
