Datadog v4.47.0 published on Thursday, Mar 20, 2025 by Pulumi
datadog.getMonitor
Explore with Pulumi AI
Use this data source to retrieve information about an existing monitor for use in other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";
const test = datadog.getMonitor({
    nameFilter: "My awesome monitor",
    monitorTagsFilters: ["foo:bar"],
});
import pulumi
import pulumi_datadog as datadog
test = datadog.get_monitor(name_filter="My awesome monitor",
    monitor_tags_filters=["foo:bar"])
package main
import (
	"github.com/pulumi/pulumi-datadog/sdk/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datadog.LookupMonitor(ctx, &datadog.LookupMonitorArgs{
			NameFilter: pulumi.StringRef("My awesome monitor"),
			MonitorTagsFilters: []string{
				"foo:bar",
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Datadog = Pulumi.Datadog;
return await Deployment.RunAsync(() => 
{
    var test = Datadog.GetMonitor.Invoke(new()
    {
        NameFilter = "My awesome monitor",
        MonitorTagsFilters = new[]
        {
            "foo:bar",
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.datadog.DatadogFunctions;
import com.pulumi.datadog.inputs.GetMonitorArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var test = DatadogFunctions.getMonitor(GetMonitorArgs.builder()
            .nameFilter("My awesome monitor")
            .monitorTagsFilters("foo:bar")
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: datadog:getMonitor
      arguments:
        nameFilter: My awesome monitor
        monitorTagsFilters:
          - foo:bar
Using getMonitor
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getMonitor(args: GetMonitorArgs, opts?: InvokeOptions): Promise<GetMonitorResult>
function getMonitorOutput(args: GetMonitorOutputArgs, opts?: InvokeOptions): Output<GetMonitorResult>def get_monitor(monitor_tags_filters: Optional[Sequence[str]] = None,
                name_filter: Optional[str] = None,
                tags_filters: Optional[Sequence[str]] = None,
                opts: Optional[InvokeOptions] = None) -> GetMonitorResult
def get_monitor_output(monitor_tags_filters: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                name_filter: Optional[pulumi.Input[str]] = None,
                tags_filters: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetMonitorResult]func LookupMonitor(ctx *Context, args *LookupMonitorArgs, opts ...InvokeOption) (*LookupMonitorResult, error)
func LookupMonitorOutput(ctx *Context, args *LookupMonitorOutputArgs, opts ...InvokeOption) LookupMonitorResultOutput> Note: This function is named LookupMonitor in the Go SDK.
public static class GetMonitor 
{
    public static Task<GetMonitorResult> InvokeAsync(GetMonitorArgs args, InvokeOptions? opts = null)
    public static Output<GetMonitorResult> Invoke(GetMonitorInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
public static Output<GetMonitorResult> getMonitor(GetMonitorArgs args, InvokeOptions options)
fn::invoke:
  function: datadog:index/getMonitor:getMonitor
  arguments:
    # arguments dictionaryThe following arguments are supported:
- List<string>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- NameFilter string
- A monitor name to limit the search.
- List<string>
- A list of tags to limit the search. This filters on the monitor scope.
- []string
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- NameFilter string
- A monitor name to limit the search.
- []string
- A list of tags to limit the search. This filters on the monitor scope.
- List<String>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- nameFilter String
- A monitor name to limit the search.
- List<String>
- A list of tags to limit the search. This filters on the monitor scope.
- string[]
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- nameFilter string
- A monitor name to limit the search.
- string[]
- A list of tags to limit the search. This filters on the monitor scope.
- Sequence[str]
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- name_filter str
- A monitor name to limit the search.
- Sequence[str]
- A list of tags to limit the search. This filters on the monitor scope.
- List<String>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- nameFilter String
- A monitor name to limit the search.
- List<String>
- A list of tags to limit the search. This filters on the monitor scope.
getMonitor Result
The following output properties are available:
- EnableLogs boolSample 
- Whether or not a list of log values which triggered the alert is included. This is only used by log monitors.
- EnableSamples bool
- Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline monitors.
- EscalationMessage string
- Message included with a re-notification for this monitor.
- EvaluationDelay int
- Time (in seconds) for which evaluation is delayed. This is only used by metric monitors.
- GroupRetention stringDuration 
- The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: 60m, 1h, and 2d. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
- GroupbySimple boolMonitor 
- Whether or not to trigger one alert if any source breaches a threshold.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- Whether or not notifications from the monitor automatically inserts its triggering tags into the title.
- Locked bool
- Whether or not changes to the monitor are restricted to the creator or admins.
- Message string
- Message included with notifications for this monitor
- MonitorThreshold List<GetWindows Monitor Monitor Threshold Window> 
- Mapping containing recovery_windowandtrigger_windowvalues, e.g.last_15m. This is only used by anomaly monitors.
- MonitorThresholds List<GetMonitor Monitor Threshold> 
- Alert thresholds of the monitor.
- Name string
- Name of the monitor
- NewGroup intDelay 
- Time (in seconds) to skip evaluations for new groups.
- NewHost intDelay 
- Time (in seconds) allowing a host to boot and applications to fully start before starting the evaluation of monitor results.
- NoData intTimeframe 
- The number of minutes before the monitor notifies when data stops reporting.
- NotificationPreset stringName 
- Toggles the display of additional content sent in the monitor notification. Valid values are: show_all,hide_query,hide_handles, andhide_all.
- NotifyAudit bool
- Whether or not tagged users are notified on changes to the monitor.
- NotifyBies List<string>
- Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped by cluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto['cluster']. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto[*]configures the monitor to notify as a simple-alert.
- NotifyNo boolData 
- Whether or not this monitor notifies when data stops reporting.
- OnMissing stringData 
- Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Countqueries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other thanCount, for exampleGauge,Measure, orRate, the monitor shows the last known status. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. Valid values are:show_no_data,show_and_notify_no_data,resolve, anddefault.
- Query string
- Query of the monitor.
- RenotifyInterval int
- The number of minutes after the last notification before the monitor re-notifies on the current status.
- RenotifyOccurrences int
- The number of re-notification messages that should be sent on the current status.
- RenotifyStatuses List<string>
- The types of statuses for which re-notification messages should be sent. Valid values are alert,warn,no data.
- RequireFull boolWindow 
- Whether or not the monitor needs a full window of data before it is evaluated.
- RestrictedRoles List<string>
- SchedulingOptions List<GetMonitor Scheduling Option> 
- Configuration options for scheduling.
- List<string>
- List of tags associated with the monitor.
- TimeoutH int
- Number of hours of the monitor not reporting data before it automatically resolves from a triggered state.
- Type string
- Type of the monitor.
- List<string>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- NameFilter string
- A monitor name to limit the search.
- List<string>
- A list of tags to limit the search. This filters on the monitor scope.
- EnableLogs boolSample 
- Whether or not a list of log values which triggered the alert is included. This is only used by log monitors.
- EnableSamples bool
- Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline monitors.
- EscalationMessage string
- Message included with a re-notification for this monitor.
- EvaluationDelay int
- Time (in seconds) for which evaluation is delayed. This is only used by metric monitors.
- GroupRetention stringDuration 
- The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: 60m, 1h, and 2d. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
- GroupbySimple boolMonitor 
- Whether or not to trigger one alert if any source breaches a threshold.
- Id string
- The provider-assigned unique ID for this managed resource.
- bool
- Whether or not notifications from the monitor automatically inserts its triggering tags into the title.
- Locked bool
- Whether or not changes to the monitor are restricted to the creator or admins.
- Message string
- Message included with notifications for this monitor
- MonitorThreshold []GetWindows Monitor Monitor Threshold Window 
- Mapping containing recovery_windowandtrigger_windowvalues, e.g.last_15m. This is only used by anomaly monitors.
- MonitorThresholds []GetMonitor Monitor Threshold 
- Alert thresholds of the monitor.
- Name string
- Name of the monitor
- NewGroup intDelay 
- Time (in seconds) to skip evaluations for new groups.
- NewHost intDelay 
- Time (in seconds) allowing a host to boot and applications to fully start before starting the evaluation of monitor results.
- NoData intTimeframe 
- The number of minutes before the monitor notifies when data stops reporting.
- NotificationPreset stringName 
- Toggles the display of additional content sent in the monitor notification. Valid values are: show_all,hide_query,hide_handles, andhide_all.
- NotifyAudit bool
- Whether or not tagged users are notified on changes to the monitor.
- NotifyBies []string
- Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped by cluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto['cluster']. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto[*]configures the monitor to notify as a simple-alert.
- NotifyNo boolData 
- Whether or not this monitor notifies when data stops reporting.
- OnMissing stringData 
- Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Countqueries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other thanCount, for exampleGauge,Measure, orRate, the monitor shows the last known status. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. Valid values are:show_no_data,show_and_notify_no_data,resolve, anddefault.
- Query string
- Query of the monitor.
- RenotifyInterval int
- The number of minutes after the last notification before the monitor re-notifies on the current status.
- RenotifyOccurrences int
- The number of re-notification messages that should be sent on the current status.
- RenotifyStatuses []string
- The types of statuses for which re-notification messages should be sent. Valid values are alert,warn,no data.
- RequireFull boolWindow 
- Whether or not the monitor needs a full window of data before it is evaluated.
- RestrictedRoles []string
- SchedulingOptions []GetMonitor Scheduling Option 
- Configuration options for scheduling.
- []string
- List of tags associated with the monitor.
- TimeoutH int
- Number of hours of the monitor not reporting data before it automatically resolves from a triggered state.
- Type string
- Type of the monitor.
- []string
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- NameFilter string
- A monitor name to limit the search.
- []string
- A list of tags to limit the search. This filters on the monitor scope.
- enableLogs BooleanSample 
- Whether or not a list of log values which triggered the alert is included. This is only used by log monitors.
- enableSamples Boolean
- Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline monitors.
- escalationMessage String
- Message included with a re-notification for this monitor.
- evaluationDelay Integer
- Time (in seconds) for which evaluation is delayed. This is only used by metric monitors.
- groupRetention StringDuration 
- The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: 60m, 1h, and 2d. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
- groupbySimple BooleanMonitor 
- Whether or not to trigger one alert if any source breaches a threshold.
- id String
- The provider-assigned unique ID for this managed resource.
- Boolean
- Whether or not notifications from the monitor automatically inserts its triggering tags into the title.
- locked Boolean
- Whether or not changes to the monitor are restricted to the creator or admins.
- message String
- Message included with notifications for this monitor
- monitorThreshold List<GetWindows Monitor Monitor Threshold Window> 
- Mapping containing recovery_windowandtrigger_windowvalues, e.g.last_15m. This is only used by anomaly monitors.
- monitorThresholds List<GetMonitor Monitor Threshold> 
- Alert thresholds of the monitor.
- name String
- Name of the monitor
- newGroup IntegerDelay 
- Time (in seconds) to skip evaluations for new groups.
- newHost IntegerDelay 
- Time (in seconds) allowing a host to boot and applications to fully start before starting the evaluation of monitor results.
- noData IntegerTimeframe 
- The number of minutes before the monitor notifies when data stops reporting.
- notificationPreset StringName 
- Toggles the display of additional content sent in the monitor notification. Valid values are: show_all,hide_query,hide_handles, andhide_all.
- notifyAudit Boolean
- Whether or not tagged users are notified on changes to the monitor.
- notifyBies List<String>
- Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped by cluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto['cluster']. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto[*]configures the monitor to notify as a simple-alert.
- notifyNo BooleanData 
- Whether or not this monitor notifies when data stops reporting.
- onMissing StringData 
- Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Countqueries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other thanCount, for exampleGauge,Measure, orRate, the monitor shows the last known status. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. Valid values are:show_no_data,show_and_notify_no_data,resolve, anddefault.
- query String
- Query of the monitor.
- renotifyInterval Integer
- The number of minutes after the last notification before the monitor re-notifies on the current status.
- renotifyOccurrences Integer
- The number of re-notification messages that should be sent on the current status.
- renotifyStatuses List<String>
- The types of statuses for which re-notification messages should be sent. Valid values are alert,warn,no data.
- requireFull BooleanWindow 
- Whether or not the monitor needs a full window of data before it is evaluated.
- restrictedRoles List<String>
- schedulingOptions List<GetMonitor Scheduling Option> 
- Configuration options for scheduling.
- List<String>
- List of tags associated with the monitor.
- timeoutH Integer
- Number of hours of the monitor not reporting data before it automatically resolves from a triggered state.
- type String
- Type of the monitor.
- List<String>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- nameFilter String
- A monitor name to limit the search.
- List<String>
- A list of tags to limit the search. This filters on the monitor scope.
- enableLogs booleanSample 
- Whether or not a list of log values which triggered the alert is included. This is only used by log monitors.
- enableSamples boolean
- Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline monitors.
- escalationMessage string
- Message included with a re-notification for this monitor.
- evaluationDelay number
- Time (in seconds) for which evaluation is delayed. This is only used by metric monitors.
- groupRetention stringDuration 
- The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: 60m, 1h, and 2d. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
- groupbySimple booleanMonitor 
- Whether or not to trigger one alert if any source breaches a threshold.
- id string
- The provider-assigned unique ID for this managed resource.
- boolean
- Whether or not notifications from the monitor automatically inserts its triggering tags into the title.
- locked boolean
- Whether or not changes to the monitor are restricted to the creator or admins.
- message string
- Message included with notifications for this monitor
- monitorThreshold GetWindows Monitor Monitor Threshold Window[] 
- Mapping containing recovery_windowandtrigger_windowvalues, e.g.last_15m. This is only used by anomaly monitors.
- monitorThresholds GetMonitor Monitor Threshold[] 
- Alert thresholds of the monitor.
- name string
- Name of the monitor
- newGroup numberDelay 
- Time (in seconds) to skip evaluations for new groups.
- newHost numberDelay 
- Time (in seconds) allowing a host to boot and applications to fully start before starting the evaluation of monitor results.
- noData numberTimeframe 
- The number of minutes before the monitor notifies when data stops reporting.
- notificationPreset stringName 
- Toggles the display of additional content sent in the monitor notification. Valid values are: show_all,hide_query,hide_handles, andhide_all.
- notifyAudit boolean
- Whether or not tagged users are notified on changes to the monitor.
- notifyBies string[]
- Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped by cluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto['cluster']. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto[*]configures the monitor to notify as a simple-alert.
- notifyNo booleanData 
- Whether or not this monitor notifies when data stops reporting.
- onMissing stringData 
- Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Countqueries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other thanCount, for exampleGauge,Measure, orRate, the monitor shows the last known status. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. Valid values are:show_no_data,show_and_notify_no_data,resolve, anddefault.
- query string
- Query of the monitor.
- renotifyInterval number
- The number of minutes after the last notification before the monitor re-notifies on the current status.
- renotifyOccurrences number
- The number of re-notification messages that should be sent on the current status.
- renotifyStatuses string[]
- The types of statuses for which re-notification messages should be sent. Valid values are alert,warn,no data.
- requireFull booleanWindow 
- Whether or not the monitor needs a full window of data before it is evaluated.
- restrictedRoles string[]
- schedulingOptions GetMonitor Scheduling Option[] 
- Configuration options for scheduling.
- string[]
- List of tags associated with the monitor.
- timeoutH number
- Number of hours of the monitor not reporting data before it automatically resolves from a triggered state.
- type string
- Type of the monitor.
- string[]
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- nameFilter string
- A monitor name to limit the search.
- string[]
- A list of tags to limit the search. This filters on the monitor scope.
- enable_logs_ boolsample 
- Whether or not a list of log values which triggered the alert is included. This is only used by log monitors.
- enable_samples bool
- Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline monitors.
- escalation_message str
- Message included with a re-notification for this monitor.
- evaluation_delay int
- Time (in seconds) for which evaluation is delayed. This is only used by metric monitors.
- group_retention_ strduration 
- The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: 60m, 1h, and 2d. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
- groupby_simple_ boolmonitor 
- Whether or not to trigger one alert if any source breaches a threshold.
- id str
- The provider-assigned unique ID for this managed resource.
- bool
- Whether or not notifications from the monitor automatically inserts its triggering tags into the title.
- locked bool
- Whether or not changes to the monitor are restricted to the creator or admins.
- message str
- Message included with notifications for this monitor
- monitor_threshold_ Sequence[Getwindows Monitor Monitor Threshold Window] 
- Mapping containing recovery_windowandtrigger_windowvalues, e.g.last_15m. This is only used by anomaly monitors.
- monitor_thresholds Sequence[GetMonitor Monitor Threshold] 
- Alert thresholds of the monitor.
- name str
- Name of the monitor
- new_group_ intdelay 
- Time (in seconds) to skip evaluations for new groups.
- new_host_ intdelay 
- Time (in seconds) allowing a host to boot and applications to fully start before starting the evaluation of monitor results.
- no_data_ inttimeframe 
- The number of minutes before the monitor notifies when data stops reporting.
- notification_preset_ strname 
- Toggles the display of additional content sent in the monitor notification. Valid values are: show_all,hide_query,hide_handles, andhide_all.
- notify_audit bool
- Whether or not tagged users are notified on changes to the monitor.
- notify_bies Sequence[str]
- Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped by cluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto['cluster']. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto[*]configures the monitor to notify as a simple-alert.
- notify_no_ booldata 
- Whether or not this monitor notifies when data stops reporting.
- on_missing_ strdata 
- Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Countqueries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other thanCount, for exampleGauge,Measure, orRate, the monitor shows the last known status. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. Valid values are:show_no_data,show_and_notify_no_data,resolve, anddefault.
- query str
- Query of the monitor.
- renotify_interval int
- The number of minutes after the last notification before the monitor re-notifies on the current status.
- renotify_occurrences int
- The number of re-notification messages that should be sent on the current status.
- renotify_statuses Sequence[str]
- The types of statuses for which re-notification messages should be sent. Valid values are alert,warn,no data.
- require_full_ boolwindow 
- Whether or not the monitor needs a full window of data before it is evaluated.
- restricted_roles Sequence[str]
- scheduling_options Sequence[GetMonitor Scheduling Option] 
- Configuration options for scheduling.
- Sequence[str]
- List of tags associated with the monitor.
- timeout_h int
- Number of hours of the monitor not reporting data before it automatically resolves from a triggered state.
- type str
- Type of the monitor.
- Sequence[str]
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- name_filter str
- A monitor name to limit the search.
- Sequence[str]
- A list of tags to limit the search. This filters on the monitor scope.
- enableLogs BooleanSample 
- Whether or not a list of log values which triggered the alert is included. This is only used by log monitors.
- enableSamples Boolean
- Whether or not a list of samples which triggered the alert is included. This is only used by CI Test and Pipeline monitors.
- escalationMessage String
- Message included with a re-notification for this monitor.
- evaluationDelay Number
- Time (in seconds) for which evaluation is delayed. This is only used by metric monitors.
- groupRetention StringDuration 
- The time span after which groups with missing data are dropped from the monitor state. The minimum value is one hour, and the maximum value is 72 hours. Example values are: 60m, 1h, and 2d. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors.
- groupbySimple BooleanMonitor 
- Whether or not to trigger one alert if any source breaches a threshold.
- id String
- The provider-assigned unique ID for this managed resource.
- Boolean
- Whether or not notifications from the monitor automatically inserts its triggering tags into the title.
- locked Boolean
- Whether or not changes to the monitor are restricted to the creator or admins.
- message String
- Message included with notifications for this monitor
- monitorThreshold List<Property Map>Windows 
- Mapping containing recovery_windowandtrigger_windowvalues, e.g.last_15m. This is only used by anomaly monitors.
- monitorThresholds List<Property Map>
- Alert thresholds of the monitor.
- name String
- Name of the monitor
- newGroup NumberDelay 
- Time (in seconds) to skip evaluations for new groups.
- newHost NumberDelay 
- Time (in seconds) allowing a host to boot and applications to fully start before starting the evaluation of monitor results.
- noData NumberTimeframe 
- The number of minutes before the monitor notifies when data stops reporting.
- notificationPreset StringName 
- Toggles the display of additional content sent in the monitor notification. Valid values are: show_all,hide_query,hide_handles, andhide_all.
- notifyAudit Boolean
- Whether or not tagged users are notified on changes to the monitor.
- notifyBies List<String>
- Controls what granularity a monitor alerts on. Only available for monitors with groupings. For instance, a monitor grouped by cluster,namespace, andpodcan be configured to only notify on each newclusterviolating the alert conditions by settingnotify_byto['cluster']. Tags mentioned innotify_bymust be a subset of the grouping tags in the query. For example, a query grouped byclusterandnamespacecannot notify onregion. Settingnotify_byto[*]configures the monitor to notify as a simple-alert.
- notifyNo BooleanData 
- Whether or not this monitor notifies when data stops reporting.
- onMissing StringData 
- Controls how groups or monitors are treated if an evaluation does not return any data points. The default option results in different behavior depending on the monitor query type. For monitors using Countqueries, an empty monitor evaluation is treated as 0 and is compared to the threshold conditions. For monitors using any query type other thanCount, for exampleGauge,Measure, orRate, the monitor shows the last known status. This option is only available for APM Trace Analytics, Audit Trail, CI, Error Tracking, Event, Logs, and RUM monitors. Valid values are:show_no_data,show_and_notify_no_data,resolve, anddefault.
- query String
- Query of the monitor.
- renotifyInterval Number
- The number of minutes after the last notification before the monitor re-notifies on the current status.
- renotifyOccurrences Number
- The number of re-notification messages that should be sent on the current status.
- renotifyStatuses List<String>
- The types of statuses for which re-notification messages should be sent. Valid values are alert,warn,no data.
- requireFull BooleanWindow 
- Whether or not the monitor needs a full window of data before it is evaluated.
- restrictedRoles List<String>
- schedulingOptions List<Property Map>
- Configuration options for scheduling.
- List<String>
- List of tags associated with the monitor.
- timeoutH Number
- Number of hours of the monitor not reporting data before it automatically resolves from a triggered state.
- type String
- Type of the monitor.
- List<String>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- nameFilter String
- A monitor name to limit the search.
- List<String>
- A list of tags to limit the search. This filters on the monitor scope.
Supporting Types
GetMonitorMonitorThreshold   
- Critical string
- CriticalRecovery string
- Ok string
- Unknown string
- Warning string
- WarningRecovery string
- Critical string
- CriticalRecovery string
- Ok string
- Unknown string
- Warning string
- WarningRecovery string
- critical String
- criticalRecovery String
- ok String
- unknown String
- warning String
- warningRecovery String
- critical string
- criticalRecovery string
- ok string
- unknown string
- warning string
- warningRecovery string
- critical str
- critical_recovery str
- ok str
- unknown str
- warning str
- warning_recovery str
- critical String
- criticalRecovery String
- ok String
- unknown String
- warning String
- warningRecovery String
GetMonitorMonitorThresholdWindow    
- RecoveryWindow string
- TriggerWindow string
- RecoveryWindow string
- TriggerWindow string
- recoveryWindow String
- triggerWindow String
- recoveryWindow string
- triggerWindow string
- recovery_window str
- trigger_window str
- recoveryWindow String
- triggerWindow String
GetMonitorSchedulingOption   
- CustomSchedules List<GetMonitor Scheduling Option Custom Schedule> 
- Configuration options for the custom schedules. If startis omitted, the monitor creation time will be used.
- EvaluationWindows List<GetMonitor Scheduling Option Evaluation Window> 
- Configuration options for the evaluation window. If hour_startsis set, no other fields may be set. Otherwise,day_startsandmonth_startsmust be set together.
- CustomSchedules []GetMonitor Scheduling Option Custom Schedule 
- Configuration options for the custom schedules. If startis omitted, the monitor creation time will be used.
- EvaluationWindows []GetMonitor Scheduling Option Evaluation Window 
- Configuration options for the evaluation window. If hour_startsis set, no other fields may be set. Otherwise,day_startsandmonth_startsmust be set together.
- customSchedules List<GetMonitor Scheduling Option Custom Schedule> 
- Configuration options for the custom schedules. If startis omitted, the monitor creation time will be used.
- evaluationWindows List<GetMonitor Scheduling Option Evaluation Window> 
- Configuration options for the evaluation window. If hour_startsis set, no other fields may be set. Otherwise,day_startsandmonth_startsmust be set together.
- customSchedules GetMonitor Scheduling Option Custom Schedule[] 
- Configuration options for the custom schedules. If startis omitted, the monitor creation time will be used.
- evaluationWindows GetMonitor Scheduling Option Evaluation Window[] 
- Configuration options for the evaluation window. If hour_startsis set, no other fields may be set. Otherwise,day_startsandmonth_startsmust be set together.
- custom_schedules Sequence[GetMonitor Scheduling Option Custom Schedule] 
- Configuration options for the custom schedules. If startis omitted, the monitor creation time will be used.
- evaluation_windows Sequence[GetMonitor Scheduling Option Evaluation Window] 
- Configuration options for the evaluation window. If hour_startsis set, no other fields may be set. Otherwise,day_startsandmonth_startsmust be set together.
- customSchedules List<Property Map>
- Configuration options for the custom schedules. If startis omitted, the monitor creation time will be used.
- evaluationWindows List<Property Map>
- Configuration options for the evaluation window. If hour_startsis set, no other fields may be set. Otherwise,day_startsandmonth_startsmust be set together.
GetMonitorSchedulingOptionCustomSchedule     
- Recurrences
List<GetMonitor Scheduling Option Custom Schedule Recurrence> 
- A list of recurrence definitions. Length must be 1.
- Recurrences
[]GetMonitor Scheduling Option Custom Schedule Recurrence 
- A list of recurrence definitions. Length must be 1.
- recurrences
List<GetMonitor Scheduling Option Custom Schedule Recurrence> 
- A list of recurrence definitions. Length must be 1.
- recurrences
GetMonitor Scheduling Option Custom Schedule Recurrence[] 
- A list of recurrence definitions. Length must be 1.
- recurrences
Sequence[GetMonitor Scheduling Option Custom Schedule Recurrence] 
- A list of recurrence definitions. Length must be 1.
- recurrences List<Property Map>
- A list of recurrence definitions. Length must be 1.
GetMonitorSchedulingOptionCustomScheduleRecurrence      
GetMonitorSchedulingOptionEvaluationWindow     
- DayStarts string
- The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mmformat.
- HourStarts int
- The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59.
- MonthStarts int
- The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1.
- DayStarts string
- The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mmformat.
- HourStarts int
- The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59.
- MonthStarts int
- The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1.
- dayStarts String
- The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mmformat.
- hourStarts Integer
- The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59.
- monthStarts Integer
- The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1.
- dayStarts string
- The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mmformat.
- hourStarts number
- The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59.
- monthStarts number
- The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1.
- day_starts str
- The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mmformat.
- hour_starts int
- The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59.
- month_starts int
- The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1.
- dayStarts String
- The time of the day at which a one day cumulative evaluation window starts. Must be defined in UTC time in HH:mmformat.
- hourStarts Number
- The minute of the hour at which a one hour cumulative evaluation window starts. Must be between 0 and 59.
- monthStarts Number
- The day of the month at which a one month cumulative evaluation window starts. Must be a value of 1.
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the datadogTerraform Provider.