Interface MetricInterval.Builder

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

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

    • interval

      MetricInterval.Builder interval(String interval)

      The interval period provided in the API request.

      Parameters:
      interval - The interval period provided in the API request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • interval

      The interval period provided in the API request.

      Parameters:
      interval - The interval period provided in the API request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • startTime

      MetricInterval.Builder startTime(Instant startTime)

      The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.

      Parameters:
      startTime - The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      MetricInterval.Builder endTime(Instant endTime)

      The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.

      Parameters:
      endTime - The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.