public final class MetricValue extends Object
Constructor and Description |
---|
MetricValue(OffsetDateTime timeStamp,
Double average,
Double minimum,
Double maximum,
Double total,
Double count)
Creates an instance of
MetricValue . |
Modifier and Type | Method and Description |
---|---|
Double |
getAverage()
Returns the average value in the time range.
|
Double |
getCount()
Returns the number of samples in the time range.
|
Double |
getMaximum()
Returns the greatest value in the time range.
|
Double |
getMinimum()
Returns the least value in the time range.
|
OffsetDateTime |
getTimeStamp()
Returns the timestamp for the metric value in ISO 8601 format.
|
Double |
getTotal()
Returns the sum of all of the values in the time range.
|
public MetricValue(OffsetDateTime timeStamp, Double average, Double minimum, Double maximum, Double total, Double count)
MetricValue
.timeStamp
- the timestamp for the metric value in ISO 8601 format.average
- the average value in the time range.minimum
- the least value in the time range.maximum
- the greatest value in the time range.total
- the sum of all of the values in the time range.count
- the number of samples in the time range.public OffsetDateTime getTimeStamp()
public Double getAverage()
public Double getMinimum()
public Double getMaximum()
public Double getTotal()
public Double getCount()
Copyright © 2021 Microsoft Corporation. All rights reserved.