PercentileMetricValue Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. MetricValue - com.
azure. resourcemanager. cosmos. models. PercentileMetricValue
- com.
- com.
public final class PercentileMetricValue
extends MetricValue
Represents percentile metrics values.
Constructor Summary
Constructor | Description |
---|---|
PercentileMetricValue() |
Creates an instance of Percentile |
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
Percentile |
fromJson(JsonReader jsonReader)
Reads an instance of Percentile |
Double |
maximum()
Get the maximum property: The max value of the metric. |
Double |
minimum()
Get the minimum property: The min value of the metric. |
Double |
p10()
Get the p10 property: The 10th percentile value for the metric. |
Double |
p25()
Get the p25 property: The 25th percentile value for the metric. |
Double |
p50()
Get the p50 property: The 50th percentile value for the metric. |
Double |
p75()
Get the p75 property: The 75th percentile value for the metric. |
Double |
p90()
Get the p90 property: The 90th percentile value for the metric. |
Double |
p95()
Get the p95 property: The 95th percentile value for the metric. |
Double |
p99()
Get the p99 property: The 99th percentile value for 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 MetricValue
Methods inherited from java.lang.Object
Constructor Details
PercentileMetricValue
public PercentileMetricValue()
Creates an instance of PercentileMetricValue class.
Method Details
average
public Double average()
Get the average property: The average value of the metric.
Overrides:
PercentileMetricValue.average()Returns:
count
public Integer count()
Get the count property: The number of values for the metric.
Overrides:
PercentileMetricValue.count()Returns:
fromJson
public static PercentileMetricValue fromJson(JsonReader jsonReader)
Reads an instance of PercentileMetricValue from the JsonReader.
Parameters:
Returns:
Throws:
maximum
public Double maximum()
Get the maximum property: The max value of the metric.
Overrides:
PercentileMetricValue.maximum()Returns:
minimum
public Double minimum()
Get the minimum property: The min value of the metric.
Overrides:
PercentileMetricValue.minimum()Returns:
p10
public Double p10()
Get the p10 property: The 10th percentile value for the metric.
Returns:
p25
public Double p25()
Get the p25 property: The 25th percentile value for the metric.
Returns:
p50
public Double p50()
Get the p50 property: The 50th percentile value for the metric.
Returns:
p75
public Double p75()
Get the p75 property: The 75th percentile value for the metric.
Returns:
p90
public Double p90()
Get the p90 property: The 90th percentile value for the metric.
Returns:
p95
public Double p95()
Get the p95 property: The 95th percentile value for the metric.
Returns:
p99
public Double p99()
Get the p99 property: The 99th percentile value for the metric.
Returns:
timestamp
public OffsetDateTime timestamp()
Get the timestamp property: The metric timestamp (ISO-8601 format).
Overrides:
PercentileMetricValue.timestamp()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
PercentileMetricValue.toJson(JsonWriter jsonWriter)Parameters:
Throws:
total
public Double total()
Get the total property: The total value of the metric.
Overrides:
PercentileMetricValue.total()Returns:
validate
public void validate()
Validates the instance.
Overrides:
PercentileMetricValue.validate()Applies to
Azure SDK for Java