Skip to main content

monitor_group_search_results

Creates, updates, deletes, gets or lists a monitor_group_search_results resource.

Overview

Namemonitor_group_search_results
TypeResource
Iddatadog.monitoring.monitor_group_search_results

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
monitor_idinteger (int64)The ID of the monitor.
monitor_namestringThe name of the monitor.
groupstringThe name of the group.
group_tagsarrayThe list of tags of the monitor group.
last_nodata_tsinteger (int64)Latest timestamp the monitor group was in NO_DATA state.
last_triggered_tsinteger (int64)Latest timestamp the monitor group triggered.
statusstringThe different states your monitor can be in. (Alert, Ignored, No Data, OK, Skipped, Unknown, Warn)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
search_monitor_groupsselectquery, page, per_page, sortSearch 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.

NameDatatypeDescription
sitestringThe 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.
pageinteger (int64)Page to start paginating from.
per_pageinteger (int64)Number of monitors to return per page.
querystringAfter 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
sortstringString 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 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 }}'
;