azure_mgmt_monitor 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +39 -37
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +6 -5
  5. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +12 -10
  6. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +30 -29
  7. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +30 -29
  8. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  9. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -1
  10. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +18 -19
  11. data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +10 -6
  12. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +145 -34
  13. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +36 -34
  14. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +63 -0
  16. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  17. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  18. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  20. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +1 -1
  21. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +13 -11
  22. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +25 -23
  23. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/{monitor_client.rb → monitor_management_client.rb} +6 -3
  24. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +37 -0
  25. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +275 -0
  26. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
  27. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
  28. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  32. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  33. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
  34. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
  35. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  36. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +127 -0
  37. data/lib/azure_mgmt_monitor.rb +1 -0
  38. data/lib/profiles/latest/modules/monitor_profile_module.rb +329 -243
  39. data/lib/profiles/latest/monitor_latest_profile_client.rb +28 -9
  40. data/lib/profiles/latest/monitor_module_definition.rb +0 -1
  41. data/lib/version.rb +1 -1
  42. metadata +21 -4
@@ -0,0 +1,9 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure end
7
+ module Azure::Monitor end
8
+ module Azure::Monitor::Mgmt end
9
+ module Azure::Monitor::Mgmt::V2017_11_01_preview end
@@ -0,0 +1,127 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Monitor::Mgmt::V2017_11_01_preview
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class MonitorManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Client Api Version.
21
+ attr_reader :api_version
22
+
23
+ # @return [String] Gets or sets the preferred language for the response.
24
+ attr_accessor :accept_language
25
+
26
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
+ # Running Operations. Default value is 30.
28
+ attr_accessor :long_running_operation_retry_timeout
29
+
30
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
31
+ # is generated and included in each request. Default is true.
32
+ attr_accessor :generate_client_request_id
33
+
34
+ # @return [MetricBaseline] metric_baseline
35
+ attr_reader :metric_baseline
36
+
37
+ #
38
+ # Creates initializes a new instance of the MonitorManagementClient class.
39
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
40
+ # @param base_url [String] the base URI of the service.
41
+ # @param options [Array] filters to be applied to the HTTP requests.
42
+ #
43
+ def initialize(credentials = nil, base_url = nil, options = nil)
44
+ super(credentials, options)
45
+ @base_url = base_url || 'https://management.azure.com'
46
+
47
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
48
+ @credentials = credentials
49
+
50
+ @metric_baseline = MetricBaseline.new(self)
51
+ @api_version = '2017-11-01-preview'
52
+ @accept_language = 'en-US'
53
+ @long_running_operation_retry_timeout = 30
54
+ @generate_client_request_id = true
55
+ add_telemetry
56
+ end
57
+
58
+ #
59
+ # Makes a request and returns the body of the response.
60
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
61
+ # @param path [String] the path, relative to {base_url}.
62
+ # @param options [Hash{String=>String}] specifying any request options like :body.
63
+ # @return [Hash{String=>String}] containing the body of the response.
64
+ # Example:
65
+ #
66
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
67
+ # path = "/path"
68
+ # options = {
69
+ # body: request_content,
70
+ # query_params: {'api-version' => '2016-02-01'}
71
+ # }
72
+ # result = @client.make_request(:put, path, options)
73
+ #
74
+ def make_request(method, path, options = {})
75
+ result = make_request_with_http_info(method, path, options)
76
+ result.body unless result.nil?
77
+ end
78
+
79
+ #
80
+ # Makes a request and returns the operation response.
81
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
82
+ # @param path [String] the path, relative to {base_url}.
83
+ # @param options [Hash{String=>String}] specifying any request options like :body.
84
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
85
+ #
86
+ def make_request_with_http_info(method, path, options = {})
87
+ result = make_request_async(method, path, options).value!
88
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
89
+ result
90
+ end
91
+
92
+ #
93
+ # Makes a request asynchronously.
94
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
95
+ # @param path [String] the path, relative to {base_url}.
96
+ # @param options [Hash{String=>String}] specifying any request options like :body.
97
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
98
+ #
99
+ def make_request_async(method, path, options = {})
100
+ fail ArgumentError, 'method is nil' if method.nil?
101
+ fail ArgumentError, 'path is nil' if path.nil?
102
+
103
+ request_url = options[:base_url] || @base_url
104
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
105
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
106
+ end
107
+
108
+ request_headers = @request_headers
109
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
110
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
111
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
112
+
113
+ super(request_url, method, path, options)
114
+ end
115
+
116
+
117
+ private
118
+ #
119
+ # Adds telemetry information.
120
+ #
121
+ def add_telemetry
122
+ sdk_information = 'azure_mgmt_monitor'
123
+ sdk_information = "#{sdk_information}/0.16.0"
124
+ add_user_agent_information(sdk_information)
125
+ end
126
+ end
127
+ end
@@ -7,4 +7,5 @@ require '2016-03-01/generated/azure_mgmt_monitor'
7
7
  require '2016-09-01/generated/azure_mgmt_monitor'
