Class MetricInner
- java.lang.Object
-
- com.azure.resourcemanager.sql.fluent.models.MetricInner
-
public final class MetricInner extends Object
Database metrics.
-
-
Constructor Summary
Constructors Constructor Description MetricInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTimeendTime()Get the endTime property: The end time for the metric (ISO-8601 format).List<MetricValue>metricValues()Get the metricValues property: The metric values for the specified time window and timestep.MetricNamename()Get the name property: The name information for the metric.OffsetDateTimestartTime()Get the startTime property: The start time for the metric (ISO-8601 format).StringtimeGrain()Get the timeGrain property: The time step to be used to summarize the metric values.UnitTypeunit()Get the unit property: The unit of the metric.voidvalidate()Validates the instance.
-
-
-
Method Detail
-
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time for the metric (ISO-8601 format).- Returns:
- the startTime value.
-
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time for the metric (ISO-8601 format).- Returns:
- the endTime value.
-
timeGrain
public String timeGrain()
Get the timeGrain property: The time step to be used to summarize the metric values.- Returns:
- the timeGrain value.
-
unit
public UnitType unit()
Get the unit property: The unit of the metric.- Returns:
- the unit value.
-
name
public MetricName name()
Get the name property: The name information for the metric.- Returns:
- the name value.
-
metricValues
public List<MetricValue> metricValues()
Get the metricValues property: The metric values for the specified time window and timestep.- Returns:
- the metricValues value.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-