Datadog

Pulumi Official
Package maintained by Pulumi
v4.10.0 published on Monday, Jul 25, 2022 by Pulumi

getMonitors

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>
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]
func GetMonitors(ctx *Context, args *GetMonitorsArgs, opts ...InvokeOption) (*GetMonitorsResult, error)
func GetMonitorsOutput(ctx *Context, args *GetMonitorsOutputArgs, opts ...InvokeOption) GetMonitorsResultOutput

> 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)
}
public static CompletableFuture<GetMonitorsResult> getMonitors(GetMonitorsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: datadog:index/getMonitors:getMonitors
  Arguments:
    # Arguments dictionary

The following arguments are supported:

MonitorTagsFilters List<string>
NameFilter string
TagsFilters List<string>
monitorTagsFilters List<String>
nameFilter String
tagsFilters List<String>
monitor_tags_filters Sequence[str]
name_filter str
tags_filters Sequence[str]
monitorTagsFilters List<String>
nameFilter String
tagsFilters List<String>

getMonitors Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Monitors List<GetMonitorsMonitor>
MonitorTagsFilters List<string>
NameFilter string
TagsFilters List<string>
Id string

The provider-assigned unique ID for this managed resource.

Monitors []GetMonitorsMonitor
MonitorTagsFilters []string
NameFilter string
TagsFilters []string
id String

The provider-assigned unique ID for this managed resource.

monitors List<GetMonitorsMonitor>
monitorTagsFilters List<String>
nameFilter String
tagsFilters List<String>
id string

The provider-assigned unique ID for this managed resource.

monitors GetMonitorsMonitor[]
monitorTagsFilters string[]
nameFilter string
tagsFilters string[]
id str

The provider-assigned unique ID for this managed resource.

monitors Sequence[GetMonitorsMonitor]
monitor_tags_filters Sequence[str]
name_filter str
tags_filters Sequence[str]
id String

The provider-assigned unique ID for this managed resource.

monitors List<Property Map>
monitorTagsFilters List<String>
nameFilter String
tagsFilters List<String>

Supporting Types

GetMonitorsMonitor

Id int
Name string
Type string
Id int
Name string
Type string
id Integer
name String
type String
id number
name string
type string
id int
name str
type str
id Number
name String
type String

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.