8
8
  require '2017-04-01/generated/azure_mgmt_monitor'
9
9
  require '2017-05-01-preview/generated/azure_mgmt_monitor'
10
+ require '2017-11-01-preview/generated/azure_mgmt_monitor'
10
11
  require 'profiles/latest/monitor_latest_profile_client'
@@ -4,7 +4,8 @@
4
4
 
5
5
  require 'azure_mgmt_monitor'
6
6
 
7
- module Azure::Monitor::Profiles::Latest::Mgmt
7
+ module Azure::Monitor::Profiles::Latest
8
+ module Mgmt
8
9
  AutoscaleSettings = Azure::Monitor::Mgmt::V2015_04_01::AutoscaleSettings
9
10
  Operations = Azure::Monitor::Mgmt::V2015_04_01::Operations
10
11
  AlertRuleIncidents = Azure::Monitor::Mgmt::V2016_03_01::AlertRuleIncidents
@@ -14,6 +15,7 @@ module Azure::Monitor::Profiles::Latest::Mgmt
14
15
  ActivityLogAlerts = Azure::Monitor::Mgmt::V2017_04_01::ActivityLogAlerts
15
16
  DiagnosticSettingsCategoryOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsCategoryOperations
16
17
  DiagnosticSettingsOperations = Azure::Monitor::Mgmt::V2017_05_01_preview::DiagnosticSettingsOperations
18
+ MetricBaseline = Azure::Monitor::Mgmt::V2017_11_01_preview::MetricBaseline
17
19
 
18
20
  module Models
19
21
  EmailNotification = Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
@@ -61,38 +63,50 @@ module Azure::Monitor::Profiles::Latest::Mgmt
61
63
  LogProfileResource = Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResource
62
64
  ConditionOperator = Azure::Monitor::Mgmt::V2016_03_01::Models::ConditionOperator
63
65
  TimeAggregationOperator = Azure::Monitor::Mgmt::V2016_03_01::Models::TimeAggregationOperator
64
- ActivityLogAlertLeafCondition = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertLeafCondition
66
+ EnableRequest = Azure::Monitor::Mgmt::V2017_04_01::Models::EnableRequest
65
67
  EmailReceiver = Azure::Monitor::Mgmt::V2017_04_01::Models::EmailReceiver
66
- ActivityLogAlertAllOfCondition = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertAllOfCondition
68
+ ActionGroupPatchBody = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupPatchBody
67
69
  WebhookReceiver = Azure::Monitor::Mgmt::V2017_04_01::Models::WebhookReceiver
70
+ ActivityLogAlertLeafCondition = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertLeafCondition
71
+ AzureAppPushReceiver = Azure::Monitor::Mgmt::V2017_04_01::Models::AzureAppPushReceiver
72
+ ActivityLogAlertAllOfCondition = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertAllOfCondition
73
+ AutomationRunbookReceiver = Azure::Monitor::Mgmt::V2017_04_01::Models::AutomationRunbookReceiver
74
+ Resource = Azure::Monitor::Mgmt::V2017_04_01::Models::Resource
68
75
  ActivityLogAlertActionGroup = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionGroup
69
- ActionGroupList = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupList
76
+ ItsmReceiver = Azure::Monitor::Mgmt::V2017_04_01::Models::ItsmReceiver
70
77
  ActivityLogAlertActionList = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionList
