Class AdvisorInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.AdvisorInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class AdvisorInner
extends com.azure.core.management.ProxyResource
Database, Server or Elastic Pool Advisor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the advisorStatus property: Gets the status of availability of this advisor to customers.Get the autoExecuteStatus property: Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor.Get the autoExecuteStatusInheritedFrom property: Gets the resource from which current value of auto-execute status is inherited.kind()Get the kind property: Resource kind.Get the lastChecked property: Gets the time when the current resource was analyzed for recommendations by this advisor.location()Get the location property: Resource location.Get the recommendationsStatus property: Gets that status of recommendations for this advisor and reason for not having any recommendations.Get the recommendedActions property: Gets the recommended actions for this advisor.voidvalidate()Validates the instance.withAutoExecuteStatus(AutoExecuteStatus autoExecuteStatus) Set the autoExecuteStatus property: Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor.Methods inherited from class com.azure.core.management.ProxyResource
fromJson, id, name, toJson, type
-
Constructor Details
-
AdvisorInner
public AdvisorInner()Creates an instance of AdvisorInner class.
-
-
Method Details
-
kind
Get the kind property: Resource kind.- Returns:
- the kind value.
-
location
Get the location property: Resource location.- Returns:
- the location value.
-
advisorStatus
Get the advisorStatus property: Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.- Returns:
- the advisorStatus value.
-
autoExecuteStatus
Get the autoExecuteStatus property: Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'.- Returns:
- the autoExecuteStatus value.
-
withAutoExecuteStatus
Set the autoExecuteStatus property: Gets the auto-execute status (whether to let the system execute the recommendations) of this advisor. Possible values are 'Enabled' and 'Disabled'.- Parameters:
autoExecuteStatus- the autoExecuteStatus value to set.- Returns:
- the AdvisorInner object itself.
-
autoExecuteStatusInheritedFrom
Get the autoExecuteStatusInheritedFrom property: Gets the resource from which current value of auto-execute status is inherited. Auto-execute status can be set on (and inherited from) different levels in the resource hierarchy. Possible values are 'Subscription', 'Server', 'ElasticPool', 'Database' and 'Default' (when status is not explicitly set on any level).- Returns:
- the autoExecuteStatusInheritedFrom value.
-
recommendationsStatus
Get the recommendationsStatus property: Gets that status of recommendations for this advisor and reason for not having any recommendations. Possible values include, but are not limited to, 'Ok' (Recommendations available),LowActivity (not enough workload to analyze), 'DbSeemsTuned' (Database is doing well), etc.- Returns:
- the recommendationsStatus value.
-
lastChecked
Get the lastChecked property: Gets the time when the current resource was analyzed for recommendations by this advisor.- Returns:
- the lastChecked value.
-
recommendedActions
Get the recommendedActions property: Gets the recommended actions for this advisor.- Returns:
- the recommendedActions value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-