MetricInner Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. fluent. models. MetricInner
- com.
Implements
public class MetricInner
implements JsonSerializable<MetricInner>
Metric data.
Constructor Summary
Constructor | Description |
---|---|
MetricInner() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endTime()
Get the end |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
List<Metric |
metricValues()
Get the metric |
Metric |
name()
Get the name property: The name information for the metric. |
Offset |
startTime()
Get the start |
String |
timeGrain()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
Unit |
unit()
Get the unit property: The unit of the metric. |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
MetricInner
public MetricInner()
Creates an instance of MetricInner class.
Method Details
endTime
public OffsetDateTime endTime()
Get the endTime property: The end time for the metric (ISO-8601 format).
Returns:
fromJson
public static MetricInner fromJson(JsonReader jsonReader)
Reads an instance of MetricInner from the JsonReader.
Parameters:
Returns:
Throws:
metricValues
public List
Get the metricValues property: The metric values for the specified time window and timestep.
Returns:
name
public MetricName name()
Get the name property: The name information for the metric.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: The start time for the metric (ISO-8601 format).
Returns:
timeGrain
public String timeGrain()
Get the timeGrain property: The time grain to be used to summarize the metric values.
Returns:
toJson
unit
public UnitType unit()
Get the unit property: The unit of the metric.
Returns:
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java