Class PercentileMetricValue
java.lang.Object
com.azure.resourcemanager.cosmos.models.MetricValue
com.azure.resourcemanager.cosmos.models.PercentileMetricValue
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MetricValue>
Represents percentile metrics values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaverage()
Get the average property: The average value of the metric.count()
Get the count property: The number of values for the metric.static PercentileMetricValue
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of PercentileMetricValue from the JsonReader.maximum()
Get the maximum property: The max value of the metric.minimum()
Get the minimum property: The min value of the metric.p10()
Get the p10 property: The 10th percentile value for the metric.p25()
Get the p25 property: The 25th percentile value for the metric.p50()
Get the p50 property: The 50th percentile value for the metric.p75()
Get the p75 property: The 75th percentile value for the metric.p90()
Get the p90 property: The 90th percentile value for the metric.p95()
Get the p95 property: The 95th percentile value for the metric.p99()
Get the p99 property: The 99th percentile value for the metric.Get the timestamp property: The metric timestamp (ISO-8601 format).com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) total()
Get the total property: The total value of the metric.void
validate()
Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
PercentileMetricValue
public PercentileMetricValue()Creates an instance of PercentileMetricValue class.
-
-
Method Details
-
p10
Get the p10 property: The 10th percentile value for the metric.- Returns:
- the p10 value.
-
p25
Get the p25 property: The 25th percentile value for the metric.- Returns:
- the p25 value.
-
p50
Get the p50 property: The 50th percentile value for the metric.- Returns:
- the p50 value.
-
p75
Get the p75 property: The 75th percentile value for the metric.- Returns:
- the p75 value.
-
p90
Get the p90 property: The 90th percentile value for the metric.- Returns:
- the p90 value.
-
p95
Get the p95 property: The 95th percentile value for the metric.- Returns:
- the p95 value.
-
p99
Get the p99 property: The 99th percentile value for the metric.- Returns:
- the p99 value.
-
total
Get the total property: The total value of the metric.- Overrides:
total
in classMetricValue
- Returns:
- the total value.
-
timestamp
Get the timestamp property: The metric timestamp (ISO-8601 format).- Overrides:
timestamp
in classMetricValue
- Returns:
- the timestamp value.
-
minimum
Get the minimum property: The min value of the metric.- Overrides:
minimum
in classMetricValue
- Returns:
- the minimum value.
-
maximum
Get the maximum property: The max value of the metric.- Overrides:
maximum
in classMetricValue
- Returns:
- the maximum value.
-
average
Get the average property: The average value of the metric.- Overrides:
average
in classMetricValue
- Returns:
- the average value.
-
count
Get the count property: The number of values for the metric.- Overrides:
count
in classMetricValue
- Returns:
- the count value.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classMetricValue
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MetricValue>
- Overrides:
toJson
in classMetricValue
- Throws:
IOException
-
fromJson
public static PercentileMetricValue fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of PercentileMetricValue from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of PercentileMetricValue if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the PercentileMetricValue.
-