71
- Resource = Azure::Monitor::Mgmt::V2017_04_01::Models::Resource
72
78
  SmsReceiver = Azure::Monitor::Mgmt::V2017_04_01::Models::SmsReceiver
73
- EnableRequest = Azure::Monitor::Mgmt::V2017_04_01::Models::EnableRequest
74
- ActivityLogAlertList = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertList
75
79
  ActivityLogAlertPatchBody = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertPatchBody
80
+ ActionGroupList = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupList
81
+ ActivityLogAlertList = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertList
76
82
  ActionGroupResource = Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupResource
77
83
  ActivityLogAlertResource = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource
78
84
  ReceiverStatus = Azure::Monitor::Mgmt::V2017_04_01::Models::ReceiverStatus
79
85
  RetentionPolicy = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
80
86
  MetricSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
81
87
  ProxyOnlyResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
82
- ErrorResponse = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ErrorResponse
83
88
  LogSettings = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
84
89
  DiagnosticSettingsCategoryResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
85
90
  DiagnosticSettingsResourceCollection = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
86
91
  DiagnosticSettingsCategoryResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
87
92
  DiagnosticSettingsResource = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
88
93
  CategoryType = Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
94
+ Baseline = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Baseline
95
+ BaselineResponse = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::BaselineResponse
96
+ BaselineMetadataValue = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::BaselineMetadataValue
97
+ TimeSeriesInformation = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::TimeSeriesInformation
98
+ LocalizableString = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::LocalizableString
99
+ CalculateBaselineResponse = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::CalculateBaselineResponse
100
+ ErrorResponse = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::ErrorResponse
101
+ Sensitivity = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Sensitivity
102
+ ResultType = Azure::Monitor::Mgmt::V2017_11_01_preview::Models::ResultType
89
103
  end
90
104
 
91
105
  #
92
- # Monitor
106
+ # MonitorManagementClass
93
107
  #
94
- class MonitorClass
95
- attr_reader :autoscale_settings, :operations, :alert_rule_incidents, :alert_rules, :log_profiles, :action_groups, :activity_log_alerts, :diagnostic_settings_category_operations, :diagnostic_settings_operations, :configurable, :base_url, :options, :model_classes
108
+ class MonitorManagementClass
109
+ attr_reader :autoscale_settings, :operations, :alert_rule_incidents, :alert_rules, :log_profiles, :action_groups, :activity_log_alerts, :diagnostic_settings_category_operations, :diagnostic_settings_operations, :metric_baseline, :configurable, :base_url, :options, :model_classes
96
110
 
97
111
  def initialize(options = {})
98
112
  if options.is_a?(Hash) && options.length == 0
@@ -103,251 +117,323 @@ module Azure::Monitor::Profiles::Latest::Mgmt
103
117
 
104
118
  reset!(options)
105
119
 
106
- @configurable, @base_url, @options = self, nil, nil
120
+ @configurable = self
121
+ @base_url = options[:base_url].nil? ? nil:options[:base_url]
122
+ @options = options[:options].nil? ? nil:options[:options]
107
123
 
108
- client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
109
- if(client_0.respond_to?(:subscription_id))
110
- client_0.subscription_id = configurable.subscription_id
124
+ @client_0 = Azure::Monitor::Mgmt::V2015_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
125
+ if(@client_0.respond_to?(:subscription_id))
126
+ @client_0.subscription_id = configurable.subscription_id
111
127
  end
112
- @autoscale_settings = client_0.autoscale_settings
113
- @operations = client_0.operations
128
+ add_telemetry(@client_0)
129
+ @autoscale_settings = @client_0.autoscale_settings
130
+ @operations = @client_0.operations
131
+
132
+ @client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
133
+ if(@client_1.respond_to?(:subscription_id))
134
+ @client_1.subscription_id = configurable.subscription_id
135
+ end
136
+ add_telemetry(@client_1)
137
+ @alert_rule_incidents = @client_1.alert_rule_incidents
138
+ @alert_rules = @client_1.alert_rules
139
+ @log_profiles = @client_1.log_profiles
114
140
 
