@@ -190,6 +190,26 @@ List all alert rules in the Grafana instance
190190| Parameter | Type | Description |
191191| --------- | ---- | ----------- |
192192| ` rules ` | array | List of alert rules |
193+ | ↳ ` id ` | number | Alert rule numeric ID |
194+ | ↳ ` uid ` | string | Alert rule UID |
195+ | ↳ ` title ` | string | Alert rule title |
196+ | ↳ ` condition ` | string | RefId of the query used as the alert condition |
197+ | ↳ ` data ` | json | Alert rule query/expression data array |
198+ | ↳ ` updated ` | string | Last update timestamp |
199+ | ↳ ` noDataState ` | string | State when no data is returned |
200+ | ↳ ` execErrState ` | string | State on execution error |
201+ | ↳ ` for ` | string | Duration the condition must hold before firing |
202+ | ↳ ` keepFiringFor ` | string | Duration to keep firing after condition stops |
203+ | ↳ ` missingSeriesEvalsToResolve ` | number | Number of missing series evaluations before resolving |
204+ | ↳ ` annotations ` | json | Alert annotations |
205+ | ↳ ` labels ` | json | Alert labels |
206+ | ↳ ` isPaused ` | boolean | Whether the rule is paused |
207+ | ↳ ` folderUID ` | string | Parent folder UID |
208+ | ↳ ` ruleGroup ` | string | Rule group name |
209+ | ↳ ` orgID ` | number | Organization ID |
210+ | ↳ ` provenance ` | string | Provisioning source \( empty if API-managed\) |
211+ | ↳ ` notification_settings ` | json | Per-rule notification settings \( overrides\) |
212+ | ↳ ` record ` | json | Recording rule configuration \( recording rules only\) |
193213
194214### ` grafana_get_alert_rule `
195215
@@ -208,35 +228,26 @@ Get a specific alert rule by its UID
208228
209229| Parameter | Type | Description |
210230| --------- | ---- | ----------- |
211- | ` version ` | string | Grafana version |
212- | ` database ` | string | Database health status |
213- | ` status ` | string | Health status |
214- | ` dashboard ` | json | Dashboard JSON |
215- | ` meta ` | json | Dashboard metadata |
216- | ` dashboards ` | json | List of dashboards |
217- | ` uid ` | string | Created/updated UID |
218- | ` url ` | string | Dashboard URL |
219- | ` rules ` | json | Alert rules list |
220- | ` contactPoints ` | json | Contact points list |
221- | ` condition ` | string | Alert condition refId |
231+ | ` id ` | number | Alert rule numeric ID |
232+ | ` uid ` | string | Alert rule UID |
233+ | ` title ` | string | Alert rule title |
234+ | ` condition ` | string | RefId of the query used as the alert condition |
235+ | ` data ` | json | Alert rule query/expression data array |
236+ | ` updated ` | string | Last update timestamp |
237+ | ` noDataState ` | string | State when no data is returned |
238+ | ` execErrState ` | string | State on execution error |
222239| ` for ` | string | Duration the condition must hold before firing |
223- | ` keepFiringFor ` | string | Duration to keep firing after the condition stops |
224- | ` missingSeriesEvalsToResolve ` | number | Missing series evaluations before resolving |
225- | ` isPaused ` | boolean | Whether the alert rule is paused |
240+ | ` keepFiringFor ` | string | Duration to keep firing after condition stops |
241+ | ` missingSeriesEvalsToResolve ` | number | Number of missing series evaluations before resolving |
242+ | ` annotations ` | json | Alert annotations |
243+ | ` labels ` | json | Alert labels |
244+ | ` isPaused ` | boolean | Whether the rule is paused |
226245| ` folderUID ` | string | Parent folder UID |
227246| ` ruleGroup ` | string | Rule group name |
228247| ` orgID ` | number | Organization ID |
229- | ` provenance ` | string | Provisioning source |
230- | ` noDataState ` | string | State on no data |
231- | ` execErrState ` | string | State on execution error |
232- | ` notification_settings ` | json | Per-rule notification settings |
233- | ` record ` | json | Recording rule configuration |
234- | ` updated ` | string | Last update timestamp |
235- | ` annotations ` | json | Annotations list |
236- | ` id ` | number | Annotation ID |
237- | ` dataSources ` | json | Data sources list |
238- | ` folders ` | json | Folders list |
239- | ` message ` | string | Status message |
248+ | ` provenance ` | string | Provisioning source \( empty if API-managed\) |
249+ | ` notification_settings ` | json | Per-rule notification settings \( overrides\) |
250+ | ` record ` | json | Recording rule configuration \( recording rules only\) |
240251
241252### ` grafana_create_alert_rule `
242253
@@ -271,35 +282,26 @@ Create a new alert rule
271282
272283| Parameter | Type | Description |
273284| --------- | ---- | ----------- |
274- | ` version ` | string | Grafana version |
275- | ` database ` | string | Database health status |
276- | ` status ` | string | Health status |
277- | ` dashboard ` | json | Dashboard JSON |
278- | ` meta ` | json | Dashboard metadata |
279- | ` dashboards ` | json | List of dashboards |
280- | ` uid ` | string | Created/updated UID |
281- | ` url ` | string | Dashboard URL |
282- | ` rules ` | json | Alert rules list |
283- | ` contactPoints ` | json | Contact points list |
284- | ` condition ` | string | Alert condition refId |
285+ | ` id ` | number | Alert rule numeric ID |
286+ | ` uid ` | string | Alert rule UID |
287+ | ` title ` | string | Alert rule title |
288+ | ` condition ` | string | RefId of the query used as the alert condition |
289+ | ` data ` | json | Alert rule query/expression data array |
290+ | ` updated ` | string | Last update timestamp |
291+ | ` noDataState ` | string | State when no data is returned |
292+ | ` execErrState ` | string | State on execution error |
285293| ` for ` | string | Duration the condition must hold before firing |
286- | ` keepFiringFor ` | string | Duration to keep firing after the condition stops |
287- | ` missingSeriesEvalsToResolve ` | number | Missing series evaluations before resolving |
288- | ` isPaused ` | boolean | Whether the alert rule is paused |
294+ | ` keepFiringFor ` | string | Duration to keep firing after condition stops |
295+ | ` missingSeriesEvalsToResolve ` | number | Number of missing series evaluations before resolving |
296+ | ` annotations ` | json | Alert annotations |
297+ | ` labels ` | json | Alert labels |
298+ | ` isPaused ` | boolean | Whether the rule is paused |
289299| ` folderUID ` | string | Parent folder UID |
290300| ` ruleGroup ` | string | Rule group name |
291301| ` orgID ` | number | Organization ID |
292- | ` provenance ` | string | Provisioning source |
293- | ` noDataState ` | string | State on no data |
294- | ` execErrState ` | string | State on execution error |
295- | ` notification_settings ` | json | Per-rule notification settings |
296- | ` record ` | json | Recording rule configuration |
297- | ` updated ` | string | Last update timestamp |
298- | ` annotations ` | json | Annotations list |
299- | ` id ` | number | Annotation ID |
300- | ` dataSources ` | json | Data sources list |
301- | ` folders ` | json | Folders list |
302- | ` message ` | string | Status message |
302+ | ` provenance ` | string | Provisioning source \( empty if API-managed\) |
303+ | ` notification_settings ` | json | Per-rule notification settings \( overrides\) |
304+ | ` record ` | json | Recording rule configuration \( recording rules only\) |
303305
304306### ` grafana_update_alert_rule `
305307
@@ -320,7 +322,7 @@ Update an existing alert rule. Fetches the current rule and merges your changes.
320322| ` data ` | string | No | New JSON array of query/expression data objects |
321323| ` forDuration ` | string | No | Duration to wait before firing \( e.g., 5m, 1h\) |
322324| ` noDataState ` | string | No | State when no data is returned \( NoData, Alerting, OK\) |
323- | ` execErrState ` | string | No | State on execution error \( Alerting, OK\) |
325+ | ` execErrState ` | string | No | State on execution error \( Error, Alerting, OK\) |
324326| ` annotations ` | string | No | JSON object of annotations |
325327| ` labels ` | string | No | JSON object of labels |
326328| ` isPaused ` | boolean | No | Whether the rule is paused |
@@ -334,35 +336,26 @@ Update an existing alert rule. Fetches the current rule and merges your changes.
334336
335337| Parameter | Type | Description |
336338| --------- | ---- | ----------- |
337- | ` version ` | string | Grafana version |
338- | ` database ` | string | Database health status |
339- | ` status ` | string | Health status |
340- | ` dashboard ` | json | Dashboard JSON |
341- | ` meta ` | json | Dashboard metadata |
342- | ` dashboards ` | json | List of dashboards |
343- | ` uid ` | string | Created/updated UID |
344- | ` url ` | string | Dashboard URL |
345- | ` rules ` | json | Alert rules list |
346- | ` contactPoints ` | json | Contact points list |
347- | ` condition ` | string | Alert condition refId |
339+ | ` id ` | number | Alert rule numeric ID |
340+ | ` uid ` | string | Alert rule UID |
341+ | ` title ` | string | Alert rule title |
342+ | ` condition ` | string | RefId of the query used as the alert condition |
343+ | ` data ` | json | Alert rule query/expression data array |
344+ | ` updated ` | string | Last update timestamp |
345+ | ` noDataState ` | string | State when no data is returned |
346+ | ` execErrState ` | string | State on execution error |
348347| ` for ` | string | Duration the condition must hold before firing |
349- | ` keepFiringFor ` | string | Duration to keep firing after the condition stops |
350- | ` missingSeriesEvalsToResolve ` | number | Missing series evaluations before resolving |
351- | ` isPaused ` | boolean | Whether the alert rule is paused |
348+ | ` keepFiringFor ` | string | Duration to keep firing after condition stops |
349+ | ` missingSeriesEvalsToResolve ` | number | Number of missing series evaluations before resolving |
350+ | ` annotations ` | json | Alert annotations |
351+ | ` labels ` | json | Alert labels |
352+ | ` isPaused ` | boolean | Whether the rule is paused |
352353| ` folderUID ` | string | Parent folder UID |
353354| ` ruleGroup ` | string | Rule group name |
354355| ` orgID ` | number | Organization ID |
355- | ` provenance ` | string | Provisioning source |
356- | ` noDataState ` | string | State on no data |
357- | ` execErrState ` | string | State on execution error |
358- | ` notification_settings ` | json | Per-rule notification settings |
359- | ` record ` | json | Recording rule configuration |
360- | ` updated ` | string | Last update timestamp |
361- | ` annotations ` | json | Annotations list |
362- | ` id ` | number | Annotation ID |
363- | ` dataSources ` | json | Data sources list |
364- | ` folders ` | json | Folders list |
365- | ` message ` | string | Status message |
356+ | ` provenance ` | string | Provisioning source \( empty if API-managed\) |
357+ | ` notification_settings ` | json | Per-rule notification settings \( overrides\) |
358+ | ` record ` | json | Recording rule configuration \( recording rules only\) |
366359
367360### ` grafana_delete_alert_rule `
368361
0 commit comments