Class: Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionStateInfo
- Inherits:
-
Object
- Object
- Azure::SQL::Mgmt::V2015_05_01_preview::Models::RecommendedActionStateInfo
- Includes:
- MsRestAzure
- Defined in:
- lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb
Overview
Contains information of current state for an Azure SQL Database, Server or Elastic Pool Recommended Action.
Instance Attribute Summary collapse
-
#action_initiated_by ⇒ RecommendedActionInitiatedBy
of this recommended action.
-
#current_value ⇒ RecommendedActionCurrentState
action is in.
-
#last_modified ⇒ DateTime
Gets the time when the state was last modified.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for RecommendedActionStateInfo class as Ruby Hash.
Instance Attribute Details
#action_initiated_by ⇒ RecommendedActionInitiatedBy
of this recommended action. Possible Value are: User -> When user explicitly notified system to apply the recommended action. System -> When auto-execute status of this advisor was set to ‘Enabled’, in which case the system applied it. Possible values include: ‘User’, ‘System’
40 41 42 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb', line 40 def action_initiated_by @action_initiated_by end |
#current_value ⇒ RecommendedActionCurrentState
action is in. Some commonly used states are: Active -> recommended action is active and no action has been taken yet. Pending -> recommended action is approved for and is awaiting execution. Executing -> recommended action is being applied on the user database. Verifying -> recommended action was applied and is being verified of its usefulness by the system. Success -> recommended action was applied and improvement found during verification. Pending Revert -> verification found little or no improvement so recommended action is queued for revert or user has manually reverted. Reverting -> changes made while applying recommended action are being reverted on the user database. Reverted -> successfully reverted the changes made by recommended action on user database. Ignored -> user explicitly ignored/discarded the recommended action. Possible values include: ‘Active’, ‘Pending’, ‘Executing’, ‘Verifying’, ‘PendingRevert’, ‘RevertCancelled’, ‘Reverting’, ‘Reverted’, ‘Ignored’, ‘Expired’, ‘Monitoring’, ‘Resolved’, ‘Success’, ‘Error’
33 34 35 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb', line 33 def current_value @current_value end |
#last_modified ⇒ DateTime
Returns Gets the time when the state was last modified.
43 44 45 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb', line 43 def last_modified @last_modified end |
Class Method Details
.mapper ⇒ Object
Mapper for RecommendedActionStateInfo class as Ruby Hash. This will be used for serialization/deserialization.
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/recommended_action_state_info.rb', line 50 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RecommendedActionStateInfo', type: { name: 'Composite', class_name: 'RecommendedActionStateInfo', model_properties: { current_value: { client_side_validation: true, required: true, serialized_name: 'currentValue', type: { name: 'String' } }, action_initiated_by: { client_side_validation: true, required: false, read_only: true, serialized_name: 'actionInitiatedBy', type: { name: 'Enum', module: 'RecommendedActionInitiatedBy' } }, last_modified: { client_side_validation: true, required: false, read_only: true, serialized_name: 'lastModified', type: { name: 'DateTime' } } } } } end |