AdvisorInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. AdvisorInner
- com.
- com.
public final class AdvisorInner
extends ProxyResource
Database, Server or Elastic Pool Advisor.
Constructor Summary
Constructor | Description |
---|---|
AdvisorInner() |
Creates an instance of Advisor |
Method Summary
Modifier and Type | Method and Description |
---|---|
Advisor |
advisorStatus()
Get the advisor |
Auto |
autoExecuteStatus()
Get the auto |
Auto |
autoExecuteStatusInheritedFrom()
Get the auto |
static
Advisor |
fromJson(JsonReader jsonReader)
Reads an instance of Advisor |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
kind()
Get the kind property: Resource kind. |
Offset |
lastChecked()
Get the last |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: The name of the resource. |
String |
recommendationsStatus()
Get the recommendations |
List<Recommended |
recommendedActions()
Get the recommended |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Advisor |
withAutoExecuteStatus(AutoExecuteStatus autoExecuteStatus)
Set the auto |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
AdvisorInner
public AdvisorInner()
Creates an instance of AdvisorInner class.
Method Details
advisorStatus
public AdvisorStatus advisorStatus()
Get the advisorStatus property: Gets the status of availability of this advisor to customers. Possible values are 'GA', 'PublicPreview', 'LimitedPublicPreview' and 'PrivatePreview'.
Returns:
autoExecuteStatus
public AutoExecuteStatus 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:
autoExecuteStatusInheritedFrom
public AutoExecuteStatusInheritedFrom 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:
fromJson
public static AdvisorInner fromJson(JsonReader jsonReader)
Reads an instance of AdvisorInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
AdvisorInner.id()Returns:
kind
public String kind()
Get the kind property: Resource kind.
Returns:
lastChecked
public OffsetDateTime lastChecked()
Get the lastChecked property: Gets the time when the current resource was analyzed for recommendations by this advisor.
Returns:
location
public String location()
Get the location property: Resource location.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
AdvisorInner.name()Returns:
recommendationsStatus
public String 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:
recommendedActions
public List
Get the recommendedActions property: Gets the recommended actions for this advisor.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
AdvisorInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
AdvisorInner.type()Returns:
validate
public void validate()
Validates the instance.
withAutoExecuteStatus
public AdvisorInner withAutoExecuteStatus(AutoExecuteStatus autoExecuteStatus)
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:
Returns:
Applies to
Azure SDK for Java