115
- client_1 = Azure::Monitor::Mgmt::V2016_03_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
116
- if(client_1.respond_to?(:subscription_id))
117
- client_1.subscription_id = configurable.subscription_id
141
+ @client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
142
+ if(@client_2.respond_to?(:subscription_id))
143
+ @client_2.subscription_id = configurable.subscription_id
118
144
  end
119
- @alert_rule_incidents = client_1.alert_rule_incidents
120
- @alert_rules = client_1.alert_rules
121
- @log_profiles = client_1.log_profiles
145
+ add_telemetry(@client_2)
146
+ @action_groups = @client_2.action_groups
147
+ @activity_log_alerts = @client_2.activity_log_alerts
122
148
 
123
- client_2 = Azure::Monitor::Mgmt::V2017_04_01::MonitorManagementClient.new(configurable.credentials, base_url, options)
124
- if(client_2.respond_to?(:subscription_id))
125
- client_2.subscription_id = configurable.subscription_id
149
+ @client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, options)
150
+ if(@client_3.respond_to?(:subscription_id))
151
+ @client_3.subscription_id = configurable.subscription_id
126
152
  end
127
- @action_groups = client_2.action_groups
128
- @activity_log_alerts = client_2.activity_log_alerts
153
+ add_telemetry(@client_3)
154
+ @diagnostic_settings_category_operations = @client_3.diagnostic_settings_category_operations
155
+ @diagnostic_settings_operations = @client_3.diagnostic_settings_operations
129
156
 
130
- client_3 = Azure::Monitor::Mgmt::V2017_05_01_preview::MonitorClient.new(configurable.credentials, base_url, options)
131
- if(client_3.respond_to?(:subscription_id))
132
- client_3.subscription_id = configurable.subscription_id
157
+ @client_4 = Azure::Monitor::Mgmt::V2017_11_01_preview::MonitorManagementClient.new(configurable.credentials, base_url, options)
158
+ if(@client_4.respond_to?(:subscription_id))
159
+ @client_4.subscription_id = configurable.subscription_id
133
160
  end
134
- @diagnostic_settings_category_operations = client_3.diagnostic_settings_category_operations
135
- @diagnostic_settings_operations = client_3.diagnostic_settings_operations
161
+ add_telemetry(@client_4)
162
+ @metric_baseline = @client_4.metric_baseline
136
163
 
137
164
  @model_classes = ModelClasses.new
138
165
  end
139
166
 
