Interface Record.Builder

    • Method Detail

      • dimensions

        Record.Builder dimensions​(Collection<Dimension> dimensions)

        Contains the list of dimensions for time-series data points.

        Parameters:
        dimensions - Contains the list of dimensions for time-series data points.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensions

        Record.Builder dimensions​(Dimension... dimensions)

        Contains the list of dimensions for time-series data points.

        Parameters:
        dimensions - Contains the list of dimensions for time-series data points.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • dimensions

        Record.Builder dimensions​(Consumer<Dimension.Builder>... dimensions)

        Contains the list of dimensions for time-series data points.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #dimensions(List).

        Parameters:
        dimensions - a consumer that will call methods on Dimension.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #dimensions(java.util.Collection)
      • measureName

        Record.Builder measureName​(String measureName)

        Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.

        Parameters:
        measureName - Measure represents the data attribute of the time series. For example, the CPU utilization of an EC2 instance or the RPM of a wind turbine are measures.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • measureValue

        Record.Builder measureValue​(String measureValue)

        Contains the measure value for the time-series data point.

        Parameters:
        measureValue - Contains the measure value for the time-series data point.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • measureValueType

        Record.Builder measureValueType​(String measureValueType)

        Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.

        Parameters:
        measureValueType - Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MeasureValueType, MeasureValueType
      • measureValueType

        Record.Builder measureValueType​(MeasureValueType measureValueType)

        Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.

        Parameters:
        measureValueType - Contains the data type of the measure value for the time-series data point. Default type is DOUBLE. For more information, see Data types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        MeasureValueType, MeasureValueType
      • time

        Record.Builder time​(String time)

        Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is 12345 and the unit is ms, then 12345 ms have elapsed since the epoch.

        Parameters:
        time - Contains the time at which the measure value for the data point was collected. The time value plus the unit provides the time elapsed since the epoch. For example, if the time value is 12345 and the unit is ms, then 12345 ms have elapsed since the epoch.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • timeUnit

        Record.Builder timeUnit​(String timeUnit)

        The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.

        Parameters:
        timeUnit - The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TimeUnit, TimeUnit
      • timeUnit

        Record.Builder timeUnit​(TimeUnit timeUnit)

        The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.

        Parameters:
        timeUnit - The granularity of the timestamp unit. It indicates if the time value is in seconds, milliseconds, nanoseconds, or other supported values. Default is MILLISECONDS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TimeUnit, TimeUnit
      • version

        Record.Builder version​(Long version)

        64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version will still be updated. Default value is 1.

        Version must be 1 or greater, or you will receive a ValidationException error.

        Parameters:
        version - 64-bit attribute used for record updates. Write requests for duplicate data with a higher version number will update the existing measure value and version. In cases where the measure value is the same, Version will still be updated. Default value is 1.

        Version must be 1 or greater, or you will receive a ValidationException error.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • measureValues

        Record.Builder measureValues​(Collection<MeasureValue> measureValues)

        Contains the list of MeasureValue for time-series data points.

        This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

        Parameters:
        measureValues - Contains the list of MeasureValue for time-series data points.

        This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • measureValues

        Record.Builder measureValues​(MeasureValue... measureValues)

        Contains the list of MeasureValue for time-series data points.

        This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

        Parameters:
        measureValues - Contains the list of MeasureValue for time-series data points.

        This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • measureValues

        Record.Builder measureValues​(Consumer<MeasureValue.Builder>... measureValues)

        Contains the list of MeasureValue for time-series data points.

        This is only allowed for type MULTI. For scalar values, use MeasureValue attribute of the record directly.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #measureValues(List).

        Parameters:
        measureValues - a consumer that will call methods on MeasureValue.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #measureValues(java.util.Collection)