Class: Azure::SQL::Mgmt::V2015_05_01_preview::Models::Advisor

Inherits:
ProxyResource show all
Includes:
MsRestAzure
Defined in:
lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb

Overview

Database, Server or Elastic Pool Advisor.

Instance Attribute Summary collapse

Attributes inherited from Resource

#id, #name, #type

Class Method Summary collapse

Methods inherited from Resource

#resource_group

Instance Attribute Details

#advisor_statusAdvisorStatus

to customers. Possible values are ‘GA’, ‘PublicPreview’, ‘LimitedPublicPreview’ and ‘PrivatePreview’. Possible values include: ‘GA’, ‘PublicPreview’, ‘LimitedPublicPreview’, ‘PrivatePreview’



25
26
27
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 25

def advisor_status
  @advisor_status
end

#auto_execute_statusAutoExecuteStatus

let the system execute the recommendations) of this advisor. Possible values are ‘Enabled’ and ‘Disabled’. Possible values include: ‘Enabled’, ‘Disabled’, ‘Default’



31
32
33
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 31

def auto_execute_status
  @auto_execute_status
end

#auto_execute_status_inherited_fromAutoExecuteStatusInheritedFrom

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). Possible values include: ‘Default’, ‘Subscription’, ‘Server’, ‘ElasticPool’, ‘Database’



40
41
42
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 40

def auto_execute_status_inherited_from
  @auto_execute_status_inherited_from
end

#kindString



16
17
18
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 16

def kind
  @kind
end

#last_checkedDateTime

for recommendations by this advisor.



51
52
53
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 51

def last_checked
  @last_checked
end

#locationString



19
20
21
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 19

def location
  @location
end

#recommendations_statusString

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.



47
48
49
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 47

def recommendations_status
  @recommendations_status
end

this advisor.



55
56
57
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 55

def recommended_actions
  @recommended_actions
end

Class Method Details

.mapperObject

Mapper for Advisor class as Ruby Hash. This will be used for serialization/deserialization.



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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
# File 'lib/2015-05-01-preview/generated/azure_mgmt_sql/models/advisor.rb', line 62

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Advisor',
    type: {
      name: 'Composite',
      class_name: 'Advisor',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        kind: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        advisor_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.advisorStatus',
          type: {
            name: 'Enum',
            module: 'AdvisorStatus'
          }
        },
        auto_execute_status: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.autoExecuteStatus',
          type: {
            name: 'Enum',
            module: 'AutoExecuteStatus'
          }
        },
        auto_execute_status_inherited_from: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.autoExecuteStatusInheritedFrom',
          type: {
            name: 'Enum',
            module: 'AutoExecuteStatusInheritedFrom'
          }
        },
        recommendations_status: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.recommendationsStatus',
          type: {
            name: 'String'
          }
        },
        last_checked: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.lastChecked',
          type: {
            name: 'DateTime'
          }
        },
        recommended_actions: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.recommendedActions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'RecommendedActionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'RecommendedAction'
                }
            }
          }
        }
      }
    }
  }
end