Class RecommendedActionMetricInfo
java.lang.Object
com.azure.resourcemanager.sql.models.RecommendedActionMetricInfo
Contains time series of various impacted metrics for an Azure SQL Database, Server or Elastic Pool Recommended
Action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RecommendedActionMetricInfo class. -
Method Summary
Modifier and TypeMethodDescriptionGet the metricName property: Gets the name of the metric.Get the startTime property: Gets the start time of time interval given by this MetricInfo.Get the timeGrain property: Gets the duration of time interval for the value given by this MetricInfo.unit()Get the unit property: Gets the unit in which metric is measured.voidvalidate()Validates the instance.value()Get the value property: Gets the value of the metric in the time interval given by this MetricInfo.
-
Constructor Details
-
RecommendedActionMetricInfo
public RecommendedActionMetricInfo()Creates an instance of RecommendedActionMetricInfo class.
-
-
Method Details
-
metricName
Get the metricName property: Gets the name of the metric. e.g., CPU, Number of Queries.- Returns:
- the metricName value.
-
unit
Get the unit property: Gets the unit in which metric is measured. e.g., DTU, Frequency.- Returns:
- the unit value.
-
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.
-
startTime
Get the startTime property: Gets the start time of time interval given by this MetricInfo.- Returns:
- the startTime value.
-
value
Get the value property: Gets the value of the metric in the time interval given by this MetricInfo.- Returns:
- the value value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-