140
- class ModelClasses
141
- def email_notification
142
- Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
143
- end
144
- def webhook_notification
145
- Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
146
- end
147
- def scale_capacity
148
- Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
149
- end
150
- def autoscale_notification
151
- Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
152
- end
153
- def scale_action
154
- Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
155
- end
156
- def scale_rule
157
- Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
158
- end
159
- def recurrent_schedule
160
- Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
161
- end
162
- def autoscale_setting_resource_patch
163
- Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
164
- end
165
- def autoscale_profile
166
- Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
167
- end
168
- def autoscale_setting_resource_collection
169
- Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
170
- end
171
- def metric_trigger
172
- Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
173
- end
174
- def recurrence
175
- Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
176
- end
177
- def operation_display
178
- Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
179
- end
180
- def time_window
181
- Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
182
- end
183
- def operation
184
- Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
185
- end
186
- def operation_list_result
187
- Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
188
- end
189
- def autoscale_setting_resource
190
- Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
191
- end
192
- def metric_statistic_type
193
- Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
194
- end
195
- def time_aggregation_type
196
- Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
197
- end
198
- def comparison_operation_type
199
- Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
200
- end
201
- def scale_direction
202
- Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
203
- end
204
- def scale_type
205
- Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
206
- end
207
- def recurrence_frequency
208
- Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrenceFrequency
209
- end
210
- def alert_rule_resource_patch
211
- Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch
212
- end
213
- def incident
214
- Azure::Monitor::Mgmt::V2016_03_01::Models::Incident
215
- end
216
- def alert_rule_resource_collection
217
- Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection
218
- end
219
- def management_event_aggregation_condition
220
- Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventAggregationCondition
221
- end
222
- def rule_condition
223
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition
224
- end
225
- def rule_management_event_claims_data_source
226
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource
227
- end
228
- def rule_action
229
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction
230
- end
231
- def incident_list_result
232
- Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult
233
- end
234
- def log_profile_collection
235
- Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileCollection
236
- end
237
- def rule_data_source
238
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleDataSource
239
- end
240
- def log_profile_resource_patch
241
- Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResourcePatch
242
- end
243
- def rule_metric_data_source
244
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleMetricDataSource
245
- end
246
- def rule_management_event_data_source
247
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource
248
- end
249
- def threshold_rule_condition
250
- Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition
251
- end
252
- def location_threshold_rule_condition
253
- Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition
254
- end
255
- def management_event_rule_condition
256
- Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition
257
- end
258
- def rule_email_action
259
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleEmailAction
260
- end
261
- def rule_webhook_action
262
- Azure::Monitor::Mgmt::V2016_03_01::Models::RuleWebhookAction
263
- end
264
- def alert_rule_resource
265
- Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResource
266
- end
267
- def log_profile_resource
268
- Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResource
269
- end
270
- def condition_operator
271
- Azure::Monitor::Mgmt::V2016_03_01::Models::ConditionOperator
272
- end
273
- def time_aggregation_operator
274
- Azure::Monitor::Mgmt::V2016_03_01::Models::TimeAggregationOperator
275
- end
276
- def activity_log_alert_leaf_condition
277
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertLeafCondition
278
- end
279
- def email_receiver
280
- Azure::Monitor::Mgmt::V2017_04_01::Models::EmailReceiver
281
- end
282
- def activity_log_alert_all_of_condition
283
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertAllOfCondition
284
- end
285
- def webhook_receiver
286
- Azure::Monitor::Mgmt::V2017_04_01::Models::WebhookReceiver
287
- end
288
- def activity_log_alert_action_group
289
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionGroup
290
- end
291
- def action_group_list
292
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupList
293
- end
294
- def activity_log_alert_action_list
295
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionList
296
- end
297
- def resource
298
- Azure::Monitor::Mgmt::V2017_04_01::Models::Resource
299
- end
300
- def sms_receiver
301
- Azure::Monitor::Mgmt::V2017_04_01::Models::SmsReceiver
302
- end
303
- def enable_request
304
- Azure::Monitor::Mgmt::V2017_04_01::Models::EnableRequest
305
- end
306
- def activity_log_alert_list
307
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertList
308
- end
309
- def activity_log_alert_patch_body
310
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertPatchBody
311
- end
312
- def action_group_resource
313
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupResource
314
- end
315
- def activity_log_alert_resource
316
- Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource
317
- end
318
- def receiver_status
319
- Azure::Monitor::Mgmt::V2017_04_01::Models::ReceiverStatus
320
- end
321
- def retention_policy
322
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
323
- end
324
- def metric_settings
325
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
326
- end
327
- def proxy_only_resource
328
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
329
- end
330
- def error_response
331
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ErrorResponse
332
- end
333
- def log_settings
334
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
335
- end
336
- def diagnostic_settings_category_resource_collection
337
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
338
- end
339
- def diagnostic_settings_resource_collection
340
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
341
- end
342
- def diagnostic_settings_category_resource
343
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
344
- end
345
- def diagnostic_settings_resource
346
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
347
- end
348
- def category_type
349
- Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
167
+ def add_telemetry(client)
168
+ profile_information = 'Profiles/Latest/Monitor/Mgmt'
169
+ client.add_user_agent_information(profile_information)
170
+ end
171
+
172
+ def method_missing(method, *args)
173
+ if @client_4.respond_to?method
174
+ @client_4.send(method, *args)
175
+ elsif @client_3.respond_to?method
176
+ @client_3.send(method, *args)
177
+ elsif @client_2.respond_to?method
178
+ @client_2.send(method, *args)
179
+ elsif @client_1.respond_to?method
180
+ @client_1.send(method, *args)
181
+ elsif @client_0.respond_to?method
182
+ @client_0.send(method, *args)
183
+ else
184
+ super
350
185
  end
351
186
  end
