Use this data source to list metrics for use in other resources.
Using getMetrics
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 getMetrics(args: GetMetricsArgs, opts?: InvokeOptions): Promise<GetMetricsResult>
function getMetricsOutput(args: GetMetricsOutputArgs, opts?: InvokeOptions): Output<GetMetricsResult>def get_metrics(query: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMetricsResult
def get_metrics_output(query: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMetricsResult]func GetMetrics(ctx *Context, args *GetMetricsArgs, opts ...InvokeOption) (*GetMetricsResult, error)
func GetMetricsOutput(ctx *Context, args *GetMetricsOutputArgs, opts ...InvokeOption) GetMetricsResultOutput> Note: This function is named GetMetrics in the Go SDK.
public static class GetMetrics
{
public static Task<GetMetricsResult> InvokeAsync(GetMetricsArgs args, InvokeOptions? opts = null)
public static Output<GetMetricsResult> Invoke(GetMetricsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMetricsResult> getMetrics(GetMetricsArgs args, InvokeOptions options)
public static Output<GetMetricsResult> getMetrics(GetMetricsArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getMetrics:getMetrics
arguments:
# arguments dictionaryThe following arguments are supported:
- Query string
- The search query to use when listing metrics.
- Query string
- The search query to use when listing metrics.
- query String
- The search query to use when listing metrics.
- query string
- The search query to use when listing metrics.
- query str
- The search query to use when listing metrics.
- query String
- The search query to use when listing metrics.
getMetrics Result
The following output properties are available:
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
