Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Datapoint |
build() |
Datapoint.Builder |
copy(Datapoint model) |
Datapoint.Builder |
count(Integer count)
The number of occurrences of the associated value in the set of data.
|
Datapoint.Builder |
timestamp(Date timestamp)
Timestamp for this metric value.
|
Datapoint.Builder |
value(Double value)
Numeric value of the metric.
|
public Datapoint.Builder timestamp(Date timestamp)
Timestamp for this metric value. Format defined by RFC3339. For a data point to be posted, its timestamp must be near current time (less than two hours in the past and less than 10 minutes in the future).
Example: 2023-02-01T01:02:29.600Z
timestamp
- the value to setpublic Datapoint.Builder value(Double value)
Numeric value of the metric.
Example: 10.23
value
- the value to setpublic Datapoint.Builder count(Integer count)
The number of occurrences of the associated value in the set of data.
Default is 1. Value must be greater than zero.
count
- the value to setpublic Datapoint build()
public Datapoint.Builder copy(Datapoint model)
Copyright © 2016–2024. All rights reserved.