Interface Metric.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Metric.Builder,Metric>, SdkBuilder<Metric.Builder,Metric>, SdkPojo
Enclosing class:
Metric

public static interface Metric.Builder extends SdkPojo, CopyableBuilder<Metric.Builder,Metric>
  • Method Details

    • name

      Metric.Builder name(String name)

      The name of a metric.

      Parameters:
      name - The name of a metric.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      Metric.Builder references(Collection<MetricReference> references)

      A list of metric references (thresholds).

      Parameters:
      references - A list of metric references (thresholds).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      Metric.Builder references(MetricReference... references)

      A list of metric references (thresholds).

      Parameters:
      references - A list of metric references (thresholds).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • references

      Metric.Builder references(Consumer<MetricReference.Builder>... references)

      A list of metric references (thresholds).

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

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

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

      Metric.Builder statisticsDetails(String statisticsDetails)

      The details of different statistics for a metric. The description might contain markdown.

      Parameters:
      statisticsDetails - The details of different statistics for a metric. The description might contain markdown.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricQuery

      Metric.Builder metricQuery(MetricQuery metricQuery)

      The query to retrieve metric data points.

      Parameters:
      metricQuery - The query to retrieve metric data points.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricQuery

      default Metric.Builder metricQuery(Consumer<MetricQuery.Builder> metricQuery)

      The query to retrieve metric data points.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to metricQuery(MetricQuery).

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