QueryMetricProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.QueryMetricProperties

Implements

public final class QueryMetricProperties
implements JsonSerializable<QueryMetricProperties>

Properties of a topquery metric in one interval.

Constructor Summary

Constructor Description
QueryMetricProperties()

Creates an instance of QueryMetricProperties class.

Method Summary

Modifier and Type Method and Description
Double avg()

Get the avg property: Metric value when avg() aggregate function is used over the interval.

String displayName()

Get the displayName property: The UI appropriate name for the metric.

static QueryMetricProperties fromJson(JsonReader jsonReader)

Reads an instance of QueryMetricProperties from the JsonReader.

Double max()

Get the max property: Metric value when max() aggregate function is used over the interval.

Double min()

Get the min property: Metric value when min() aggregate function is used over the interval.

String name()

Get the name property: The name information for the metric.

Double stdev()

Get the stdev property: Metric value when stdev aggregate function is used over the interval.

Double sum()

Get the sum property: Metric value when sum() aggregate function is used over the interval.

JsonWriter toJson(JsonWriter jsonWriter)
QueryMetricUnitType unit()

Get the unit property: The unit of the metric.

void validate()

Validates the instance.

Double value()

Get the value property: The value of the metric.

Methods inherited from java.lang.Object

Constructor Details

QueryMetricProperties

public QueryMetricProperties()

Creates an instance of QueryMetricProperties class.

Method Details

avg

public Double avg()

Get the avg property: Metric value when avg() aggregate function is used over the interval.

Returns:

the avg value.

displayName

public String displayName()

Get the displayName property: The UI appropriate name for the metric.

Returns:

the displayName value.

fromJson

public static QueryMetricProperties fromJson(JsonReader jsonReader)

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.

max

public Double max()

Get the max property: Metric value when max() aggregate function is used over the interval.

Returns:

the max value.

min

public Double min()

Get the min property: Metric value when min() aggregate function is used over the interval.

Returns:

the min value.

name

public String name()

Get the name property: The name information for the metric.

Returns:

the name value.

stdev

public Double stdev()

Get the stdev property: Metric value when stdev aggregate function is used over the interval.

Returns:

the stdev value.

sum

public Double sum()

Get the sum property: Metric value when sum() aggregate function is used over the interval.

Returns:

the sum value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public QueryMetricUnitType unit()

Get the unit property: The unit of the metric.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

value

public Double value()

Get the value property: The value of the metric.

Returns:

the value value.

Applies to