Interface MonitoredRequestCountMetricDataQueries.Builder

  • Method Details

    • goodCountMetric

      If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.

      Parameters:
      goodCountMetric - If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • goodCountMetric

      If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.

      Parameters:
      goodCountMetric - If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • goodCountMetric

      If you want to count "good requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "good requests" in this structure.

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

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

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

      If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.

      Parameters:
      badCountMetric - If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • badCountMetric

      If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.

      Parameters:
      badCountMetric - If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • badCountMetric

      If you want to count "bad requests" to determine the percentage of successful requests for this request-based SLO, specify the metric to use as "bad requests" in this structure.

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

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

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