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>

public final class PercentileMetricValue extends MetricValue
Represents percentile metrics values.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of PercentileMetricValue class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the average property: The average value of the metric.
    Get the count property: The number of values for the metric.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of PercentileMetricValue from the JsonReader.
    Get the maximum property: The max value of the metric.
    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)
    Get the total property: The total value of the metric.
    void
    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

      public Double p10()
      Get the p10 property: The 10th percentile value for the metric.
      Returns:
      the p10 value.
    • p25

      public Double p25()
      Get the p25 property: The 25th percentile value for the metric.
      Returns:
      the p25 value.
    • p50

      public Double p50()
      Get the p50 property: The 50th percentile value for the metric.
      Returns:
      the p50 value.
    • p75

      public Double p75()
      Get the p75 property: The 75th percentile value for the metric.
      Returns:
      the p75 value.
    • p90

      public Double p90()
      Get the p90 property: The 90th percentile value for the metric.
      Returns:
      the p90 value.
    • p95

      public Double p95()
      Get the p95 property: The 95th percentile value for the metric.
      Returns:
      the p95 value.
    • p99

      public Double p99()
      Get the p99 property: The 99th percentile value for the metric.
      Returns:
      the p99 value.
    • total

      public Double total()
      Get the total property: The total value of the metric.
      Overrides:
      total in class MetricValue
      Returns:
      the total value.
    • timestamp

      public OffsetDateTime timestamp()
      Get the timestamp property: The metric timestamp (ISO-8601 format).
      Overrides:
      timestamp in class MetricValue
      Returns:
      the timestamp value.
    • minimum

      public Double minimum()
      Get the minimum property: The min value of the metric.
      Overrides:
      minimum in class MetricValue
      Returns:
      the minimum value.
    • maximum

      public Double maximum()
      Get the maximum property: The max value of the metric.
      Overrides:
      maximum in class MetricValue
      Returns:
      the maximum value.
    • average

      public Double average()
      Get the average property: The average value of the metric.
      Overrides:
      average in class MetricValue
      Returns:
      the average value.
    • count

      public Integer count()
      Get the count property: The number of values for the metric.
      Overrides:
      count in class MetricValue
      Returns:
      the count value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MetricValue
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MetricValue>
      Overrides:
      toJson in class MetricValue
      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.