v1

latestSwagger 2.02026-07-17290378721.8 KB
provisioning

Get a specific alert rule by UID.

get/api/v1/provisioning/alert-rules/{UID}

Path parameters

UIDstring required

Alert rule UID

Response

ProvisionedAlertRule

annotationsobject
conditionstring required
execErrState'Alerting' | 'Error' | 'OK' required
folderUIDstring required
forinteger required
idinteger
isPausedboolean
labelsobject
noDataState'Alerting' | 'NoData' | 'OK' required
orgIDinteger required
provenancestring
ruleGroupstring required
titlestring required
uidstring
updatedstring date-time

Example response

{
  "annotations": {
    "runbook_url": "https://supercoolrunbook.com/page/13"
  },
  "condition": "A",
  "data": [
    {
      "datasourceUid": "__expr__",
      "model": {
        "conditions": [
          {
            "evaluator": {
              "params": [
                0,
                0
              ],
              "type": "gt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": []
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "datasource": {
          "type": "__expr__",
          "uid": "__expr__"
        },
        "expression": "1 == 1",
        "hide": false,
        "intervalMs": 1000,
        "maxDataPoints": 43200,
        "refId": "A",
        "type": "math"
      },
      "queryType": "",
      "refId": "A",
      "relativeTimeRange": {
        "from": 0,
        "to": 0
      }
    }
  ],
  "folderUID": "project_x",
  "labels": {
    "team": "sre-team-1"
  },
  "ruleGroup": "eval_group_1",
  "title": "Always firing"
}