RecommendedActionMetricInfo Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. RecommendedActionMetricInfo
- com.
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.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Recommended |
fromJson(JsonReader jsonReader)
Reads an instance of Recommended |
| String |
metricName()
Get the metric |
|
Offset |
startTime()
Get the start |
| String |
timeGrain()
Get the time |
|
Json |
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 Metric |
Methods inherited from java.lang.Object
Method Details
fromJson
public static RecommendedActionMetricInfo fromJson(JsonReader jsonReader)
Reads an instance of RecommendedActionMetricInfo from the JsonReader.
Parameters:
Returns:
Throws:
metricName
public String metricName()
Get the metricName property: Gets the name of the metric. e.g., CPU, Number of Queries.
Returns:
startTime
public OffsetDateTime startTime()
Get the startTime property: Gets the start time of time interval given by this MetricInfo.
Returns:
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:
toJson
unit
public String unit()
Get the unit property: Gets the unit in which metric is measured. e.g., DTU, Frequency.
Returns:
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: