public static interface Record.Builder extends SdkPojo, CopyableBuilder<Record.Builder,Record>
| Modifier and Type | Method and Description |
|---|---|
Record.Builder |
dimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time-series data points.
|
Record.Builder |
dimensions(Consumer<Dimension.Builder>... dimensions)
Contains the list of dimensions for time-series data points.
|
Record.Builder |
dimensions(Dimension... dimensions)
Contains the list of dimensions for time-series data points.
|
Record.Builder |
measureName(String measureName)
Measure represents the data attribute of the time series.
|
Record.Builder |
measureValue(String measureValue)
Contains the measure value for the time-series data point.
|
Record.Builder |
measureValues(Collection<MeasureValue> measureValues)
Contains the list of MeasureValue for time-series data points.
|
Record.Builder |
measureValues(Consumer<MeasureValue.Builder>... measureValues)
Contains the list of MeasureValue for time-series data points.
|
Record.Builder |
measureValues(MeasureValue... measureValues)
Contains the list of MeasureValue for time-series data points.
|
Record.Builder |
measureValueType(MeasureValueType measureValueType)
Contains the data type of the measure value for the time-series data point.
|
Record.Builder |
measureValueType(String measureValueType)
Contains the data type of the measure value for the time-series data point.
|
Record.Builder |
time(String time)
Contains the time at which the measure value for the data point was collected.
|
Record.Builder |
timeUnit(String timeUnit)
The granularity of the timestamp unit.
|
Record.Builder |
timeUnit(TimeUnit timeUnit)
The granularity of the timestamp unit.
|
Record.Builder |
version(Long version)
64-bit attribute used for record updates.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildRecord.Builder dimensions(Collection<Dimension> dimensions)
Contains the list of dimensions for time-series data points.
dimensions - Contains the list of dimensions for time-series data points.Record.Builder dimensions(Dimension... dimensions)
Contains the list of dimensions for time-series data points.
dimensions - Contains the list of dimensions for time-series data points.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 theDimension.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.
dimensions - a consumer that will call methods on
Dimension.Builder#dimensions(java.util.Collection) 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.
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.Record.Builder measureValue(String measureValue)
Contains the measure value for the time-series data point.
measureValue - Contains the measure value for the time-series data point.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.
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.MeasureValueType,
MeasureValueTypeRecord.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.
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.MeasureValueType,
MeasureValueTypeRecord.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.
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.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.
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.TimeUnit,
TimeUnitRecord.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.
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.TimeUnit,
TimeUnitRecord.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.
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.
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.
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.
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.
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.
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.
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.
measureValues - a consumer that will call methods on
MeasureValue.Builder#measureValues(java.util.Collection) Copyright © 2023. All rights reserved.