Datadog v4.34.0 published on Friday, Oct 4, 2024 by Pulumi
datadog.getMonitors
Explore with Pulumi AI
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:
- List<string>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- Name
Filter 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.
- Name
Filter 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.
- name
Filter 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.
- name
Filter 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.
- name
Filter String - A monitor name to limit the search.
- 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<Get
Monitors Monitor> - List of monitors
- List<string>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- Name
Filter string - A monitor name to limit the search.
- 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
[]Get
Monitors Monitor - List of monitors
- []string
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- Name
Filter string - A monitor name to limit the search.
- []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<Get
Monitors Monitor> - List of monitors
- List<String>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- name
Filter String - A monitor name to limit the search.
- 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
Get
Monitors Monitor[] - List of monitors
- string[]
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- name
Filter string - A monitor name to limit the search.
- 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[Get
Monitors Monitor] - List of monitors
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- monitors List<Property Map>
- List of monitors
- List<String>
- A list of monitor tags to limit the search. This filters on the tags set on the monitor itself.
- name
Filter 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
GetMonitorsMonitor
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.