Class: Azure::Profiles::Latest::Monitor::Mgmt::MonitorManagementClass
- Inherits:
-
Object
- Object
- Azure::Profiles::Latest::Monitor::Mgmt::MonitorManagementClass
- Defined in:
- lib/latest/modules/monitor_profile_module.rb
Defined Under Namespace
Classes: ModelClasses
Instance Attribute Summary collapse
-
#action_groups ⇒ Object
readonly
Returns the value of attribute action_groups.
-
#activity_log_alerts ⇒ Object
readonly
Returns the value of attribute activity_log_alerts.
-
#activity_logs ⇒ Object
readonly
Returns the value of attribute activity_logs.
-
#alert_rule_incidents ⇒ Object
readonly
Returns the value of attribute alert_rule_incidents.
-
#alert_rules ⇒ Object
readonly
Returns the value of attribute alert_rules.
-
#autoscale_settings ⇒ Object
readonly
Returns the value of attribute autoscale_settings.
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#baselines ⇒ Object
readonly
Returns the value of attribute baselines.
-
#configurable ⇒ Object
readonly
Returns the value of attribute configurable.
-
#diagnostic_settings_category_operations ⇒ Object
readonly
Returns the value of attribute diagnostic_settings_category_operations.
-
#diagnostic_settings_operations ⇒ Object
readonly
Returns the value of attribute diagnostic_settings_operations.
-
#event_categories ⇒ Object
readonly
Returns the value of attribute event_categories.
-
#log_profiles ⇒ Object
readonly
Returns the value of attribute log_profiles.
-
#metric_alerts ⇒ Object
readonly
Returns the value of attribute metric_alerts.
-
#metric_alerts_status ⇒ Object
readonly
Returns the value of attribute metric_alerts_status.
-
#metric_baseline ⇒ Object
readonly
Returns the value of attribute metric_baseline.
-
#metric_definitions ⇒ Object
readonly
Returns the value of attribute metric_definitions.
-
#metric_namespaces ⇒ Object
readonly
Returns the value of attribute metric_namespaces.
-
#metrics ⇒ Object
readonly
Returns the value of attribute metrics.
-
#model_classes ⇒ Object
readonly
Returns the value of attribute model_classes.
-
#operations ⇒ Object
readonly
Returns the value of attribute operations.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#scheduled_query_rules ⇒ Object
readonly
Returns the value of attribute scheduled_query_rules.
-
#subscription_diagnostic_settings_operations ⇒ Object
readonly
Returns the value of attribute subscription_diagnostic_settings_operations.
-
#tenant_activity_logs ⇒ Object
readonly
Returns the value of attribute tenant_activity_logs.
-
#vminsights ⇒ Object
readonly
Returns the value of attribute vminsights.
Instance Method Summary collapse
- #add_telemetry(client) ⇒ Object
-
#initialize(configurable, base_url = nil, options = nil) ⇒ MonitorManagementClass
constructor
A new instance of MonitorManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(configurable, base_url = nil, options = nil) ⇒ MonitorManagementClass
Returns a new instance of MonitorManagementClass.
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 203 def initialize(configurable, base_url=nil, =nil) @configurable, @base_url, @options = configurable, base_url, @client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_0.respond_to?(:subscription_id)) @client_0.subscription_id = configurable.subscription_id end add_telemetry(@client_0) @activity_logs = @client_0.activity_logs @autoscale_settings = @client_0.autoscale_settings @event_categories = @client_0.event_categories @operations = @client_0.operations @tenant_activity_logs = @client_0.tenant_activity_logs @client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_1.respond_to?(:subscription_id)) @client_1.subscription_id = configurable.subscription_id end add_telemetry(@client_1) @alert_rule_incidents = @client_1.alert_rule_incidents @alert_rules = @client_1.alert_rules @log_profiles = @client_1.log_profiles @client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_2.respond_to?(:subscription_id)) @client_2.subscription_id = configurable.subscription_id end add_telemetry(@client_2) @activity_log_alerts = @client_2.activity_log_alerts @client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_3.respond_to?(:subscription_id)) @client_3.subscription_id = configurable.subscription_id end add_telemetry(@client_3) @diagnostic_settings_category_operations = @client_3.diagnostic_settings_category_operations @diagnostic_settings_operations = @client_3.diagnostic_settings_operations @subscription_diagnostic_settings_operations = @client_3.subscription_diagnostic_settings_operations @client_4 = Azure::Monitor::Mgmt::V2017_11_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_4.respond_to?(:subscription_id)) @client_4.subscription_id = configurable.subscription_id end add_telemetry(@client_4) @metric_baseline = @client_4.metric_baseline @client_5 = Azure::Monitor::Mgmt::V2017_12_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_5.respond_to?(:subscription_id)) @client_5.subscription_id = configurable.subscription_id end add_telemetry(@client_5) @metric_namespaces = @client_5.metric_namespaces @client_6 = Azure::Monitor::Mgmt::V2018_01_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_6.respond_to?(:subscription_id)) @client_6.subscription_id = configurable.subscription_id end add_telemetry(@client_6) @metric_definitions = @client_6.metric_definitions @metrics = @client_6.metrics @client_7 = Azure::Monitor::Mgmt::V2018_03_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_7.respond_to?(:subscription_id)) @client_7.subscription_id = configurable.subscription_id end add_telemetry(@client_7) @metric_alerts = @client_7.metric_alerts @metric_alerts_status = @client_7.metric_alerts_status @client_8 = Azure::Monitor::Mgmt::V2018_04_16::MonitorClient.new(configurable.credentials, base_url, ) if(@client_8.respond_to?(:subscription_id)) @client_8.subscription_id = configurable.subscription_id end add_telemetry(@client_8) @scheduled_query_rules = @client_8.scheduled_query_rules @client_9 = Azure::Monitor::Mgmt::V2018_11_27_preview::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_9.respond_to?(:subscription_id)) @client_9.subscription_id = configurable.subscription_id end add_telemetry(@client_9) @vminsights = @client_9.vminsights @client_10 = Azure::Monitor::Mgmt::V2019_03_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_10.respond_to?(:subscription_id)) @client_10.subscription_id = configurable.subscription_id end add_telemetry(@client_10) @action_groups = @client_10.action_groups @baselines = @client_10.baselines @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 302 def method_missing(method, *args) if @client_10.respond_to?method @client_10.send(method, *args) elsif @client_9.respond_to?method @client_9.send(method, *args) elsif @client_8.respond_to?method @client_8.send(method, *args) elsif @client_7.respond_to?method @client_7.send(method, *args) elsif @client_6.respond_to?method @client_6.send(method, *args) elsif @client_5.respond_to?method @client_5.send(method, *args) elsif @client_4.respond_to?method @client_4.send(method, *args) elsif @client_3.respond_to?method @client_3.send(method, *args) elsif @client_2.respond_to?method @client_2.send(method, *args) elsif @client_1.respond_to?method @client_1.send(method, *args) elsif @client_0.respond_to?method @client_0.send(method, *args) else super end end |
Instance Attribute Details
#action_groups ⇒ Object (readonly)
Returns the value of attribute action_groups.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def action_groups @action_groups end |
#activity_log_alerts ⇒ Object (readonly)
Returns the value of attribute activity_log_alerts.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def activity_log_alerts @activity_log_alerts end |
#activity_logs ⇒ Object (readonly)
Returns the value of attribute activity_logs.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def activity_logs @activity_logs end |
#alert_rule_incidents ⇒ Object (readonly)
Returns the value of attribute alert_rule_incidents.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def alert_rule_incidents @alert_rule_incidents end |
#alert_rules ⇒ Object (readonly)
Returns the value of attribute alert_rules.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def alert_rules @alert_rules end |
#autoscale_settings ⇒ Object (readonly)
Returns the value of attribute autoscale_settings.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def autoscale_settings @autoscale_settings end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def base_url @base_url end |
#baselines ⇒ Object (readonly)
Returns the value of attribute baselines.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def baselines @baselines end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def configurable @configurable end |
#diagnostic_settings_category_operations ⇒ Object (readonly)
Returns the value of attribute diagnostic_settings_category_operations.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def diagnostic_settings_category_operations @diagnostic_settings_category_operations end |
#diagnostic_settings_operations ⇒ Object (readonly)
Returns the value of attribute diagnostic_settings_operations.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def diagnostic_settings_operations @diagnostic_settings_operations end |
#event_categories ⇒ Object (readonly)
Returns the value of attribute event_categories.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def event_categories @event_categories end |
#log_profiles ⇒ Object (readonly)
Returns the value of attribute log_profiles.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def log_profiles @log_profiles end |
#metric_alerts ⇒ Object (readonly)
Returns the value of attribute metric_alerts.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def metric_alerts @metric_alerts end |
#metric_alerts_status ⇒ Object (readonly)
Returns the value of attribute metric_alerts_status.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def metric_alerts_status @metric_alerts_status end |
#metric_baseline ⇒ Object (readonly)
Returns the value of attribute metric_baseline.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def metric_baseline @metric_baseline end |
#metric_definitions ⇒ Object (readonly)
Returns the value of attribute metric_definitions.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def metric_definitions @metric_definitions end |
#metric_namespaces ⇒ Object (readonly)
Returns the value of attribute metric_namespaces.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def metric_namespaces @metric_namespaces end |
#metrics ⇒ Object (readonly)
Returns the value of attribute metrics.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def metrics @metrics end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def @options end |
#scheduled_query_rules ⇒ Object (readonly)
Returns the value of attribute scheduled_query_rules.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def scheduled_query_rules @scheduled_query_rules end |
#subscription_diagnostic_settings_operations ⇒ Object (readonly)
Returns the value of attribute subscription_diagnostic_settings_operations.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def subscription_diagnostic_settings_operations @subscription_diagnostic_settings_operations end |
#tenant_activity_logs ⇒ Object (readonly)
Returns the value of attribute tenant_activity_logs.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def tenant_activity_logs @tenant_activity_logs end |
#vminsights ⇒ Object (readonly)
Returns the value of attribute vminsights.
201 202 203 |
# File 'lib/latest/modules/monitor_profile_module.rb', line 201 def vminsights @vminsights end |