Class MetricValue
java.lang.Object
com.azure.resourcemanager.cosmos.models.MetricValue
- Direct Known Subclasses:
PercentileMetricValue
Represents metrics values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaverage()Get the average property: The average value of the metric.count()Get the count property: The number of values for the metric.maximum()Get the maximum property: The max value of the metric.minimum()Get the minimum property: The min value of the metric.Get the timestamp property: The metric timestamp (ISO-8601 format).total()Get the total property: The total value of the metric.voidvalidate()Validates the instance.
-
Constructor Details
-
MetricValue
public MetricValue()Creates an instance of MetricValue class.
-
-
Method Details
-
count
Get the count property: The number of values for the metric.- Returns:
- the count value.
-
average
Get the average property: The average value of the metric.- Returns:
- the average value.
-
maximum
Get the maximum property: The max value of the metric.- Returns:
- the maximum value.
-
minimum
Get the minimum property: The min value of the metric.- Returns:
- the minimum value.
-
timestamp
Get the timestamp property: The metric timestamp (ISO-8601 format).- Returns:
- the timestamp value.
-
total
Get the total property: The total value of the metric.- Returns:
- the total value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-