1. Packages
  2. Datadog
  3. API Docs
  4. getMonitors
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi

datadog.getMonitors

Explore with Pulumi AI

datadog logo
Datadog v4.23.0 published on Wednesday, Sep 27, 2023 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>
    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>

    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 int

    The ID of this resource.

    Name string
    Type string
    Id int

    The ID of this resource.

    Name string
    Type string
    id Integer

    The ID of this resource.

    name String
    type String
    id number

    The ID of this resource.

    name string
    type string
    id int

    The ID of this resource.

    name str
    type str
    id Number

    The ID of this resource.

    name String
    type String

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the datadog Terraform Provider.

    datadog logo
    Datadog v4.23.0 published on Wednesday, Sep 27, 2023 by Pulumi