Interface MetricInterval.Builder

    • Method Detail

      • 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:
        IntervalPeriod, IntervalPeriod
      • interval

        MetricInterval.Builder interval​(IntervalPeriod 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:
        IntervalPeriod, IntervalPeriod
      • 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.