1. Packages
  2. Datadog Provider
  3. API Docs
  4. getMetricActiveTagsAndAggregations
Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi

datadog.getMetricActiveTagsAndAggregations

Explore with Pulumi AI

datadog logo
Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi

    Use this data source to retrieve active tags and aggregations associated with a metric to use in other resources.

    Using getMetricActiveTagsAndAggregations

    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 getMetricActiveTagsAndAggregations(args: GetMetricActiveTagsAndAggregationsArgs, opts?: InvokeOptions): Promise<GetMetricActiveTagsAndAggregationsResult>
    function getMetricActiveTagsAndAggregationsOutput(args: GetMetricActiveTagsAndAggregationsOutputArgs, opts?: InvokeOptions): Output<GetMetricActiveTagsAndAggregationsResult>
    def get_metric_active_tags_and_aggregations(metric: Optional[str] = None,
                                                window: Optional[int] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetMetricActiveTagsAndAggregationsResult
    def get_metric_active_tags_and_aggregations_output(metric: Optional[pulumi.Input[str]] = None,
                                                window: Optional[pulumi.Input[int]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetMetricActiveTagsAndAggregationsResult]
    func GetMetricActiveTagsAndAggregations(ctx *Context, args *GetMetricActiveTagsAndAggregationsArgs, opts ...InvokeOption) (*GetMetricActiveTagsAndAggregationsResult, error)
    func GetMetricActiveTagsAndAggregationsOutput(ctx *Context, args *GetMetricActiveTagsAndAggregationsOutputArgs, opts ...InvokeOption) GetMetricActiveTagsAndAggregationsResultOutput

    > Note: This function is named GetMetricActiveTagsAndAggregations in the Go SDK.

    public static class GetMetricActiveTagsAndAggregations 
    {
        public static Task<GetMetricActiveTagsAndAggregationsResult> InvokeAsync(GetMetricActiveTagsAndAggregationsArgs args, InvokeOptions? opts = null)
        public static Output<GetMetricActiveTagsAndAggregationsResult> Invoke(GetMetricActiveTagsAndAggregationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetMetricActiveTagsAndAggregationsResult> getMetricActiveTagsAndAggregations(GetMetricActiveTagsAndAggregationsArgs args, InvokeOptions options)
    public static Output<GetMetricActiveTagsAndAggregationsResult> getMetricActiveTagsAndAggregations(GetMetricActiveTagsAndAggregationsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getMetricActiveTagsAndAggregations:getMetricActiveTagsAndAggregations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Metric string
    The metric for which to fetch tags.
    Window int
    The number of seconds to look back from now.
    Metric string
    The metric for which to fetch tags.
    Window int
    The number of seconds to look back from now.
    metric String
    The metric for which to fetch tags.
    window Integer
    The number of seconds to look back from now.
    metric string
    The metric for which to fetch tags.
    window number
    The number of seconds to look back from now.
    metric str
    The metric for which to fetch tags.
    window int
    The number of seconds to look back from now.
    metric String
    The metric for which to fetch tags.
    window Number
    The number of seconds to look back from now.

    getMetricActiveTagsAndAggregations Result

    The following output properties are available:

    ActiveAggregations List<GetMetricActiveTagsAndAggregationsActiveAggregation>
    The active aggregations associated with the metric.
    ActiveTags List<string>
    The active tags associated with the metric.
    Id string
    The ID of this resource.
    Metric string
    The metric for which to fetch tags.
    Window int
    The number of seconds to look back from now.
    ActiveAggregations []GetMetricActiveTagsAndAggregationsActiveAggregation
    The active aggregations associated with the metric.
    ActiveTags []string
    The active tags associated with the metric.
    Id string
    The ID of this resource.
    Metric string
    The metric for which to fetch tags.
    Window int
    The number of seconds to look back from now.
    activeAggregations List<GetMetricActiveTagsAndAggregationsActiveAggregation>
    The active aggregations associated with the metric.
    activeTags List<String>
    The active tags associated with the metric.
    id String
    The ID of this resource.
    metric String
    The metric for which to fetch tags.
    window Integer
    The number of seconds to look back from now.
    activeAggregations GetMetricActiveTagsAndAggregationsActiveAggregation[]
    The active aggregations associated with the metric.
    activeTags string[]
    The active tags associated with the metric.
    id string
    The ID of this resource.
    metric string
    The metric for which to fetch tags.
    window number
    The number of seconds to look back from now.
    active_aggregations Sequence[GetMetricActiveTagsAndAggregationsActiveAggregation]
    The active aggregations associated with the metric.
    active_tags Sequence[str]
    The active tags associated with the metric.
    id str
    The ID of this resource.
    metric str
    The metric for which to fetch tags.
    window int
    The number of seconds to look back from now.
    activeAggregations List<Property Map>
    The active aggregations associated with the metric.
    activeTags List<String>
    The active tags associated with the metric.
    id String
    The ID of this resource.
    metric String
    The metric for which to fetch tags.
    window Number
    The number of seconds to look back from now.

    Supporting Types

    GetMetricActiveTagsAndAggregationsActiveAggregation

    Space string
    Time string
    Space string
    Time string
    space String
    time String
    space string
    time string
    space str
    time str
    space String
    time 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.55.0 published on Friday, Sep 5, 2025 by Pulumi