Interface MetricCategory.Builder

  • Method Details

    • metricCategoryId

      MetricCategory.Builder metricCategoryId(String metricCategoryId)

      The ID of the metric category.

      Parameters:
      metricCategoryId - The ID of the metric category.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      The names of the metrics in the metric category.

      Parameters:
      metrics - The names of the metrics in the metric category.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metrics

      MetricCategory.Builder metrics(String... metrics)

      The names of the metrics in the metric category.

      Parameters:
      metrics - The names of the metrics in the metric category.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the metric category.

      Parameters:
      tags - Any tags assigned to the metric category.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      MetricCategory.Builder tags(Tag... tags)

      Any tags assigned to the metric category.

      Parameters:
      tags - Any tags assigned to the metric category.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the metric category.

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

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

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