Class MetricValue
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.MetricValue
-
public final class MetricValue extends Object
Represents database metrics.
-
-
Constructor Summary
Constructors Constructor Description MetricValue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Doubleaverage()Get the average property: The average value of the metric.Integercount()Get the count property: The number of values for the metric.Doublemaximum()Get the maximum property: The max value of the metric.Doubleminimum()Get the minimum property: The min value of the metric.OffsetDateTimetimestamp()Get the timestamp property: The metric timestamp (ISO-8601 format).Doubletotal()Get the total property: The total value of the metric.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
count
public Integer count()
Get the count property: The number of values for the metric.- Returns:
- the count value.
-
average
public Double average()
Get the average property: The average value of the metric.- Returns:
- the average value.
-
maximum
public Double maximum()
Get the maximum property: The max value of the metric.- Returns:
- the maximum value.
-
minimum
public Double minimum()
Get the minimum property: The min value of the metric.- Returns:
- the minimum value.
-
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: The metric timestamp (ISO-8601 format).- Returns:
- the timestamp value.
-
total
public Double 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.
-
-