RecommendedActionInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. RecommendedActionInner
- com.
- com.
public final class RecommendedActionInner
extends ProxyResource
Database, Server or Elastic Pool Recommended Action.
Constructor Summary
Constructor | Description |
---|---|
RecommendedActionInner() |
Creates an instance of Recommended |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
details()
Get the details property: Gets additional details specific to this recommended action. |
Recommended |
errorDetails()
Get the error |
List<Recommended |
estimatedImpact()
Get the estimated |
Duration |
executeActionDuration()
Get the execute |
Recommended |
executeActionInitiatedBy()
Get the execute |
Offset |
executeActionInitiatedTime()
Get the execute |
Offset |
executeActionStartTime()
Get the execute |
static
Recommended |
fromJson(JsonReader jsonReader)
Reads an instance of Recommended |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Recommended |
implementationDetails()
Get the implementation |
Boolean |
isArchivedAction()
Get the is |
Boolean |
isExecutableAction()
Get the is |
Boolean |
isRevertableAction()
Get the is |
String |
kind()
Get the kind property: Resource kind. |
Offset |
lastRefresh()
Get the last |
List<String> |
linkedObjects()
Get the linked |
String |
location()
Get the location property: Resource location. |
String |
name()
Get the name property: The name of the resource. |
List<Recommended |
observedImpact()
Get the observed |
String |
recommendationReason()
Get the recommendation |
Duration |
revertActionDuration()
Get the revert |
Recommended |
revertActionInitiatedBy()
Get the revert |
Offset |
revertActionInitiatedTime()
Get the revert |
Offset |
revertActionStartTime()
Get the revert |
Integer |
score()
Get the score property: Gets the impact of this recommended action. |
Recommended |
state()
Get the state property: Gets the info of the current state the recommended action is in. |
List<Recommended |
timeSeries()
Get the time |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
Offset |
validSince()
Get the valid |
void |
validate()
Validates the instance. |
Recommended |
withState(RecommendedActionStateInfo state)
Set the state property: Gets the info of the current state the recommended action is in. |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
RecommendedActionInner
public RecommendedActionInner()
Creates an instance of RecommendedActionInner class.
Method Details
details
public Map
Get the details property: Gets additional details specific to this recommended action.
Returns:
errorDetails
public RecommendedActionErrorInfo errorDetails()
Get the errorDetails property: Gets the error details if and why this recommended action is put to error state.
Returns:
estimatedImpact
public List
Get the estimatedImpact property: Gets the estimated impact info for this recommended action e.g., Estimated CPU gain, Estimated Disk Space change.
Returns:
executeActionDuration
public Duration 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:
executeActionInitiatedBy
public RecommendedActionInitiatedBy executeActionInitiatedBy()
Get the executeActionInitiatedBy property: Gets if approval for applying this recommended action was given by user/system.
Returns:
executeActionInitiatedTime
public OffsetDateTime executeActionInitiatedTime()
Get the executeActionInitiatedTime property: Gets the time when this recommended action was approved for execution.
Returns:
executeActionStartTime
public OffsetDateTime 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:
fromJson
public static RecommendedActionInner fromJson(JsonReader jsonReader)
Reads an instance of RecommendedActionInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
RecommendedActionInner.id()Returns:
implementationDetails
public RecommendedActionImplementationInfo implementationDetails()
Get the implementationDetails property: Gets the implementation details of this recommended action for user to apply it manually.
Returns:
isArchivedAction
public Boolean 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:
isExecutableAction
public Boolean isExecutableAction()
Get the isExecutableAction property: Gets if this recommended action is actionable by user.
Returns:
isRevertableAction
public Boolean isRevertableAction()
Get the isRevertableAction property: Gets if changes applied by this recommended action can be reverted by user.
Returns:
kind
public String kind()
Get the kind property: Resource kind.
Returns:
lastRefresh
public OffsetDateTime lastRefresh()
Get the lastRefresh property: Gets time when this recommended action was last refreshed.
Returns:
linkedObjects
public List
Get the linkedObjects property: Gets the linked objects, if any.
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:
RecommendedActionInner.name()Returns:
observedImpact
public List
Get the observedImpact property: Gets the observed/actual impact info for this recommended action e.g., Actual CPU gain, Actual Disk Space change.
Returns:
recommendationReason
public String recommendationReason()
Get the recommendationReason property: Gets the reason for recommending this action. e.g., DuplicateIndex.
Returns:
revertActionDuration
public Duration 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:
revertActionInitiatedBy
public RecommendedActionInitiatedBy revertActionInitiatedBy()
Get the revertActionInitiatedBy property: Gets if approval for reverting this recommended action was given by user/system.
Returns:
revertActionInitiatedTime
public OffsetDateTime revertActionInitiatedTime()
Get the revertActionInitiatedTime property: Gets the time when this recommended action was approved for revert.
Returns:
revertActionStartTime
public OffsetDateTime 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:
score
public Integer 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:
state
public RecommendedActionStateInfo state()
Get the state property: Gets the info of the current state the recommended action is in.
Returns:
timeSeries
public List
Get the timeSeries property: Gets the time series info of metrics for this recommended action e.g., CPU consumption time series.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RecommendedActionInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
RecommendedActionInner.type()Returns:
validSince
public OffsetDateTime validSince()
Get the validSince property: Gets the time since when this recommended action is valid.
Returns:
validate
public void validate()
Validates the instance.
withState
public RecommendedActionInner withState(RecommendedActionStateInfo state)
Set the state property: Gets the info of the current state the recommended action is in.
Parameters:
Returns:
Applies to
Azure SDK for Java