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 -
Method Summary
Modifier and TypeMethodDescriptionavg()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.static QueryMetricPropertiesfromJson(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.name()Get the name property: The name information for the metric.stdev()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) unit()Get the unit property: The unit of the metric.voidvalidate()Validates the instance.value()Get the value property: The value of the metric.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Get the name property: The name information for the metric.- Returns:
- the name value.
-
displayName
Get the displayName property: The UI appropriate name for the metric.- Returns:
- the displayName value.
-
unit
Get the unit property: The unit of the metric.- Returns:
- the unit value.
-
value
Get the value property: The value of the metric.- Returns:
- the value value.
-
min
Get the min property: Metric value when min() aggregate function is used over the interval.- Returns:
- the min value.
-
max
Get the max property: Metric value when max() aggregate function is used over the interval.- Returns:
- the max value.
-
avg
Get the avg property: Metric value when avg() aggregate function is used over the interval.- Returns:
- the avg value.
-
sum
Get the sum property: Metric value when sum() aggregate function is used over the interval.- Returns:
- the sum value.
-
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
- Specified by:
toJsonin interfacecom.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.
-