1. Packages
  2. Datadog Provider
  3. API Docs
  4. getMonitors
Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi

datadog.getMonitors

Explore with Pulumi AI

datadog logo
Datadog v4.34.0 published on Friday, Oct 4, 2024 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
    ID of the monitor
    Name string
    Name of the monitor
    Type string
    Type of the monitor.
    Id int
    ID of the monitor
    Name string
    Name of the monitor
    Type string
    Type of the monitor.
    id Integer
    ID of the monitor
    name String
    Name of the monitor
    type String
    Type of the monitor.
    id number
    ID of the monitor
    name string
    Name of the monitor
    type string
    Type of the monitor.
    id int
    ID of the monitor
    name str
    Name of the monitor
    type str
    Type of the monitor.
    id Number
    ID of the monitor
    name String
    Name of the monitor
    type 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 logo
    Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi