Class RecommendedActionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.RecommendedActionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class RecommendedActionInner
extends com.azure.core.management.ProxyResource
Database, Server or Elastic Pool Recommended Action.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of RecommendedActionInner class. -
Method Summary
Modifier and TypeMethodDescriptiondetails()Get the details property: Gets additional details specific to this recommended action.Get the errorDetails property: Gets the error details if and why this recommended action is put to error state.Get the estimatedImpact property: Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change.Get the executeActionDuration property: Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation.Get the executeActionInitiatedBy property: Gets if approval for applying this recommended action was given by user/system.Get the executeActionInitiatedTime property: Gets the time when this recommended action was approved for execution.Get the executeActionStartTime property: Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time.static RecommendedActionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RecommendedActionInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the implementationDetails property: Gets the implementation details of this recommended action for user to apply it manually.Get the isArchivedAction property: Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.Get the isExecutableAction property: Gets if this recommended action is actionable by user.Get the isRevertableAction property: Gets if changes applied by this recommended action can be reverted by user.kind()Get the kind property: Resource kind.Get the lastRefresh property: Gets time when this recommended action was last refreshed.Get the linkedObjects property: Gets the linked objects, if any.location()Get the location property: Resource location.name()Get the name property: The name of the resource.Get the observedImpact property: Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change.Get the recommendationReason property: Gets the reason for recommending this action. e.g., DuplicateIndex.Get the revertActionDuration property: Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.Get the revertActionInitiatedBy property: Gets if approval for reverting this recommended action was given by user/system.Get the revertActionInitiatedTime property: Gets the time when this recommended action was approved for revert.Get the revertActionStartTime property: Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.score()Get the score property: Gets the impact of this recommended action.state()Get the state property: Gets the info of the current state the recommended action is in.Get the timeSeries property: Gets the time series info of metrics for this recommended action e.g., CPU consumption time series.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.Get the validSince property: Gets the time since when this recommended action is valid.Set the state property: Gets the info of the current state the recommended action is in.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
RecommendedActionInner
public RecommendedActionInner()Creates an instance of RecommendedActionInner class.
-
-
Method Details
-
kind
-
location
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
recommendationReason
Get the recommendationReason property: Gets the reason for recommending this action. e.g., DuplicateIndex.- Returns:
- the recommendationReason value.
-
validSince
Get the validSince property: Gets the time since when this recommended action is valid.- Returns:
- the validSince value.
-
lastRefresh
Get the lastRefresh property: Gets time when this recommended action was last refreshed.- Returns:
- the lastRefresh value.
-
state
Get the state property: Gets the info of the current state the recommended action is in.- Returns:
- the state value.
-
withState
Set the state property: Gets the info of the current state the recommended action is in.- Parameters:
state- the state value to set.- Returns:
- the RecommendedActionInner object itself.
-
isExecutableAction
Get the isExecutableAction property: Gets if this recommended action is actionable by user.- Returns:
- the isExecutableAction value.
-
isRevertableAction
Get the isRevertableAction property: Gets if changes applied by this recommended action can be reverted by user.- Returns:
- the isRevertableAction value.
-
isArchivedAction
Get the isArchivedAction property: Gets if this recommended action was suggested some time ago but user chose to ignore this and system added a new recommended action again.- Returns:
- the isArchivedAction value.
-
executeActionStartTime
Get the executeActionStartTime property: Gets the time when system started applying this recommended action on the user resource. e.g., index creation start time.- Returns:
- the executeActionStartTime value.
-
executeActionDuration
Get the executeActionDuration property: Gets the time taken for applying this recommended action on user resource. e.g., time taken for index creation.- Returns:
- the executeActionDuration value.
-
revertActionStartTime
Get the revertActionStartTime property: Gets the time when system started reverting changes of this recommended action on user resource. e.g., time when index drop is executed.- Returns:
- the revertActionStartTime value.
-
revertActionDuration
Get the revertActionDuration property: Gets the time taken for reverting changes of this recommended action on user resource. e.g., time taken for dropping the created index.- Returns:
- the revertActionDuration value.
-
executeActionInitiatedBy
Get the executeActionInitiatedBy property: Gets if approval for applying this recommended action was given by user/system.- Returns:
- the executeActionInitiatedBy value.
-
executeActionInitiatedTime
Get the executeActionInitiatedTime property: Gets the time when this recommended action was approved for execution.- Returns:
- the executeActionInitiatedTime value.
-
revertActionInitiatedBy
Get the revertActionInitiatedBy property: Gets if approval for reverting this recommended action was given by user/system.- Returns:
- the revertActionInitiatedBy value.
-
revertActionInitiatedTime
Get the revertActionInitiatedTime property: Gets the time when this recommended action was approved for revert.- Returns:
- the revertActionInitiatedTime value.
-
score
Get the score property: Gets the impact of this recommended action. Possible values are 1 - Low impact, 2 - Medium Impact and 3 - High Impact.- Returns:
- the score value.
-
implementationDetails
Get the implementationDetails property: Gets the implementation details of this recommended action for user to apply it manually.- Returns:
- the implementationDetails value.
-
errorDetails
Get the errorDetails property: Gets the error details if and why this recommended action is put to error state.- Returns:
- the errorDetails value.
-
estimatedImpact
Get the estimatedImpact property: Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change.- Returns:
- the estimatedImpact value.
-
observedImpact
Get the observedImpact property: Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change.- Returns:
- the observedImpact value.
-
timeSeries
Get the timeSeries property: Gets the time series info of metrics for this recommended action e.g., CPU consumption time series.- Returns:
- the timeSeries value.
-
linkedObjects
-
details
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static RecommendedActionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of RecommendedActionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RecommendedActionInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RecommendedActionInner.
-