Path Parameters1 of 1 keywords covered
UID1 / 1
#validinvalidschema
1452n/a{
2452n/a "type": "string"
3452n/a}
Headers1 of 1 keywords covered
X-Disable-Provenance1 / 1
1372n/a{
2372n/a "type": "string"
3372n/a}
Body72 of 72 keywords covered
application/json72 / 72
ProvisionedAlertRule
1158254{
2167240 "properties": {
334810 "annotations": {
43445 "additionalProperties": {
53605 "type": "string"
63445 },
73535 "type": "object"
834810 },
94015 "condition": {
104015 "type": "string"
114015 },
1235452 "data": {
1335447 "items": {
1535447 },
164015 "type": "array"
1735452 },
184006 "execErrState": {
194006 "enum": [
20363n/a "OK",
2114n/a "Alerting",
2223n/a "Error"
234006 ],
244015 "type": "string"
254006 },
264015 "folderUID": {
274015 "type": "string"
284015 },
294006 "for": {
304001 "format": "duration",
314015 "type": "string"
324006 },
333438 "id": {
343438 "format": "int64",
353456 "type": "integer"
363438 },
373395 "isPaused": {
383395 "type": "boolean"
393395 },
403446 "keep_firing_for": {
413441 "format": "duration",
423455 "type": "string"
433446 },
4433210 "labels": {
453235 "additionalProperties": {
463335 "type": "string"
473235 },
483375 "type": "object"
4933210 },
503348 "missingSeriesEvalsToResolve": {
513348 "format": "int64",
523366 "type": "integer"
533348 },
544006 "noDataState": {
554006 "enum": [
56347n/a "Alerting",
578n/a "NoData",
5845n/a "OK"
594006 ],
604015 "type": "string"
614006 },
6228456 "notification_settings": {
6428456 },
653988 "orgID": {
663988 "format": "int64",
674006 "type": "integer"
683988 },
693365 "provenance": {
713365 },
7231822 "record": {
7431822 },
753997 "ruleGroup": {
764001 "maxLength": 190,
774001 "minLength": 1,
784015 "type": "string"
793997 },
803997 "title": {
814001 "maxLength": 190,
824001 "minLength": 1,
834015 "type": "string"
843997 },
853288 "uid": {
863301 "maxLength": 40,
873301 "minLength": 1,
883292 "pattern": "^[a-zA-Z0-9-_]+$",
893315 "type": "string"
903288 }
91167240 },
923989 "required": [
934061 "orgID",
944061 "folderUID",
954061 "ruleGroup",
964061 "title",
974061 "condition",
984061 "data",
994061 "noDataState",
1004061 "execErrState",
1014061 "for"
1023989 ],
1034075 "type": "object"
104158254}
Referenced Components (6)39 of 39 keywords
162947{
254142 "properties": {
35035 "datasourceUid": {
45035 "type": "string"
55035 },
65175 "model": {
75175 "type": "object"
85175 },
95155 "queryType": {
105155 "type": "string"
115155 },
124765 "refId": {
134765 "type": "string"
144765 },
1548322 "relativeTimeRange": {
1748322 }
1854142 },
196715 "type": "object"
2062947}
128456{
228550 "properties": {
331210 "active_time_intervals": {
43125 "items": {
53175 "type": "string"
63125 },
73175 "type": "array"
831210 },
931510 "group_by": {
103155 "items": {
119795 "type": "string"
123155 },
133205 "type": "array"
1431510 },
153195 "group_interval": {
163195 "type": "string"
173195 },
183195 "group_wait": {
193195 "type": "string"
203195 },
2131210 "mute_time_intervals": {
223125 "items": {
233295 "type": "string"
243125 },
253175 "type": "array"
2631210 },
273295 "receiver": {
283295 "type": "string"
293295 },
303175 "repeat_interval": {
313175 "type": "string"
323175 }
3328550 },
343341 "required": [
353341 "receiver"
363341 ],
373355 "type": "object"
3828456}
178417{
278417 "format": "int64",
378912 "type": "integer"
478417}
13365{
23365 "type": "string"
33365}
131822{
232015 "properties": {
33295 "from": {
43295 "type": "string"
53295 },
63295 "metric": {
73295 "type": "string"
83295 },
93265 "target_datasource_uid": {
103265 "type": "string"
113265 }
1232015 },
133332 "required": [
143341 "metric",
153341 "from"
163332 ],
173355 "type": "object"
1831822}
148322{
239817 "properties": {
33898 "from": {
53898 },
63959 "to": {
83959 }
939817 },
105005 "type": "object"
1148322}
Responses1 of 3 documented received
codedescriptionhitsavg
200ProvisionedAlertRule0never seen
400ValidationError4333ms
403ForbiddenError0never seen
Undocumented - not in spec
codedescriptionhitsavg
401Unauthorized191ms
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