monitor_group_search_results
Creates, updates, deletes, gets or lists a monitor_group_search_results resource.
Overview
| Name | monitor_group_search_results |
| Type | Resource |
| Id | datadog.monitoring.monitor_group_search_results |
Fields
The following fields are returned by SELECT queries:
- search_monitor_groups
| Name | Datatype | Description |
|---|---|---|
monitor_id | integer (int64) | The ID of the monitor. |
monitor_name | string | The name of the monitor. |
group | string | The name of the group. |
group_tags | array | The list of tags of the monitor group. |
last_nodata_ts | integer (int64) | Latest timestamp the monitor group was in NO_DATA state. |
last_triggered_ts | integer (int64) | Latest timestamp the monitor group triggered. |
status | string | The different states your monitor can be in. (Alert, Ignored, No Data, OK, Skipped, Unknown, Warn) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
search_monitor_groups | select | query, page, per_page, sort | Search and filter your monitor groups details. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
site | string | The Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both. |
page | integer (int64) | Page to start paginating from. |
per_page | integer (int64) | Number of monitors to return per page. |
query | string | After entering a search query on the [Triggered Monitors page][1], use the query parameter value in the URL of the page as a value for this parameter. For more information, see the [Manage Monitors documentation][2]. The query can contain any number of space-separated monitor attributes, for instance: query="type:metric group_status:alert". [1]: https://app.datadoghq.com/monitors/triggered [2]: /monitors/manage/#triggered-monitors |
sort | string | String for sort order, composed of field and sort order separate by a comma, for example name,asc. Supported sort directions: asc, desc. Supported fields: * name * status * tags |
SELECT examples
- search_monitor_groups
Search and filter your monitor groups details.
SELECT
monitor_id,
monitor_name,
group,
group_tags,
last_nodata_ts,
last_triggered_ts,
status
FROM datadog.monitoring.monitor_group_search_results
WHERE query = '{{ query }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND sort = '{{ sort }}'
;