Interface MetricGraph.Builder

  • Method Details

    • metricDataQueries

      MetricGraph.Builder metricDataQueries(Collection<MetricDataQuery> metricDataQueries)

      An array of metric data queries that define the metrics to be retrieved and analyzed as part of the audit finding context.

      Parameters:
      metricDataQueries - An array of metric data queries that define the metrics to be retrieved and analyzed as part of the audit finding context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricDataQueries

      MetricGraph.Builder metricDataQueries(MetricDataQuery... metricDataQueries)

      An array of metric data queries that define the metrics to be retrieved and analyzed as part of the audit finding context.

      Parameters:
      metricDataQueries - An array of metric data queries that define the metrics to be retrieved and analyzed as part of the audit finding context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • metricDataQueries

      MetricGraph.Builder metricDataQueries(Consumer<MetricDataQuery.Builder>... metricDataQueries)

      An array of metric data queries that define the metrics to be retrieved and analyzed as part of the audit finding context.

      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 metricDataQueries(List<MetricDataQuery>).

      Parameters:
      metricDataQueries - 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:
    • startTime

      MetricGraph.Builder startTime(Instant startTime)

      The start time for the metric data included in this graph. When used in a raw HTTP Query API, it is formatted as epoch time in seconds.

      Parameters:
      startTime - The start time for the metric data included in this graph. When used in a raw HTTP Query API, it is formatted as epoch time in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      MetricGraph.Builder endTime(Instant endTime)

      The end time for the metric data included in this graph. When used in a raw HTTP Query API, it is formatted as epoch time in seconds.

      Parameters:
      endTime - The end time for the metric data included in this graph. When used in a raw HTTP Query API, it is formatted as epoch time in seconds.
      Returns:
      Returns a reference to this object so that method calls can be chained together.