Datadog v4.55.0 published on Friday, Sep 5, 2025 by Pulumi
datadog.getMetricActiveTagsAndAggregations
Explore with Pulumi AI
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:
getMetricActiveTagsAndAggregations Result
The following output properties are available:
- Active
Aggregations List<GetMetric Active Tags And Aggregations Active Aggregation> - The active aggregations associated with the metric.
- 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.
- Active
Aggregations []GetMetric Active Tags And Aggregations Active Aggregation - The active aggregations associated with the metric.
- []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.
- active
Aggregations List<GetMetric Active Tags And Aggregations Active Aggregation> - The active aggregations associated with the metric.
- 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.
- active
Aggregations GetMetric Active Tags And Aggregations Active Aggregation[] - The active aggregations associated with the metric.
- 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[GetMetric Active Tags And Aggregations Active Aggregation] - The active aggregations associated with the metric.
- 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.
- active
Aggregations List<Property Map> - The active aggregations associated with the metric.
- 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
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadog
Terraform Provider.