Skip to content

Replaces the filters that determine which CloudWatch vended metrics are enriched with resource ARN and resource tag labels for the account

Description

Replaces the filters that determine which CloudWatch vended metrics are enriched with resource ARN and resource tag labels for the account. Enrichment must already be running for the account. If it is not, this operation returns a ResourceNotFoundException. To start enrichment, use start_o_tel_enrichment.

The filters in the request completely replace the stored filters; they are not merged with them. IncludeFilters and ExcludeFilters are replaced as a pair, so a request that specifies only IncludeFilters also clears the stored ExcludeFilters, and a request that specifies neither clears both.

Usage

cloudwatch_update_o_tel_enrichment(IncludeFilters, ExcludeFilters)

Arguments

  • IncludeFilters

    The metric namespaces, and the metric names, to enrich. If this parameter is omitted, every namespace that Amazon CloudWatch supports for enrichment is in scope.

    A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined.

  • ExcludeFilters

    The metric namespaces, and the metric names, to leave unenriched. If this parameter is omitted, nothing is excluded.

    Amazon CloudWatch applies ExcludeFilters after IncludeFilters, so a metric that both parameters match is not enriched.

    A maximum of 100 filters is allowed across IncludeFilters and ExcludeFilters combined.

Value

A list with the following syntax:

list(
  IncludeFilters = list(
    list(
      Namespace = "string",
      MetricNames = list(
        "string"
      )
    )
  ),
  ExcludeFilters = list(
    list(
      Namespace = "string",
      MetricNames = list(
        "string"
      )
    )
  ),
  CreatedAt = as.POSIXct(
    "2015-01-01"
  ),
  UpdatedAt = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$update_o_tel_enrichment(
  IncludeFilters = list(
    list(
      Namespace = "string",
      MetricNames = list(
        "string"
      )
    )
  ),
  ExcludeFilters = list(
    list(
      Namespace = "string",
      MetricNames = list(
        "string"
      )
    )
  )
)