diff --git a/content/en/api/v1/monitors/examples.json b/content/en/api/v1/monitors/examples.json index 42294263a8e..28f44a52cf3 100644 --- a/content/en/api/v1/monitors/examples.json +++ b/content/en/api/v1/monitors/examples.json @@ -148,7 +148,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { @@ -330,7 +330,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { @@ -505,7 +505,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" } }, "CheckCanDeleteMonitor": { @@ -937,7 +937,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" } }, "DeleteMonitor": { @@ -1144,7 +1144,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { @@ -1334,7 +1334,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { @@ -1514,7 +1514,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" } }, "MuteMonitor": { @@ -1666,7 +1666,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { @@ -1856,7 +1856,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { @@ -2076,7 +2076,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" } }, "MuteAllMonitors": { @@ -2228,7 +2228,7 @@ "tags": [], "type": "query alert" }, - "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for cost queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" + "html": "
\n
\n
\n
\n

assets

\n
\n

[object]

\n

The list of monitor assets tied to a monitor, which represents key links for users to take action on monitor alerts (for example, runbooks).

\n
\n
\n
\n
\n
\n

category [required]

\n
\n

enum

\n

Indicates the type of asset this entity represents on a monitor. \nAllowed enum values: runbook

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name for the monitor asset

\n
\n \n
\n
\n
\n
\n
\n

resource_key

\n
\n

string

\n

Represents the identifier of the internal Datadog resource that this asset represents. IDs in this field should be passed in as strings.

\n
\n \n
\n
\n
\n
\n
\n

resource_type

\n
\n

enum

\n

Type of internal Datadog resource associated with a monitor asset. \nAllowed enum values: notebook

\n
\n \n
\n
\n
\n
\n
\n

url [required]

\n
\n

string

\n

URL link for the asset. For links with an internal resource type set, this should be the relative path to where the Datadog domain is appended internally. For external links, this should be the full URL path.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

created

\n
\n

date-time

\n

Timestamp of the monitor creation.

\n
\n \n
\n
\n
\n
\n
\n

creator

\n
\n

object

\n

Object describing the creator of the shared element.

\n
\n
\n
\n
\n
\n

email

\n
\n

string

\n

Email of the creator.

\n
\n \n
\n
\n
\n
\n
\n

handle

\n
\n

string

\n

Handle of the creator.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the creator.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

deleted

\n
\n

date-time

\n

Whether or not the monitor is deleted. (Always null)

\n
\n \n
\n
\n
\n
\n
\n

draft_status

\n
\n

enum

\n

Indicates whether the monitor is in a draft or published state.

draft: The monitor appears as Draft and does not send notifications.\npublished: The monitor is active and evaluates conditions and notify as configured.

This field is in preview. The draft value is only available to customers with the feature enabled. \nAllowed enum values: draft,published

default: published

\n
\n \n
\n
\n
\n
\n
\n

id

\n
\n

int64

\n

ID of this monitor.

\n
\n \n
\n
\n
\n
\n
\n

matching_downtimes

\n
\n

[object]

\n

A list of active v1 downtimes that match this monitor.

\n
\n
\n
\n
\n
\n

end

\n
\n

int64

\n

POSIX timestamp to end the downtime.

\n
\n \n
\n
\n
\n
\n
\n

id [required]

\n
\n

int64

\n

The downtime ID.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

[string]

\n

The scope(s) to which the downtime applies. Must be in key:value format. For example, host:app2.\nProvide multiple scopes as a comma-separated list like env:dev,env:prod.\nThe resulting downtime applies to sources that matches ALL provided scopes (env:dev AND env:prod).

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

int64

\n

POSIX timestamp to start the downtime.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

message

\n
\n

string

\n

A message to include with notifications for this monitor.

\n
\n \n
\n
\n
\n
\n
\n

modified

\n
\n

date-time

\n

Last timestamp when the monitor was edited.

\n
\n \n
\n
\n
\n
\n
\n

multi

\n
\n

boolean

\n

Whether or not the monitor is broken down on different groups.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The monitor name.

\n
\n \n
\n
\n
\n
\n
\n

options

\n
\n

object

\n

List of options associated with your monitor.

\n
\n
\n
\n
\n
\n

aggregation

\n
\n

object

\n

Type of aggregation performed in the monitor query.

\n
\n
\n
\n
\n
\n

group_by

\n
\n

string

\n

Group to break down the monitor on.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric name used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n

type

\n
\n

string

\n

Metric type used in the monitor.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

device_ids

\n
\n

[string]

\n

DEPRECATED: IDs of the device the Synthetics monitor is running on.

\n
\n \n
\n
\n
\n
\n
\n

enable_logs_sample

\n
\n

boolean

\n

Whether or not to send a log sample when the log monitor triggers.

\n
\n \n
\n
\n
\n
\n
\n

enable_samples

\n
\n

boolean

\n

Whether or not to send a list of samples when the monitor triggers. This is only used by CI Test and Pipeline monitors.

\n
\n \n
\n
\n
\n
\n
\n

escalation_message

\n
\n

string

\n

We recommend using the is_renotify,\nblock in the original message instead.\nA message to include with a re-notification. Supports the @username notification we allow elsewhere.\nNot applicable if renotify_interval is None.

\n
\n \n
\n
\n
\n
\n
\n

evaluation_delay

\n
\n

int64

\n

Time (in seconds) to delay evaluation, as a non-negative integer. For example, if the value is set to 300 (5min),\nthe timeframe is set to last_5m and the time is 7:00, the monitor evaluates data from 6:50 to 6:55.\nThis is useful for AWS CloudWatch and other backfilled metrics to ensure the monitor always has data during evaluation.

\n
\n \n
\n
\n
\n
\n
\n

group_retention_duration

\n
\n

string

\n

The time span after which groups with missing data are dropped from the monitor state.\nThe minimum value is one hour, and the maximum value is 72 hours.\nExample values are: "60m", "1h", and "2d".\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.

\n
\n \n
\n
\n
\n
\n
\n

groupby_simple_monitor

\n
\n

boolean

\n

DEPRECATED: Whether the log alert monitor triggers a single alert or multiple alerts when any group breaches a threshold. Use notify_by instead.

\n
\n \n
\n
\n
\n
\n
\n

include_tags

\n
\n

boolean

\n

A Boolean indicating whether notifications from this monitor automatically inserts its triggering tags into the title.

Examples

\n
    \n
  • If True, [Triggered on {host:h1}] Monitor Title
  • \n
  • If False, [Triggered] Monitor Title
  • \n

default: true

\n
\n \n
\n
\n
\n
\n
\n

locked

\n
\n

boolean

\n

DEPRECATED: Whether or not the monitor is locked (only editable by creator and admins). Use restricted_roles instead.

\n
\n \n
\n
\n
\n
\n
\n

min_failure_duration

\n
\n

int64

\n

How long the test should be in failure before alerting (integer, number of seconds, max 7200).

\n
\n \n
\n
\n
\n
\n
\n

min_location_failed

\n
\n

int64

\n

The minimum number of locations in failure at the same time during\nat least one moment in the min_failure_duration period (min_location_failed and min_failure_duration\nare part of the advanced alerting rules - integer, >= 1).

default: 1

\n
\n \n
\n
\n
\n
\n
\n

new_group_delay

\n
\n

int64

\n

Time (in seconds) to skip evaluations for new groups.

For example, this option can be used to skip evaluations for new hosts while they initialize.

Must be a non negative integer.

\n
\n \n
\n
\n
\n
\n
\n

new_host_delay

\n
\n

int64

\n

DEPRECATED: Time (in seconds) to allow a host to boot and applications\nto fully start before starting the evaluation of monitor results.\nShould be a non negative integer.

Use new_group_delay instead.

default: 300

\n
\n \n
\n
\n
\n
\n
\n

no_data_timeframe

\n
\n

int64

\n

The number of minutes before a monitor notifies after data stops reporting.\nDatadog recommends at least 2x the monitor timeframe for query alerts or 2 minutes for service checks.\nIf omitted, 2x the evaluation timeframe is used for query alerts, and 24 hours is used for service checks.

\n
\n \n
\n
\n
\n
\n
\n

notification_preset_name

\n
\n

enum

\n

Toggles the display of additional content sent in the monitor notification. \nAllowed enum values: show_all,hide_query,hide_handles,hide_all,hide_query_and_handles,show_only_snapshot,hide_handles_and_footer

default: show_all

\n
\n \n
\n
\n
\n
\n
\n

notify_audit

\n
\n

boolean

\n

A Boolean indicating whether tagged users is notified on changes to this monitor.

\n
\n \n
\n
\n
\n
\n
\n

notify_by

\n
\n

[string]

\n

Controls what granularity a monitor alerts on. Only available for monitors with groupings.\nFor instance, a monitor grouped by cluster, namespace, and pod can be configured to only notify on each\nnew cluster violating the alert conditions by setting notify_by to ["cluster"]. Tags mentioned\nin notify_by must be a subset of the grouping tags in the query.\nFor example, a query grouped by cluster and namespace cannot notify on region.\nSetting notify_by to ["*"] configures the monitor to notify as a simple-alert.

\n
\n \n
\n
\n
\n
\n
\n

notify_no_data

\n
\n

boolean

\n

A Boolean indicating whether this monitor notifies when data stops reporting. Defaults to false.

\n
\n \n
\n
\n
\n
\n
\n

on_missing_data

\n
\n

enum

\n

Controls how groups or monitors are treated if an evaluation does not return any data points.\nThe default option results in different behavior depending on the monitor query type.\nFor monitors using Count queries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions.\nFor monitors using any query type other than Count, for example Gauge, Measure, or Rate, the monitor shows the last known status.\nThis option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. \nAllowed enum values: default,show_no_data,show_and_notify_no_data,resolve

\n
\n \n
\n
\n
\n
\n
\n

renotify_interval

\n
\n

int64

\n

The number of minutes after the last notification before a monitor re-notifies on the current status.\nIt only re-notifies if it’s not resolved.

\n
\n \n
\n
\n
\n
\n
\n

renotify_occurrences

\n
\n

int64

\n

The number of times re-notification messages should be sent on the current status at the provided re-notification interval.

\n
\n \n
\n
\n
\n
\n
\n

renotify_statuses

\n
\n

[string]

\n

The types of monitor statuses for which re-notification messages are sent.\nDefault: null if renotify_interval is null.\nIf renotify_interval is set, defaults to renotify on Alert and No Data.

\n
\n \n
\n
\n
\n
\n
\n

require_full_window

\n
\n

boolean

\n

A Boolean indicating whether this monitor needs a full window of data before it’s evaluated.\nWe highly recommend you set this to false for sparse metrics,\notherwise some evaluations are skipped. Default is false. This setting only applies to\nmetric monitors.

\n
\n \n
\n
\n
\n
\n
\n

scheduling_options

\n
\n

object

\n

Configuration options for scheduling.

\n
\n
\n
\n
\n
\n

custom_schedule

\n
\n

object

\n

Configuration options for the custom schedule. This feature is in private beta.

\n
\n
\n
\n
\n
\n

recurrences

\n
\n

[object]

\n

Array of custom schedule recurrences.

\n
\n
\n
\n
\n
\n

rrule

\n
\n

string

\n

Defines the recurrence rule (RRULE) for a given schedule.

\n
\n \n
\n
\n
\n
\n
\n

start

\n
\n

string

\n

Defines the start date and time of the recurring schedule.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

Defines the timezone the schedule runs on.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

evaluation_window

\n
\n

object

\n

Configuration options for the evaluation window. If hour_starts is set, no other fields may be set. Otherwise, day_starts and month_starts must be set together.

\n
\n
\n
\n
\n
\n

day_starts

\n
\n

string

\n

The time of the day at which a one day cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

hour_starts

\n
\n

int32

\n

The minute of the hour at which a one hour cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

month_starts

\n
\n

int32

\n

The day of the month at which a one month cumulative evaluation window starts.

\n
\n \n
\n
\n
\n
\n
\n

timezone

\n
\n

string

\n

The timezone of the time of the day of the cumulative evaluation window start.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

silenced

\n
\n

object

\n

DEPRECATED: Information about the downtime applied to the monitor. Only shows v1 downtimes.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

int64

\n

UTC epoch timestamp in seconds when the downtime for the group expires.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

synthetics_check_id

\n
\n

string

\n

DEPRECATED: ID of the corresponding Synthetic check.

\n
\n \n
\n
\n
\n
\n
\n

threshold_windows

\n
\n

object

\n

Alerting time window options.

\n
\n
\n
\n
\n
\n

recovery_window

\n
\n

string

\n

Describes how long an anomalous metric must be normal before the alert recovers.

\n
\n \n
\n
\n
\n
\n
\n

trigger_window

\n
\n

string

\n

Describes how long a metric must be anomalous before an alert triggers.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

thresholds

\n
\n

object

\n

List of the different monitor threshold available.

\n
\n
\n
\n
\n
\n

critical

\n
\n

double

\n

The monitor CRITICAL threshold.

\n
\n \n
\n
\n
\n
\n
\n

critical_recovery

\n
\n

double

\n

The monitor CRITICAL recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n

ok

\n
\n

double

\n

The monitor OK threshold.

\n
\n \n
\n
\n
\n
\n
\n

unknown

\n
\n

double

\n

The monitor UNKNOWN threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning

\n
\n

double

\n

The monitor WARNING threshold.

\n
\n \n
\n
\n
\n
\n
\n

warning_recovery

\n
\n

double

\n

The monitor WARNING recovery threshold.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

timeout_h

\n
\n

int64

\n

The number of hours of the monitor not reporting data before it automatically resolves from a triggered state. The minimum allowed value is 0 hours. The maximum allowed value is 24 hours.

\n
\n \n
\n
\n
\n
\n
\n

variables

\n
\n

[ <oneOf>]

\n

List of requests that can be used in the monitor query. This feature is currently in beta.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions cost query.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregation methods for metric queries. \nAllowed enum values: avg,sum,max,min,last,area,l2norm,percentile,stddev

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 3

\n
\n

object

\n

A formula and functions data quality query.

\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for data quality queries. \nAllowed enum values: data_quality_metrics

\n
\n \n
\n
\n
\n
\n
\n

filter [required]

\n
\n

string

\n

Filter expression used to match on data entities. Uses Aastra query syntax.

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[string]

\n

Optional grouping fields for aggregation.

\n
\n \n
\n
\n
\n
\n
\n

measure [required]

\n
\n

string

\n

The data quality measure to query. Common values include:\nbytes, cardinality, custom, freshness, max, mean, min,\nnullness, percent_negative, percent_zero, row_count, stddev,\nsum, uniqueness. Additional values may be supported.

\n
\n \n
\n
\n
\n
\n
\n

monitor_options

\n
\n

object

\n

Monitor configuration options for data quality queries.

\n
\n
\n
\n
\n
\n

crontab_override

\n
\n

string

\n

Crontab expression to override the default schedule.

\n
\n \n
\n
\n
\n
\n
\n

custom_sql

\n
\n

string

\n

Custom SQL query for the monitor.

\n
\n \n
\n
\n
\n
\n
\n

custom_where

\n
\n

string

\n

Custom WHERE clause for the query.

\n
\n \n
\n
\n
\n
\n
\n

group_by_columns

\n
\n

[string]

\n

Columns to group results by.

\n
\n \n
\n
\n
\n
\n
\n

model_type_override

\n
\n

enum

\n

Override for the model type used in anomaly detection. \nAllowed enum values: freshness,percentage,any

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

schema_version

\n
\n

string

\n

Schema version for the data quality query.

\n
\n \n
\n
\n
\n
\n
\n

scope

\n
\n

string

\n

Optional scoping expression to further filter metrics. Uses metrics filter syntax.\nThis is useful when an entity has been configured to emit metrics with additional tags.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 4

\n
\n

object

\n

A formula and functions aggregate augmented query. Used to enrich base query results with data from a reference table.

\n
\n
\n
\n
\n
\n

augment_query [required]

\n
\n

 <oneOf>

\n

Augment query for aggregate augmented queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate augmented queries. \nAllowed enum values: aggregate_augmented_query

\n
\n \n
\n
\n
\n
\n
\n

group_by [required]

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

join_condition [required]

\n
\n

object

\n

Join condition for aggregate augmented queries.

\n
\n
\n
\n
\n
\n

augment_attribute [required]

\n
\n

string

\n

Attribute from the augment query to join on.

\n
\n \n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to join on.

\n
\n \n
\n
\n
\n
\n
\n

join_type [required]

\n
\n

enum

\n

Join type for aggregate query join conditions. \nAllowed enum values: inner,left

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

Option 5

\n
\n

object

\n

A formula and functions aggregate filtered query. Used to filter base query results using data from another source.

\n
\n
\n
\n
\n
\n

base_query [required]

\n
\n

 <oneOf>

\n

Base query for aggregate queries. Can be an events query or a metrics query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A formula and functions metrics query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

aggregator

\n
\n

enum

\n

Aggregator for metrics queries. \nAllowed enum values: avg,min,max,sum,last,mean,area,l2norm,percentile,stddev

Show 1 more,count_unique

\n
\n \n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for metrics queries. \nAllowed enum values: metrics,cloud_cost,datadog_usage

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The metrics query definition.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

compute

\n
\n

[object]

\n

Compute options for the query.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for aggregate filtered queries. \nAllowed enum values: aggregate_filtered_query

\n
\n \n
\n
\n
\n
\n
\n

filter_query [required]

\n
\n

 <oneOf>

\n

Filter query for aggregate filtered queries. Can be an events query or a reference table query.

\n
\n
\n
\n
\n
\n

Option 1

\n
\n

object

\n

A formula and functions events query.

\n
\n
\n
\n
\n
\n

compute [required]

\n
\n

object

\n

Compute options.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

interval

\n
\n

int64

\n

A time interval in milliseconds.

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Measurable attribute to compute.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name assigned to this aggregation, when multiple aggregations are defined for a query.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for event platform-based queries. \nAllowed enum values: rum,ci_pipelines,ci_tests,audit,events,logs,spans,database_queries,network,network_path

\n
\n \n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

indexes

\n
\n

[string]

\n

An array of index names to query in the stream. Omit or use [] to query all indexes at once.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n

search

\n
\n

object

\n

Search options.

\n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

Events search string.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

Option 2

\n
\n

object

\n

A reference table query for use in aggregate queries.

\n
\n
\n
\n
\n
\n

columns

\n
\n

[object]

\n

List of columns to retrieve from the reference table.

\n
\n
\n
\n
\n
\n

alias

\n
\n

string

\n

Optional alias for the column.

\n
\n \n
\n
\n
\n
\n
\n

name [required]

\n
\n

string

\n

Name of the column.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

data_source [required]

\n
\n

enum

\n

Data source for reference table queries. \nAllowed enum values: reference_table

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query.

\n
\n \n
\n
\n
\n
\n
\n

query_filter

\n
\n

string

\n

Optional filter expression for the reference table query.

\n
\n \n
\n
\n
\n
\n
\n

table_name [required]

\n
\n

string

\n

Name of the reference table.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

filters [required]

\n
\n

[object]

\n

Filter conditions for the query.

\n
\n
\n
\n
\n
\n

base_attribute [required]

\n
\n

string

\n

Attribute from the base query to filter on.

\n
\n \n
\n
\n
\n
\n
\n

exclude

\n
\n

boolean

\n

Whether to exclude matching records instead of including them.

\n
\n \n
\n
\n
\n
\n
\n

filter_attribute [required]

\n
\n

string

\n

Attribute from the filter query to match against.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n

group_by

\n
\n

[object]

\n

Group by options for the query.

\n
\n
\n
\n
\n
\n

facet [required]

\n
\n

string

\n

Event facet.

\n
\n \n
\n
\n
\n
\n
\n

limit

\n
\n

int64

\n

Number of groups to return.

\n
\n \n
\n
\n
\n
\n
\n

sort

\n
\n

object

\n

Options for sorting group by results.

\n
\n
\n
\n
\n
\n

aggregation [required]

\n
\n

enum

\n

Aggregation methods for event platform queries. \nAllowed enum values: count,cardinality,median,pc75,pc90,pc95,pc98,pc99,sum,min

Show 2 more,max,avg

\n
\n \n
\n
\n
\n
\n
\n

metric

\n
\n

string

\n

Metric used for sorting group by results.

\n
\n \n
\n
\n
\n
\n
\n

order

\n
\n

enum

\n

Direction of sort. \nAllowed enum values: asc,desc

default: desc

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

Name of the query for use in formulas.

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

overall_state

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n

priority

\n
\n

int64

\n

Integer from 1 (high) to 5 (low) indicating alert severity.

\n
\n \n
\n
\n
\n
\n
\n

query [required]

\n
\n

string

\n

The monitor query.

\n
\n \n
\n
\n
\n
\n
\n

restricted_roles

\n
\n

[string]

\n

A list of unique role identifiers to define which roles are allowed to edit the monitor. The unique identifiers for all roles can be pulled from the Roles API and are located in the data.id field. Editing a monitor includes any updates to the monitor configuration, monitor deletion, and muting of the monitor for any amount of time. You can use the Restriction Policies API to manage write authorization for individual monitors by teams and users, in addition to roles.

\n
\n \n
\n
\n
\n
\n
\n

state

\n
\n

object

\n

Wrapper object with the different monitor states.

\n
\n
\n
\n
\n
\n

groups

\n
\n

object

\n

Dictionary where the keys are groups (comma separated lists of tags) and the values are\nthe list of groups your monitor is broken down on.

\n
\n
\n
\n
\n
\n

<any-key>

\n
\n

object

\n

Monitor state for a single group.

\n
\n
\n
\n
\n
\n

last_nodata_ts

\n
\n

int64

\n

Latest timestamp the monitor was in NO_DATA state.

\n
\n \n
\n
\n
\n
\n
\n

last_notified_ts

\n
\n

int64

\n

Latest timestamp of the notification sent for this monitor group.

\n
\n \n
\n
\n
\n
\n
\n

last_resolved_ts

\n
\n

int64

\n

Latest timestamp the monitor group was resolved.

\n
\n \n
\n
\n
\n
\n
\n

last_triggered_ts

\n
\n

int64

\n

Latest timestamp the monitor group triggered.

\n
\n \n
\n
\n
\n
\n
\n

name

\n
\n

string

\n

The name of the monitor.

\n
\n \n
\n
\n
\n
\n
\n

status

\n
\n

enum

\n

The different states your monitor can be in. \nAllowed enum values: Alert,Ignored,No Data,OK,Skipped,Unknown,Warn

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n

tags

\n
\n

[string]

\n

Tags associated to your monitor.

\n
\n \n
\n
\n
\n
\n
\n

type [required]

\n
\n

enum

\n

The type of the monitor. For more information about type, see the monitor options docs. \nAllowed enum values: composite,event alert,log alert,metric alert,process alert,query alert,rum alert,service check,synthetics alert,trace-analytics alert

Show 11 more,slo alert,event-v2 alert,audit alert,ci-pipelines alert,ci-tests alert,error-tracking alert,database-monitoring alert,network-performance alert,cost alert,data-quality alert,network-path alert

\n
\n \n
\n
" }, "400": { "json": { diff --git a/data/api/v1/full_spec.yaml b/data/api/v1/full_spec.yaml index 5af99828fa2..ba22e7533e9 100644 --- a/data/api/v1/full_spec.yaml +++ b/data/api/v1/full_spec.yaml @@ -8131,25 +8131,13 @@ components: - L2NORM - PERCENTILE - STDDEV - MonitorFormulaAndFunctionCostDataSource: - description: Data source for cost queries. - enum: - - metrics - - cloud_cost - - datadog_usage - example: cloud_cost - type: string - x-enum-varnames: - - METRICS - - CLOUD_COST - - DATADOG_USAGE MonitorFormulaAndFunctionCostQueryDefinition: description: A formula and functions cost query. properties: aggregator: $ref: '#/components/schemas/MonitorFormulaAndFunctionCostAggregator' data_source: - $ref: '#/components/schemas/MonitorFormulaAndFunctionCostDataSource' + $ref: '#/components/schemas/MonitorFormulaAndFunctionMetricsDataSource' name: description: Name of the query for use in formulas. example: query1