Interface ContainerMonitoringConfiguration.Builder

  • Method Details

    • clusterArn

      The ARN of the Amazon ECS or Amazon EKS cluster to monitor. The cluster must be in the same Region and account as the container association.

      Parameters:
      clusterArn - The ARN of the Amazon ECS or Amazon EKS cluster to monitor. The cluster must be in the same Region and account as the container association.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      Key-value pairs that filter which containers are tracked. For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).

      Parameters:
      attributeFilters - Key-value pairs that filter which containers are tracked. For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      ContainerMonitoringConfiguration.Builder attributeFilters(ContainerAttribute... attributeFilters)

      Key-value pairs that filter which containers are tracked. For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).

      Parameters:
      attributeFilters - Key-value pairs that filter which containers are tracked. For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributeFilters

      Key-value pairs that filter which containers are tracked. For Amazon EKS, you can filter by namespace and Kubernetes labels. For Amazon ECS, you can filter by container instance attributes (EC2 launch type only).

      This is a convenience method that creates an instance of the ContainerAttribute.Builder avoiding the need to create one manually via ContainerAttribute.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributeFilters(List<ContainerAttribute>).

      Parameters:
      attributeFilters - a consumer that will call methods on ContainerAttribute.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: