共用方式為


RecommendedActionStateInfo Class

Definition

Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action.

public class RecommendedActionStateInfo
type RecommendedActionStateInfo = class
Public Class RecommendedActionStateInfo
Inheritance
RecommendedActionStateInfo

Constructors

RecommendedActionStateInfo()

Initializes a new instance of the RecommendedActionStateInfo class.

RecommendedActionStateInfo(String, Nullable<RecommendedActionInitiatedBy>, Nullable<DateTime>)

Initializes a new instance of the RecommendedActionStateInfo class.

Properties

ActionInitiatedBy

Gets who initiated the execution of this recommended action. Possible Value are: User -&gt; When user explicity notified system to apply the recommended action. System -&gt; When auto-execute status of this advisor was set to 'Enabled', in which case the system applied it. Possible values include: 'User', 'System'

CurrentValue

Gets or sets current state the recommended action is in. Some commonly used states are: Active -&gt; recommended action is active and no action has been taken yet. Pending -&gt; recommended action is approved for and is awaiting execution. Executing -&gt; recommended action is being applied on the user database. Verifying -&gt; recommended action was applied and is being verified of its usefulness by the system. Success -&gt; recommended action was applied and improvement found during verification. Pending Revert -&gt; verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -&gt; changes made while applying recommended action are being reverted on the user database. Reverted -&gt; successfully reverted the changes made by recommended action on user database. Ignored -&gt; user explicitly ignored/discarded the recommended action. Possible values include: 'Active', 'Pending', 'Executing', 'Verifying', 'PendingRevert', 'RevertCancelled', 'Reverting', 'Reverted', 'Ignored', 'Expired', 'Monitoring', 'Resolved', 'Success', 'Error'

LastModified

Gets the time when the state was last modified

Methods

Validate()

Validate the object.

Applies to