Path Parameters1 of 1 keywords covered
UID1 / 1
#validinvalidschema
11779n/a{
21779n/a "type": "string"
31779n/a}
Headers1 of 1 keywords covered
X-Disable-Provenance1 / 1
1812n/a{
2812n/a "type": "string"
3812n/a}
Body72 of 72 keywords covered
application/json72 / 72
ProvisionedAlertRule
1955381{
2967363 "properties": {
366620 "annotations": {
45666 "additionalProperties": {
510506 "type": "string"
65666 },
767214 "type": "object"
866620 },
913217 "condition": {
1013217 "type": "string"
1113217 },
12124187 "data": {
13124180 "items": {
15124180 },
1613217 "type": "array"
17124187 },
18131315 "execErrState": {
19131315 "enum": [
20919n/a "OK",
21178n/a "Alerting",
22216n/a "Error"
23131315 ],
2413235 "type": "string"
25131315 },
26131513 "folderUID": {
27131513 "type": "string"
28131513 },
29131810 "for": {
3013185 "format": "duration",
3113235 "type": "string"
32131810 },
3362116 "id": {
3462116 "format": "int64",
3562413 "type": "integer"
3662116 },
376148 "isPaused": {
386148 "type": "boolean"
396148 },
406417 "keep_firing_for": {
416411 "format": "duration",
426426 "type": "string"
436417 },
4463911 "labels": {
455526 "additionalProperties": {
46101511 "type": "string"
475526 },
486455 "type": "object"
4963911 },
5058814 "missingSeriesEvalsToResolve": {
5158814 "format": "int64",
525966 "type": "integer"
5358814 },
54131711 "noDataState": {
55131711 "enum": [
56532n/a "Alerting",
57253n/a "NoData",
58532n/a "OK"
59131711 ],
6013235 "type": "string"
61131711 },
6256181 "notification_settings": {
6456181 },
65131511 "orgID": {
66131511 "format": "int64",
6713206 "type": "integer"
68131511 },
696425 "provenance": {
716425 },
7260238 "record": {
7460238 },
75130919 "ruleGroup": {
7613129 "maxLength": 190,
7713183 "minLength": 1,
7813217 "type": "string"
79130919 },
80131414 "title": {
8113212 "maxLength": 190,
8213167 "minLength": 1,
8313235 "type": "string"
84131414 },
856278 "uid": {
866291 "maxLength": 40,
876291 "minLength": 1,
886282 "pattern": "^[a-zA-Z0-9-_]+$",
896305 "type": "string"
906278 }
91967363 },
92131812 "required": [
9313264 "orgID",
9413282 "folderUID",
9513282 "ruleGroup",
9613282 "title",
9713282 "condition",
9813282 "data",
9913282 "noDataState",
10013282 "execErrState",
10113282 "for"
102131812 ],
10313306 "type": "object"
104955381}
Referenced Components (6)39 of 39 keywords
13380206{
22584110 "properties": {
318715 "datasourceUid": {
418715 "type": "string"
518715 },
6178210 "model": {
7178210 "type": "object"
8178210 },
917405 "queryType": {
1017405 "type": "string"
1117405 },
12181544 "refId": {
13181544 "type": "string"
14181544 },
15180246 "relativeTimeRange": {
17180246 }
182584110 },
19349096 "type": "object"
203380206}
156181{
256671 "properties": {
345710 "active_time_intervals": {
44575 "items": {
59525 "type": "string"
64575 },
74625 "type": "array"
845710 },
944221 "group_by": {
104425 "items": {
1115425 "type": "string"
124425 },
1344716 "type": "array"
1444221 },
154405 "group_interval": {
164405 "type": "string"
174405 },
184489 "group_wait": {
194489 "type": "string"
204489 },
2143412 "mute_time_intervals": {
224346 "items": {
23102214 "type": "string"
244346 },
254406 "type": "array"
2643412 },
276257 "receiver": {
286257 "type": "string"
296257 },
304368 "repeat_interval": {
314368 "type": "string"
324368 }
3356671 },
346325 "required": [
356325 "receiver"
366325 ],
376375 "type": "object"
3856181}
1213035{
2213035 "format": "int64",
3215312 "type": "integer"
4213035}
16425{
26425 "type": "string"
36425}
160238{
260624 "properties": {
361712 "from": {
461712 "type": "string"
561712 },
66225 "metric": {
76225 "type": "string"
86225 },
94557 "target_datasource_uid": {
104557 "type": "string"
114557 }
1260624 },
136269 "required": [
146278 "metric",
156296 "from"
166269 ],
176355 "type": "object"
1860238}
1180246{
2121435 "properties": {
3108319 "from": {
5108319 },
6104716 "to": {
8104716 }
9121435 },
10183711 "type": "object"
11180246}
Responses1 of 3 documented received
codedescriptionhitsavg
200ProvisionedAlertRule0never seen
400ValidationError16183ms
403ForbiddenError0never seen
Undocumented - not in spec
codedescriptionhitsavg
401Unauthorized1611ms
Examples20 / 20 used
Body: application/json
{
"runbook_url": "https://supercoolrunbook.com/page/13"
}ProvisionedAlertRule.annotations
"A"ProvisionedAlertRule.condition
[
{
"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
}
}
]ProvisionedAlertRule.data
"project_x"ProvisionedAlertRule.folderUID
falseProvisionedAlertRule.isPaused
{
"team": "sre-team-1"
}ProvisionedAlertRule.labels
2ProvisionedAlertRule.missingSeriesEvalsToResolve
[
"maintenance"
]AlertRuleNotificationSettings.active_time_intervals
[
"alertname",
"grafana_folder"
]AlertRuleNotificationSettings.group_by
[
"alertname",
"grafana_folder",
"cluster"
]AlertRuleNotificationSettings.group_by
"5m"AlertRuleNotificationSettings.group_interval
"30s"AlertRuleNotificationSettings.group_wait
[
"maintenance"
]AlertRuleNotificationSettings.mute_time_intervals
"grafana-default-email"AlertRuleNotificationSettings.receiver
"4h"AlertRuleNotificationSettings.repeat_interval
"A"Record.from
"grafana_alerts_ratio"Record.metric
"my-prom"Record.target_datasource_uid
"eval_group_1"ProvisionedAlertRule.ruleGroup
"Always firing"ProvisionedAlertRule.title