Package com.azure.monitor.query.models
Class MetricValue
java.lang.Object
com.azure.monitor.query.models.MetricValue
Represents a metric value.
-
Constructor Summary
ConstructorDescriptionMetricValue
(OffsetDateTime timeStamp, Double average, Double minimum, Double maximum, Double total, Double count) Creates an instance ofMetricValue
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the average value in the time range.getCount()
Returns the number of samples in the time range.Returns the greatest value in the time range.Returns the least value in the time range.Returns the timestamp for the metric value in ISO 8601 format.getTotal()
Returns the sum of all of the values in the time range.
-
Constructor Details
-
MetricValue
public MetricValue(OffsetDateTime timeStamp, Double average, Double minimum, Double maximum, Double total, Double count) Creates an instance ofMetricValue
.- Parameters:
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.
-
-
Method Details
-
getTimeStamp
Returns the timestamp for the metric value in ISO 8601 format.- Returns:
- the timestamp for the metric value in ISO 8601 format.
-
getAverage
Returns the average value in the time range.- Returns:
- the average value in the time range.
-
getMinimum
Returns the least value in the time range.- Returns:
- the least value in the time range.
-
getMaximum
Returns the greatest value in the time range.- Returns:
- the greatest value in the time range.
-
getTotal
Returns the sum of all of the values in the time range.- Returns:
- the sum of all of the values in the time range.
-
getCount
Returns the number of samples in the time range.- Returns:
- the number of samples in the time range.
-