RecommendedActionMetricInfo Class

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

Implements

public final class RecommendedActionMetricInfo
implements JsonSerializable<RecommendedActionMetricInfo>

Contains time series of various impacted metrics for an Azure SQL Database, Server or Elastic Pool Recommended Action.

Constructor Summary

Constructor Description
RecommendedActionMetricInfo()

Creates an instance of RecommendedActionMetricInfo class.

Method Summary

Modifier and Type Method and Description
static RecommendedActionMetricInfo fromJson(JsonReader jsonReader)

Reads an instance of RecommendedActionMetricInfo from the JsonReader.

String metricName()

Get the metricName property: Gets the name of the metric.

OffsetDateTime startTime()

Get the startTime property: Gets the start time of time interval given by this MetricInfo.

String timeGrain()

Get the timeGrain property: Gets the duration of time interval for the value given by this MetricInfo.

JsonWriter toJson(JsonWriter jsonWriter)
String unit()

Get the unit property: Gets the unit in which metric is measured.

void validate()

Validates the instance.

Double value()

Get the value property: Gets the value of the metric in the time interval given by this MetricInfo.

Methods inherited from java.lang.Object

Constructor Details

RecommendedActionMetricInfo

public RecommendedActionMetricInfo()

Creates an instance of RecommendedActionMetricInfo class.

Method Details

fromJson

public static RecommendedActionMetricInfo fromJson(JsonReader jsonReader)

Reads an instance of RecommendedActionMetricInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RecommendedActionMetricInfo 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 RecommendedActionMetricInfo.

metricName

public String metricName()

Get the metricName property: Gets the name of the metric. e.g., CPU, Number of Queries.

Returns:

the metricName value.

startTime

public OffsetDateTime startTime()

Get the startTime property: Gets the start time of time interval given by this MetricInfo.

Returns:

the startTime value.

timeGrain

public String timeGrain()

Get the timeGrain property: Gets the duration of time interval for the value given by this MetricInfo. e.g., PT1H (1 hour).

Returns:

the timeGrain value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: Gets the unit in which metric is measured. e.g., DTU, Frequency.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

value

public Double value()

Get the value property: Gets the value of the metric in the time interval given by this MetricInfo.

Returns:

the value value.

Applies to