Class: Azure::Monitor::Profiles::Latest::Mgmt::MonitorManagementClass
- Inherits:
-
Object
- Object
- Azure::Monitor::Profiles::Latest::Mgmt::MonitorManagementClass
- Defined in:
- lib/profiles/latest/modules/monitor_profile_module.rb
Overview
MonitorManagementClass
Direct Known Subclasses
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.
-
#private_endpoint_connections ⇒ Object
readonly
Returns the value of attribute private_endpoint_connections.
-
#private_link_resources ⇒ Object
readonly
Returns the value of attribute private_link_resources.
-
#private_link_scope_operation_status ⇒ Object
readonly
Returns the value of attribute private_link_scope_operation_status.
-
#private_link_scoped_resources ⇒ Object
readonly
Returns the value of attribute private_link_scoped_resources.
-
#private_link_scopes ⇒ Object
readonly
Returns the value of attribute private_link_scopes.
-
#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(options = {}) ⇒ MonitorManagementClass
constructor
A new instance of MonitorManagementClass.
- #method_missing(method, *args) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ MonitorManagementClass
Returns a new instance of MonitorManagementClass.
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 296 297 298 299 300 301 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 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 227 def initialize( = {}) if .is_a?(Hash) && .length == 0 @options = else @options = end reset!() @configurable = self @base_url = [:base_url].nil? ? nil:[:base_url] @options = [:options].nil? ? nil:[:options] @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_05_01_preview::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) @diagnostic_settings_category_operations = @client_2.diagnostic_settings_category_operations @diagnostic_settings_operations = @client_2.diagnostic_settings_operations @subscription_diagnostic_settings_operations = @client_2.subscription_diagnostic_settings_operations @client_3 = Azure::Monitor::Mgmt::V2017_11_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) @metric_baseline = @client_3.metric_baseline @client_4 = Azure::Monitor::Mgmt::V2017_12_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_namespaces = @client_4.metric_namespaces @client_5 = Azure::Monitor::Mgmt::V2018_01_01::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_definitions = @client_5.metric_definitions @metrics = @client_5.metrics @client_6 = Azure::Monitor::Mgmt::V2018_03_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_alerts = @client_6.metric_alerts @metric_alerts_status = @client_6.metric_alerts_status @client_7 = Azure::Monitor::Mgmt::V2018_04_16::MonitorClient.new(configurable.credentials, base_url, ) if(@client_7.respond_to?(:subscription_id)) @client_7.subscription_id = configurable.subscription_id end add_telemetry(@client_7) @scheduled_query_rules = @client_7.scheduled_query_rules @client_8 = Azure::Monitor::Mgmt::V2018_11_27_preview::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_8.respond_to?(:subscription_id)) @client_8.subscription_id = configurable.subscription_id end add_telemetry(@client_8) @vminsights = @client_8.vminsights @client_9 = Azure::Monitor::Mgmt::V2019_03_01::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) @baselines = @client_9.baselines @client_10 = Azure::Monitor::Mgmt::V2019_06_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 @client_11 = Azure::Monitor::Mgmt::V2019_10_17_preview::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_11.respond_to?(:subscription_id)) @client_11.subscription_id = configurable.subscription_id end add_telemetry(@client_11) @private_link_scopes = @client_11.private_link_scopes @private_link_scope_operation_status = @client_11.private_link_scope_operation_status @private_link_resources = @client_11.private_link_resources @private_endpoint_connections = @client_11.private_endpoint_connections @private_link_scoped_resources = @client_11.private_link_scoped_resources @client_12 = Azure::Monitor::Mgmt::V2020_10_01::MonitorManagementClient.new(configurable.credentials, base_url, ) if(@client_12.respond_to?(:subscription_id)) @client_12.subscription_id = configurable.subscription_id end add_telemetry(@client_12) @activity_log_alerts = @client_12.activity_log_alerts @model_classes = ModelClasses.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 353 def method_missing(method, *args) if @client_12.respond_to?method @client_12.send(method, *args) elsif @client_11.respond_to?method @client_11.send(method, *args) elsif @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.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def action_groups @action_groups end |
#activity_log_alerts ⇒ Object (readonly)
Returns the value of attribute activity_log_alerts.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def activity_log_alerts @activity_log_alerts end |
#activity_logs ⇒ Object (readonly)
Returns the value of attribute activity_logs.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def activity_logs @activity_logs end |
#alert_rule_incidents ⇒ Object (readonly)
Returns the value of attribute alert_rule_incidents.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def alert_rule_incidents @alert_rule_incidents end |
#alert_rules ⇒ Object (readonly)
Returns the value of attribute alert_rules.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def alert_rules @alert_rules end |
#autoscale_settings ⇒ Object (readonly)
Returns the value of attribute autoscale_settings.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def autoscale_settings @autoscale_settings end |
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def base_url @base_url end |
#baselines ⇒ Object (readonly)
Returns the value of attribute baselines.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def baselines @baselines end |
#configurable ⇒ Object (readonly)
Returns the value of attribute configurable.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def configurable @configurable end |
#diagnostic_settings_category_operations ⇒ Object (readonly)
Returns the value of attribute diagnostic_settings_category_operations.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def diagnostic_settings_category_operations @diagnostic_settings_category_operations end |
#diagnostic_settings_operations ⇒ Object (readonly)
Returns the value of attribute diagnostic_settings_operations.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def diagnostic_settings_operations @diagnostic_settings_operations end |
#event_categories ⇒ Object (readonly)
Returns the value of attribute event_categories.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def event_categories @event_categories end |
#log_profiles ⇒ Object (readonly)
Returns the value of attribute log_profiles.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def log_profiles @log_profiles end |
#metric_alerts ⇒ Object (readonly)
Returns the value of attribute metric_alerts.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def metric_alerts @metric_alerts end |
#metric_alerts_status ⇒ Object (readonly)
Returns the value of attribute metric_alerts_status.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def metric_alerts_status @metric_alerts_status end |
#metric_baseline ⇒ Object (readonly)
Returns the value of attribute metric_baseline.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def metric_baseline @metric_baseline end |
#metric_definitions ⇒ Object (readonly)
Returns the value of attribute metric_definitions.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def metric_definitions @metric_definitions end |
#metric_namespaces ⇒ Object (readonly)
Returns the value of attribute metric_namespaces.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def metric_namespaces @metric_namespaces end |
#metrics ⇒ Object (readonly)
Returns the value of attribute metrics.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def metrics @metrics end |
#model_classes ⇒ Object (readonly)
Returns the value of attribute model_classes.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def model_classes @model_classes end |
#operations ⇒ Object (readonly)
Returns the value of attribute operations.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def operations @operations end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def @options end |
#private_endpoint_connections ⇒ Object (readonly)
Returns the value of attribute private_endpoint_connections.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def private_endpoint_connections @private_endpoint_connections end |
#private_link_resources ⇒ Object (readonly)
Returns the value of attribute private_link_resources.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def private_link_resources @private_link_resources end |
#private_link_scope_operation_status ⇒ Object (readonly)
Returns the value of attribute private_link_scope_operation_status.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def private_link_scope_operation_status @private_link_scope_operation_status end |
#private_link_scoped_resources ⇒ Object (readonly)
Returns the value of attribute private_link_scoped_resources.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def private_link_scoped_resources @private_link_scoped_resources end |
#private_link_scopes ⇒ Object (readonly)
Returns the value of attribute private_link_scopes.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def private_link_scopes @private_link_scopes end |
#scheduled_query_rules ⇒ Object (readonly)
Returns the value of attribute scheduled_query_rules.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def scheduled_query_rules @scheduled_query_rules end |
#subscription_diagnostic_settings_operations ⇒ Object (readonly)
Returns the value of attribute subscription_diagnostic_settings_operations.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def subscription_diagnostic_settings_operations @subscription_diagnostic_settings_operations end |
#tenant_activity_logs ⇒ Object (readonly)
Returns the value of attribute tenant_activity_logs.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def tenant_activity_logs @tenant_activity_logs end |
#vminsights ⇒ Object (readonly)
Returns the value of attribute vminsights.
225 226 227 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 225 def vminsights @vminsights end |
Instance Method Details
#add_telemetry(client) ⇒ Object
348 349 350 351 |
# File 'lib/profiles/latest/modules/monitor_profile_module.rb', line 348 def add_telemetry(client) profile_information = 'Profiles/Latest/Monitor/Mgmt' client.add_user_agent_information(profile_information) end |