public final class MetricValue extends Object
| Constructor and Description |
|---|
MetricValue() |
| Modifier and Type | Method and Description |
|---|---|
Double |
average()
Get the average property: the average value in the time range.
|
Double |
count()
Get the count property: the number of samples in the time range.
|
Double |
maximum()
Get the maximum property: the greatest value in the time range.
|
Double |
minimum()
Get the minimum property: the least value in the time range.
|
OffsetDateTime |
timestamp()
Get the timestamp property: the timestamp for the metric value in ISO 8601 format.
|
Double |
total()
Get the total property: the sum of all of the values in the time range.
|
void |
validate()
Validates the instance.
|
MetricValue |
withAverage(Double average)
Set the average property: the average value in the time range.
|
MetricValue |
withCount(Double count)
Set the count property: the number of samples in the time range.
|
MetricValue |
withMaximum(Double maximum)
Set the maximum property: the greatest value in the time range.
|
MetricValue |
withMinimum(Double minimum)
Set the minimum property: the least value in the time range.
|
MetricValue |
withTimestamp(OffsetDateTime timestamp)
Set the timestamp property: the timestamp for the metric value in ISO 8601 format.
|
MetricValue |
withTotal(Double total)
Set the total property: the sum of all of the values in the time range.
|
public OffsetDateTime timestamp()
public MetricValue withTimestamp(OffsetDateTime timestamp)
timestamp - the timestamp value to set.public Double average()
public MetricValue withAverage(Double average)
average - the average value to set.public Double minimum()
public MetricValue withMinimum(Double minimum)
minimum - the minimum value to set.public Double maximum()
public MetricValue withMaximum(Double maximum)
maximum - the maximum value to set.public Double total()
public MetricValue withTotal(Double total)
total - the total value to set.public Double count()
public MetricValue withCount(Double count)
count - the count value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.