Class QueryMetricProperties

java.lang.Object
com.azure.resourcemanager.sql.models.QueryMetricProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<QueryMetricProperties>

public final class QueryMetricProperties extends Object implements com.azure.json.JsonSerializable<QueryMetricProperties>
Properties of a topquery metric in one interval.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    avg()
    Get the avg property: Metric value when avg() aggregate function is used over the interval.
    Get the displayName property: The UI appropriate name for the metric.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of QueryMetricProperties from the JsonReader.
    max()
    Get the max property: Metric value when max() aggregate function is used over the interval.
    min()
    Get the min property: Metric value when min() aggregate function is used over the interval.
    Get the name property: The name information for the metric.
    Get the stdev property: Metric value when stdev aggregate function is used over the interval.
    sum()
    Get the sum property: Metric value when sum() aggregate function is used over the interval.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: The unit of the metric.
    void
    Validates the instance.
    Get the value property: The value of the metric.

    Methods inherited from class 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

    • QueryMetricProperties

      public QueryMetricProperties()
      Creates an instance of QueryMetricProperties class.
  • Method Details

    • name

      public String name()
      Get the name property: The name information for the metric.
      Returns:
      the name value.
    • displayName

      public String displayName()
      Get the displayName property: The UI appropriate name for the metric.
      Returns:
      the displayName value.
    • unit

      public QueryMetricUnitType unit()
      Get the unit property: The unit of the metric.
      Returns:
      the unit value.
    • value

      public Double value()
      Get the value property: The value of the metric.
      Returns:
      the value value.
    • min

      public Double min()
      Get the min property: Metric value when min() aggregate function is used over the interval.
      Returns:
      the min value.
    • max

      public Double max()
      Get the max property: Metric value when max() aggregate function is used over the interval.
      Returns:
      the max value.
    • avg

      public Double avg()
      Get the avg property: Metric value when avg() aggregate function is used over the interval.
      Returns:
      the avg value.
    • sum

      public Double sum()
      Get the sum property: Metric value when sum() aggregate function is used over the interval.
      Returns:
      the sum value.
    • stdev

      public Double stdev()
      Get the stdev property: Metric value when stdev aggregate function is used over the interval.
      Returns:
      the stdev value.
    • validate

      public void validate()
      Validates the instance.
      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<QueryMetricProperties>
      Throws:
      IOException
    • fromJson

      public static QueryMetricProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of QueryMetricProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of QueryMetricProperties 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 QueryMetricProperties.