MetricValue Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MetricValue
- com.
Implements
public class MetricValue
implements JsonSerializable<MetricValue>
Represents metrics values.
Constructor Summary
Constructor | Description |
---|---|
MetricValue() |
Creates an instance of Metric |
Method Summary
Modifier and Type | Method and Description |
---|---|
Double |
average()
Get the average property: The average value of the metric. |
Integer |
count()
Get the count property: The number of values for the metric. |
static
Metric |
fromJson(JsonReader jsonReader)
Reads an instance of Metric |
Double |
maximum()
Get the maximum property: The max value of the metric. |
Double |
minimum()
Get the minimum property: The min value of the metric. |
Offset |
timestamp()
Get the timestamp property: The metric timestamp (ISO-8601 format). |
Json |
toJson(JsonWriter jsonWriter) |
Double |
total()
Get the total property: The total value of the metric. |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
MetricValue
public MetricValue()
Creates an instance of MetricValue class.
Method Details
average
public Double average()
Get the average property: The average value of the metric.
Returns:
count
public Integer count()
Get the count property: The number of values for the metric.
Returns:
fromJson
public static MetricValue fromJson(JsonReader jsonReader)
Reads an instance of MetricValue from the JsonReader.
Parameters:
Returns:
Throws:
maximum
public Double maximum()
Get the maximum property: The max value of the metric.
Returns:
minimum
public Double minimum()
Get the minimum property: The min value of the metric.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: The metric timestamp (ISO-8601 format).
Returns:
toJson
total
public Double total()
Get the total property: The total value of the metric.
Returns:
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java