187
+
188
+ end
189
+
190
+ class ModelClasses
191
+ def email_notification
192
+ Azure::Monitor::Mgmt::V2015_04_01::Models::EmailNotification
193
+ end
194
+ def webhook_notification
195
+ Azure::Monitor::Mgmt::V2015_04_01::Models::WebhookNotification
196
+ end
197
+ def scale_capacity
198
+ Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleCapacity
199
+ end
200
+ def autoscale_notification
201
+ Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleNotification
202
+ end
203
+ def scale_action
204
+ Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleAction
205
+ end
206
+ def scale_rule
207
+ Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleRule
208
+ end
209
+ def recurrent_schedule
210
+ Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrentSchedule
211
+ end
212
+ def autoscale_setting_resource_patch
213
+ Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourcePatch
214
+ end
215
+ def autoscale_profile
216
+ Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleProfile
217
+ end
218
+ def autoscale_setting_resource_collection
219
+ Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection
220
+ end
221
+ def metric_trigger
222
+ Azure::Monitor::Mgmt::V2015_04_01::Models::MetricTrigger
223
+ end
224
+ def recurrence
225
+ Azure::Monitor::Mgmt::V2015_04_01::Models::Recurrence
226
+ end
227
+ def operation_display
228
+ Azure::Monitor::Mgmt::V2015_04_01::Models::OperationDisplay
229
+ end
230
+ def time_window
231
+ Azure::Monitor::Mgmt::V2015_04_01::Models::TimeWindow
232
+ end
233
+ def operation
234
+ Azure::Monitor::Mgmt::V2015_04_01::Models::Operation
235
+ end
236
+ def operation_list_result
237
+ Azure::Monitor::Mgmt::V2015_04_01::Models::OperationListResult
238
+ end
239
+ def autoscale_setting_resource
240
+ Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResource
241
+ end
242
+ def metric_statistic_type
243
+ Azure::Monitor::Mgmt::V2015_04_01::Models::MetricStatisticType
244
+ end
245
+ def time_aggregation_type
246
+ Azure::Monitor::Mgmt::V2015_04_01::Models::TimeAggregationType
247
+ end
248
+ def comparison_operation_type
249
+ Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
250
+ end
251
+ def scale_direction
252
+ Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
253
+ end
254
+ def scale_type
255
+ Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
256
+ end
257
+ def recurrence_frequency
258
+ Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrenceFrequency
259
+ end
260
+ def alert_rule_resource_patch
261
+ Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch
262
+ end
263
+ def incident
264
+ Azure::Monitor::Mgmt::V2016_03_01::Models::Incident
265
+ end
266
+ def alert_rule_resource_collection
267
+ Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection
268
+ end
269
+ def management_event_aggregation_condition
270
+ Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventAggregationCondition
271
+ end
272
+ def rule_condition
273
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition
274
+ end
275
+ def rule_management_event_claims_data_source
276
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource
277
+ end
278
+ def rule_action
279
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleAction
280
+ end
281
+ def incident_list_result
282
+ Azure::Monitor::Mgmt::V2016_03_01::Models::IncidentListResult
283
+ end
284
+ def log_profile_collection
285
+ Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileCollection
286
+ end
287
+ def rule_data_source
288
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleDataSource
289
+ end
290
+ def log_profile_resource_patch
291
+ Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResourcePatch
292
+ end
293
+ def rule_metric_data_source
294
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleMetricDataSource
295
+ end
296
+ def rule_management_event_data_source
297
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventDataSource
298
+ end
299
+ def threshold_rule_condition
300
+ Azure::Monitor::Mgmt::V2016_03_01::Models::ThresholdRuleCondition
301
+ end
302
+ def location_threshold_rule_condition
303
+ Azure::Monitor::Mgmt::V2016_03_01::Models::LocationThresholdRuleCondition
304
+ end
305
+ def management_event_rule_condition
306
+ Azure::Monitor::Mgmt::V2016_03_01::Models::ManagementEventRuleCondition
307
+ end
308
+ def rule_email_action
309
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleEmailAction
310
+ end
311
+ def rule_webhook_action
312
+ Azure::Monitor::Mgmt::V2016_03_01::Models::RuleWebhookAction
313
+ end
314
+ def alert_rule_resource
315
+ Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResource
316
+ end
317
+ def log_profile_resource
318
+ Azure::Monitor::Mgmt::V2016_03_01::Models::LogProfileResource
319
+ end
320
+ def condition_operator
321
+ Azure::Monitor::Mgmt::V2016_03_01::Models::ConditionOperator
322
+ end
323
+ def time_aggregation_operator
324
+ Azure::Monitor::Mgmt::V2016_03_01::Models::TimeAggregationOperator
325
+ end
326
+ def enable_request
327
+ Azure::Monitor::Mgmt::V2017_04_01::Models::EnableRequest
328
+ end
329
+ def email_receiver
330
+ Azure::Monitor::Mgmt::V2017_04_01::Models::EmailReceiver
331
+ end
332
+ def action_group_patch_body
333
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupPatchBody
334
+ end
335
+ def webhook_receiver
336
+ Azure::Monitor::Mgmt::V2017_04_01::Models::WebhookReceiver
337
+ end
338
+ def activity_log_alert_leaf_condition
339
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertLeafCondition
340
+ end
341
+ def azure_app_push_receiver
342
+ Azure::Monitor::Mgmt::V2017_04_01::Models::AzureAppPushReceiver
343
+ end
344
+ def activity_log_alert_all_of_condition
345
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertAllOfCondition
346
+ end
347
+ def automation_runbook_receiver
348
+ Azure::Monitor::Mgmt::V2017_04_01::Models::AutomationRunbookReceiver
349
+ end
350
+ def resource
351
+ Azure::Monitor::Mgmt::V2017_04_01::Models::Resource
352
+ end
353
+ def activity_log_alert_action_group
354
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionGroup
355
+ end
356
+ def itsm_receiver
357
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ItsmReceiver
358
+ end
359
+ def activity_log_alert_action_list
360
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertActionList
361
+ end
362
+ def sms_receiver
363
+ Azure::Monitor::Mgmt::V2017_04_01::Models::SmsReceiver
364
+ end
365
+ def activity_log_alert_patch_body
366
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertPatchBody
367
+ end
368
+ def action_group_list
369
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupList
370
+ end
371
+ def activity_log_alert_list
372
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertList
373
+ end
374
+ def action_group_resource
375
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActionGroupResource
376
+ end
377
+ def activity_log_alert_resource
378
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource
379
+ end
380
+ def receiver_status
381
+ Azure::Monitor::Mgmt::V2017_04_01::Models::ReceiverStatus
382
+ end
383
+ def retention_policy
384
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::RetentionPolicy
385
+ end
386
+ def metric_settings
387
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::MetricSettings
388
+ end
389
+ def proxy_only_resource
390
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::ProxyOnlyResource
391
+ end
392
+ def log_settings
393
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::LogSettings
394
+ end
395
+ def diagnostic_settings_category_resource_collection
396
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResourceCollection
397
+ end
398
+ def diagnostic_settings_resource_collection
399
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResourceCollection
400
+ end
401
+ def diagnostic_settings_category_resource
402
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsCategoryResource
403
+ end
404
+ def diagnostic_settings_resource
405
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::DiagnosticSettingsResource
406
+ end
407
+ def category_type
408
+ Azure::Monitor::Mgmt::V2017_05_01_preview::Models::CategoryType
409
+ end
410
+ def baseline
411
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Baseline
412
+ end
413
+ def baseline_response
414
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::BaselineResponse
415
+ end
416
+ def baseline_metadata_value
417
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::BaselineMetadataValue
418
+ end
419
+ def time_series_information
420
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::TimeSeriesInformation
421
+ end
422
+ def localizable_string
423
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::LocalizableString
424
+ end
425
+ def calculate_baseline_response
426
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::CalculateBaselineResponse
427
+ end
428
+ def error_response
429
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::ErrorResponse
430
+ end
431
+ def sensitivity
432
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::Sensitivity
433
+ end
434
+ def result_type
435
+ Azure::Monitor::Mgmt::V2017_11_01_preview::Models::ResultType
436
+ end
352
437
  end
438
+ end
353
439
  end