1. Packages
  2. Datadog Provider
  3. API Docs
  4. getMonitors
Datadog v4.48.1 published on Saturday, Apr 5, 2025 by Pulumi

datadog.getMonitors

Explore with Pulumi AI

Datadog v4.48.1 published on Saturday, Apr 5, 2025 by Pulumi

Use this data source to list several existing monitors for use in other resources.

Using getMonitors

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 getMonitors(args: GetMonitorsArgs, opts?: InvokeOptions): Promise<GetMonitorsResult>
function getMonitorsOutput(args: GetMonitorsOutputArgs, opts?: InvokeOptions): Output<GetMonitorsResult>
Copy
def get_monitors(monitor_tags_filters: Optional[Sequence[str]] = None,
                 name_filter: Optional[str] = None,
                 tags_filters: Optional[Sequence[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> GetMonitorsResult
def get_monitors_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[GetMonitorsResult]
Copy
func GetMonitors(ctx *Context, args *GetMonitorsArgs, opts ...InvokeOption) (*GetMonitorsResult, error)
func GetMonitorsOutput(ctx *Context, args *GetMonitorsOutputArgs, opts ...InvokeOption) GetMonitorsResultOutput
Copy

> Note: This function is named GetMonitors in the Go SDK.

public static class GetMonitors 
{
    public static Task<GetMonitorsResult> InvokeAsync(GetMonitorsArgs args, InvokeOptions? opts = null)
    public static Output<GetMonitorsResult> Invoke(GetMonitorsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetMonitorsResult> getMonitors(GetMonitorsArgs args, InvokeOptions options)
public static Output<GetMonitorsResult> getMonitors(GetMonitorsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: datadog:index/getMonitors:getMonitors
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MonitorTagsFilters 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.
TagsFilters List<string>
A list of tags to limit the search. This filters on the monitor scope.
MonitorTagsFilters []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.
TagsFilters []string
A list of tags to limit the search. This filters on the monitor scope.
monitorTagsFilters 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.
tagsFilters List<String>
A list of tags to limit the search. This filters on the monitor scope.
monitorTagsFilters 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.
tagsFilters string[]
A list of tags to limit the search. This filters on the monitor scope.
monitor_tags_filters 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.
tags_filters Sequence[str]
A list of tags to limit the search. This filters on the monitor scope.
monitorTagsFilters 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.
tagsFilters List<String>
A list of tags to limit the search. This filters on the monitor scope.

getMonitors Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Monitors List<GetMonitorsMonitor>
List of monitors
MonitorTagsFilters 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.
TagsFilters List<string>
A list of tags to limit the search. This filters on the monitor scope.
Id string
The provider-assigned unique ID for this managed resource.
Monitors []GetMonitorsMonitor
List of monitors
MonitorTagsFilters []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.
TagsFilters []string
A list of tags to limit the search. This filters on the monitor scope.
id String
The provider-assigned unique ID for this managed resource.
monitors List<GetMonitorsMonitor>
List of monitors
monitorTagsFilters 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.
tagsFilters List<String>
A list of tags to limit the search. This filters on the monitor scope.
id string
The provider-assigned unique ID for this managed resource.
monitors GetMonitorsMonitor[]
List of monitors
monitorTagsFilters 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.
tagsFilters string[]
A list of tags to limit the search. This filters on the monitor scope.
id str
The provider-assigned unique ID for this managed resource.
monitors Sequence[GetMonitorsMonitor]
List of monitors
monitor_tags_filters 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.
tags_filters Sequence[str]
A list of tags to limit the search. This filters on the monitor scope.
id String
The provider-assigned unique ID for this managed resource.
monitors List<Property Map>
List of monitors
monitorTagsFilters 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.
tagsFilters List<String>
A list of tags to limit the search. This filters on the monitor scope.

Supporting Types

GetMonitorsMonitor

Id This property is required. int
ID of the monitor
Name This property is required. string
Name of the monitor
Type This property is required. string
Type of the monitor.
Id This property is required. int
ID of the monitor
Name This property is required. string
Name of the monitor
Type This property is required. string
Type of the monitor.
id This property is required. Integer
ID of the monitor
name This property is required. String
Name of the monitor
type This property is required. String
Type of the monitor.
id This property is required. number
ID of the monitor
name This property is required. string
Name of the monitor
type This property is required. string
Type of the monitor.
id This property is required. int
ID of the monitor
name This property is required. str
Name of the monitor
type This property is required. str
Type of the monitor.
id This property is required. Number
ID of the monitor
name This property is required. String
Name of the monitor
type This property is required. String
Type of the monitor.

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.
Datadog v4.48.1 published on Saturday, Apr 5, 2025 by Pulumi