azure_mgmt_insights 0.8.0 → 0.9.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.
- checksums.yaml +4 -4
- data/lib/generated/azure_mgmt_insights.rb +19 -19
- data/lib/generated/azure_mgmt_insights/alert_rule_incidents.rb +91 -0
- data/lib/generated/azure_mgmt_insights/alert_rules.rb +9 -3
- data/lib/generated/azure_mgmt_insights/insights_management_client.rb +8 -13
- data/lib/generated/azure_mgmt_insights/log_profiles.rb +10 -10
- data/lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb +3 -2
- data/lib/generated/azure_mgmt_insights/models/autoscale_notification.rb +2 -2
- data/lib/generated/azure_mgmt_insights/models/autoscale_setting_resource.rb +2 -1
- data/lib/generated/azure_mgmt_insights/models/email_notification.rb +3 -2
- data/lib/generated/azure_mgmt_insights/models/location_threshold_rule_condition.rb +3 -2
- data/lib/generated/azure_mgmt_insights/models/log_profile_collection.rb +1 -1
- data/lib/generated/azure_mgmt_insights/models/{log_profile_create_or_update_parameters.rb → log_profile_properties.rb} +26 -17
- data/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb +16 -7
- data/lib/generated/azure_mgmt_insights/models/log_settings.rb +4 -1
- data/lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb +2 -2
- data/lib/generated/azure_mgmt_insights/models/management_event_rule_condition.rb +7 -4
- data/lib/generated/azure_mgmt_insights/models/metric_trigger.rb +8 -8
- data/lib/generated/azure_mgmt_insights/models/recurrence.rb +2 -2
- data/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb +43 -6
- data/lib/generated/azure_mgmt_insights/models/retention_policy.rb +2 -1
- data/lib/generated/azure_mgmt_insights/models/rule_email_action.rb +5 -4
- data/lib/generated/azure_mgmt_insights/models/rule_management_event_data_source.rb +3 -2
- data/lib/generated/azure_mgmt_insights/models/rule_metric_data_source.rb +3 -2
- data/lib/generated/azure_mgmt_insights/models/rule_webhook_action.rb +6 -4
- data/lib/generated/azure_mgmt_insights/models/scale_action.rb +6 -6
- data/lib/generated/azure_mgmt_insights/models/scale_capacity.rb +2 -1
- data/lib/generated/azure_mgmt_insights/models/scale_rule.rb +1 -2
- data/lib/generated/azure_mgmt_insights/models/scale_type.rb +17 -0
- data/lib/generated/azure_mgmt_insights/models/{service_diagnostic_settings_create_or_update_parameters.rb → service_diagnostic_settings.rb} +22 -16
- data/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings_resource.rb +12 -5
- data/lib/generated/azure_mgmt_insights/models/threshold_rule_condition.rb +4 -3
- data/lib/generated/azure_mgmt_insights/models/time_window.rb +1 -2
- data/lib/generated/azure_mgmt_insights/models/webhook_notification.rb +3 -2
- data/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb +7 -7
- data/lib/generated/azure_mgmt_insights/version.rb +1 -1
- metadata +7 -7
- data/lib/generated/azure_mgmt_insights/incidents.rb +0 -117
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1e8ac33556eb2b59f15fff27be4b68662355072
|
4
|
+
data.tar.gz: 30fcd18464a9c5f56a369b2da653d2fbe3131732
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39eaa7eb13af622ed39dfc16ada0e8b4c116efa2a876d08f726d8f2dc65cfaed7dffb4c3610abab7ad0d9b9d2e04d33e10a3e32e31b8fa50b0fde7240a6b98c6
|
7
|
+
data.tar.gz: 58a3b7f37831ea1a906911cfa22f6c0194211f4ea83a75a175ad434cc017f53086a3e49e6736ea53a5a16182a9fa87bd925841215b8fcedd996c7df58edafd37
|
@@ -22,39 +22,38 @@ require 'ms_rest_azure'
|
|
22
22
|
module Azure::ARM::Insights
|
23
23
|
autoload :AutoscaleSettings, 'generated/azure_mgmt_insights/autoscale_settings.rb'
|
24
24
|
autoload :ServiceDiagnosticSettingsOperations, 'generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb'
|
25
|
-
autoload :AlertRuleIncidents, 'generated/azure_mgmt_insights/alert_rule_incidents.rb'
|
26
|
-
autoload :Incidents, 'generated/azure_mgmt_insights/incidents.rb'
|
27
25
|
autoload :AlertRules, 'generated/azure_mgmt_insights/alert_rules.rb'
|
26
|
+
autoload :AlertRuleIncidents, 'generated/azure_mgmt_insights/alert_rule_incidents.rb'
|
28
27
|
autoload :LogProfiles, 'generated/azure_mgmt_insights/log_profiles.rb'
|
29
28
|
autoload :InsightsManagementClient, 'generated/azure_mgmt_insights/insights_management_client.rb'
|
30
29
|
|
31
30
|
module Models
|
32
|
-
autoload :Incident, 'generated/azure_mgmt_insights/models/incident.rb'
|
33
|
-
autoload :IncidentListResult, 'generated/azure_mgmt_insights/models/incident_list_result.rb'
|
34
|
-
autoload :MetricTrigger, 'generated/azure_mgmt_insights/models/metric_trigger.rb'
|
35
31
|
autoload :RuleCondition, 'generated/azure_mgmt_insights/models/rule_condition.rb'
|
36
|
-
autoload :ScaleRule, 'generated/azure_mgmt_insights/models/scale_rule.rb'
|
37
32
|
autoload :RuleDataSource, 'generated/azure_mgmt_insights/models/rule_data_source.rb'
|
33
|
+
autoload :MetricTrigger, 'generated/azure_mgmt_insights/models/metric_trigger.rb'
|
34
|
+
autoload :LogSettings, 'generated/azure_mgmt_insights/models/log_settings.rb'
|
35
|
+
autoload :ServiceDiagnosticSettings, 'generated/azure_mgmt_insights/models/service_diagnostic_settings.rb'
|
36
|
+
autoload :TimeWindow, 'generated/azure_mgmt_insights/models/time_window.rb'
|
38
37
|
autoload :RecurrentSchedule, 'generated/azure_mgmt_insights/models/recurrent_schedule.rb'
|
39
|
-
autoload :
|
38
|
+
autoload :AlertRuleResourceCollection, 'generated/azure_mgmt_insights/models/alert_rule_resource_collection.rb'
|
39
|
+
autoload :AutoscaleProfile, 'generated/azure_mgmt_insights/models/autoscale_profile.rb'
|
40
40
|
autoload :ScaleCapacity, 'generated/azure_mgmt_insights/models/scale_capacity.rb'
|
41
|
-
autoload :
|
41
|
+
autoload :WebhookNotification, 'generated/azure_mgmt_insights/models/webhook_notification.rb'
|
42
42
|
autoload :ScaleAction, 'generated/azure_mgmt_insights/models/scale_action.rb'
|
43
|
-
autoload :
|
44
|
-
autoload :TimeWindow, 'generated/azure_mgmt_insights/models/time_window.rb'
|
43
|
+
autoload :RuleAction, 'generated/azure_mgmt_insights/models/rule_action.rb'
|
45
44
|
autoload :AutoscaleSettingResourceCollection, 'generated/azure_mgmt_insights/models/autoscale_setting_resource_collection.rb'
|
46
|
-
autoload :Recurrence, 'generated/azure_mgmt_insights/models/recurrence.rb'
|
47
45
|
autoload :MetricSettings, 'generated/azure_mgmt_insights/models/metric_settings.rb'
|
48
|
-
autoload :RuleAction, 'generated/azure_mgmt_insights/models/rule_action.rb'
|
49
|
-
autoload :AutoscaleProfile, 'generated/azure_mgmt_insights/models/autoscale_profile.rb'
|
50
46
|
autoload :RuleManagementEventClaimsDataSource, 'generated/azure_mgmt_insights/models/rule_management_event_claims_data_source.rb'
|
51
|
-
autoload :
|
52
|
-
autoload :RetentionPolicy, 'generated/azure_mgmt_insights/models/retention_policy.rb'
|
47
|
+
autoload :Recurrence, 'generated/azure_mgmt_insights/models/recurrence.rb'
|
53
48
|
autoload :LogProfileCollection, 'generated/azure_mgmt_insights/models/log_profile_collection.rb'
|
54
|
-
autoload :
|
55
|
-
autoload :
|
56
|
-
autoload :
|
57
|
-
autoload :
|
49
|
+
autoload :AutoscaleNotification, 'generated/azure_mgmt_insights/models/autoscale_notification.rb'
|
50
|
+
autoload :LogProfileProperties, 'generated/azure_mgmt_insights/models/log_profile_properties.rb'
|
51
|
+
autoload :ScaleRule, 'generated/azure_mgmt_insights/models/scale_rule.rb'
|
52
|
+
autoload :IncidentListResult, 'generated/azure_mgmt_insights/models/incident_list_result.rb'
|
53
|
+
autoload :RetentionPolicy, 'generated/azure_mgmt_insights/models/retention_policy.rb'
|
54
|
+
autoload :ManagementEventAggregationCondition, 'generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb'
|
55
|
+
autoload :EmailNotification, 'generated/azure_mgmt_insights/models/email_notification.rb'
|
56
|
+
autoload :Incident, 'generated/azure_mgmt_insights/models/incident.rb'
|
58
57
|
autoload :AutoscaleSettingResource, 'generated/azure_mgmt_insights/models/autoscale_setting_resource.rb'
|
59
58
|
autoload :ServiceDiagnosticSettingsResource, 'generated/azure_mgmt_insights/models/service_diagnostic_settings_resource.rb'
|
60
59
|
autoload :RuleMetricDataSource, 'generated/azure_mgmt_insights/models/rule_metric_data_source.rb'
|
@@ -70,6 +69,7 @@ module Azure::ARM::Insights
|
|
70
69
|
autoload :TimeAggregationType, 'generated/azure_mgmt_insights/models/time_aggregation_type.rb'
|
71
70
|
autoload :ComparisonOperationType, 'generated/azure_mgmt_insights/models/comparison_operation_type.rb'
|
72
71
|
autoload :ScaleDirection, 'generated/azure_mgmt_insights/models/scale_direction.rb'
|
72
|
+
autoload :ScaleType, 'generated/azure_mgmt_insights/models/scale_type.rb'
|
73
73
|
autoload :RecurrenceFrequency, 'generated/azure_mgmt_insights/models/recurrence_frequency.rb'
|
74
74
|
autoload :ConditionOperator, 'generated/azure_mgmt_insights/models/condition_operator.rb'
|
75
75
|
autoload :TimeAggregationOperator, 'generated/azure_mgmt_insights/models/time_aggregation_operator.rb'
|
@@ -117,5 +117,96 @@ module Azure::ARM::Insights
|
|
117
117
|
promise.execute
|
118
118
|
end
|
119
119
|
|
120
|
+
#
|
121
|
+
# Gets a list of incidents associated to an alert rule
|
122
|
+
#
|
123
|
+
# @param resource_group_name [String] The name of the resource group.
|
124
|
+
# @param rule_name [String] The name of the rule.
|
125
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
126
|
+
# will be added to the HTTP request.
|
127
|
+
#
|
128
|
+
# @return [IncidentListResult] operation results.
|
129
|
+
#
|
130
|
+
def list_by_alert_rule(resource_group_name, rule_name, custom_headers = nil)
|
131
|
+
response = list_by_alert_rule_async(resource_group_name, rule_name, custom_headers).value!
|
132
|
+
response.body unless response.nil?
|
133
|
+
end
|
134
|
+
|
135
|
+
#
|
136
|
+
# Gets a list of incidents associated to an alert rule
|
137
|
+
#
|
138
|
+
# @param resource_group_name [String] The name of the resource group.
|
139
|
+
# @param rule_name [String] The name of the rule.
|
140
|
+
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
141
|
+
# will be added to the HTTP request.
|
142
|
+
#
|
143
|
+
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
144
|
+
#
|
145
|
+
def list_by_alert_rule_with_http_info(resource_group_name, rule_name, custom_headers = nil)
|
146
|
+
list_by_alert_rule_async(resource_group_name, rule_name, custom_headers).value!
|
147
|
+
end
|
148
|
+
|
149
|
+
#
|
150
|
+
# Gets a list of incidents associated to an alert rule
|
151
|
+
#
|
152
|
+
# @param resource_group_name [String] The name of the resource group.
|
153
|
+
# @param rule_name [String] The name of the rule.
|
154
|
+
# @param [Hash{String => String}] A hash of custom headers that will be added
|
155
|
+
# to the HTTP request.
|
156
|
+
#
|
157
|
+
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
158
|
+
#
|
159
|
+
def list_by_alert_rule_async(resource_group_name, rule_name, custom_headers = nil)
|
160
|
+
fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
|
161
|
+
fail ArgumentError, 'rule_name is nil' if rule_name.nil?
|
162
|
+
api_version = '2016-03-01'
|
163
|
+
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
164
|
+
|
165
|
+
|
166
|
+
request_headers = {}
|
167
|
+
|
168
|
+
# Set Headers
|
169
|
+
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
170
|
+
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
171
|
+
path_template = '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/microsoft.insights/alertrules/{ruleName}/incidents'
|
172
|
+
|
173
|
+
request_url = @base_url || @client.base_url
|
174
|
+
|
175
|
+
options = {
|
176
|
+
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
177
|
+
path_params: {'resourceGroupName' => resource_group_name,'ruleName' => rule_name,'subscriptionId' => @client.subscription_id},
|
178
|
+
query_params: {'api-version' => api_version},
|
179
|
+
headers: request_headers.merge(custom_headers || {}),
|
180
|
+
base_url: request_url
|
181
|
+
}
|
182
|
+
promise = @client.make_request_async(:get, path_template, options)
|
183
|
+
|
184
|
+
promise = promise.then do |result|
|
185
|
+
http_response = result.response
|
186
|
+
status_code = http_response.status
|
187
|
+
response_content = http_response.body
|
188
|
+
unless status_code == 200
|
189
|
+
error_model = JSON.load(response_content)
|
190
|
+
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
191
|
+
end
|
192
|
+
|
193
|
+
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
194
|
+
# Deserialize Response
|
195
|
+
if status_code == 200
|
196
|
+
begin
|
197
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
198
|
+
result_mapper = IncidentListResult.mapper()
|
199
|
+
result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
|
200
|
+
rescue Exception => e
|
201
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
result
|
206
|
+
end
|
207
|
+
|
208
|
+
promise.execute
|
209
|
+
end
|
210
|
+
|
120
211
|
end
|
121
212
|
end
|
@@ -23,7 +23,9 @@ module Azure::ARM::Insights
|
|
23
23
|
attr_reader :client
|
24
24
|
|
25
25
|
#
|
26
|
-
# Creates or updates an alert rule
|
26
|
+
# Creates or updates an alert rule.
|
27
|
+
# Request method: PUT Request URI:
|
28
|
+
# https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/microsoft.insights/alertRules/{alert-rule-name}?api-version={api-version}
|
27
29
|
#
|
28
30
|
# @param resource_group_name [String] The name of the resource group.
|
29
31
|
# @param rule_name [String] The name of the rule.
|
@@ -40,7 +42,9 @@ module Azure::ARM::Insights
|
|
40
42
|
end
|
41
43
|
|
42
44
|
#
|
43
|
-
# Creates or updates an alert rule
|
45
|
+
# Creates or updates an alert rule.
|
46
|
+
# Request method: PUT Request URI:
|
47
|
+
# https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/microsoft.insights/alertRules/{alert-rule-name}?api-version={api-version}
|
44
48
|
#
|
45
49
|
# @param resource_group_name [String] The name of the resource group.
|
46
50
|
# @param rule_name [String] The name of the rule.
|
@@ -56,7 +60,9 @@ module Azure::ARM::Insights
|
|
56
60
|
end
|
57
61
|
|
58
62
|
#
|
59
|
-
# Creates or updates an alert rule
|
63
|
+
# Creates or updates an alert rule.
|
64
|
+
# Request method: PUT Request URI:
|
65
|
+
# https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/microsoft.insights/alertRules/{alert-rule-name}?api-version={api-version}
|
60
66
|
#
|
61
67
|
# @param resource_group_name [String] The name of the resource group.
|
62
68
|
# @param rule_name [String] The name of the rule.
|
@@ -38,15 +38,12 @@ module Azure::ARM::Insights
|
|
38
38
|
# service_diagnostic_settings_operations
|
39
39
|
attr_reader :service_diagnostic_settings_operations
|
40
40
|
|
41
|
-
# @return [AlertRuleIncidents] alert_rule_incidents
|
42
|
-
attr_reader :alert_rule_incidents
|
43
|
-
|
44
|
-
# @return [Incidents] incidents
|
45
|
-
attr_reader :incidents
|
46
|
-
|
47
41
|
# @return [AlertRules] alert_rules
|
48
42
|
attr_reader :alert_rules
|
49
43
|
|
44
|
+
# @return [AlertRuleIncidents] alert_rule_incidents
|
45
|
+
attr_reader :alert_rule_incidents
|
46
|
+
|
50
47
|
# @return [LogProfiles] log_profiles
|
51
48
|
attr_reader :log_profiles
|
52
49
|
|
@@ -56,19 +53,17 @@ module Azure::ARM::Insights
|
|
56
53
|
# @param base_url [String] the base URI of the service.
|
57
54
|
# @param options [Array] filters to be applied to the HTTP requests.
|
58
55
|
#
|
59
|
-
def initialize(credentials, base_url = nil, options = nil)
|
56
|
+
def initialize(credentials = nil, base_url = nil, options = nil)
|
60
57
|
super(credentials, options)
|
61
58
|
@base_url = base_url || 'https://management.azure.com'
|
62
59
|
|
63
|
-
fail ArgumentError, 'credentials
|
64
|
-
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
|
60
|
+
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
65
61
|
@credentials = credentials
|
66
62
|
|
67
63
|
@autoscale_settings = AutoscaleSettings.new(self)
|
68
64
|
@service_diagnostic_settings_operations = ServiceDiagnosticSettingsOperations.new(self)
|
69
|
-
@alert_rule_incidents = AlertRuleIncidents.new(self)
|
70
|
-
@incidents = Incidents.new(self)
|
71
65
|
@alert_rules = AlertRules.new(self)
|
66
|
+
@alert_rule_incidents = AlertRuleIncidents.new(self)
|
72
67
|
@log_profiles = LogProfiles.new(self)
|
73
68
|
@accept_language = 'en-US'
|
74
69
|
@long_running_operation_retry_timeout = 30
|
@@ -78,7 +73,7 @@ module Azure::ARM::Insights
|
|
78
73
|
|
79
74
|
#
|
80
75
|
# Makes a request and returns the body of the response.
|
81
|
-
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
76
|
+
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
82
77
|
# @param path [String] the path, relative to {base_url}.
|
83
78
|
# @param options [Hash{String=>String}] specifying any request options like :body.
|
84
79
|
# @return [Hash{String=>String}] containing the body of the response.
|
@@ -139,7 +134,7 @@ module Azure::ARM::Insights
|
|
139
134
|
def add_telemetry
|
140
135
|
sdk_information = 'azure_mgmt_insights'
|
141
136
|
if defined? Azure::ARM::Insights::VERSION
|
142
|
-
sdk_information = "#{sdk_information}/#{Azure::ARM::Insights::VERSION}"
|
137
|
+
sdk_information = "#{sdk_information}/#{Azure::ARM::Insights::VERSION}"
|
143
138
|
end
|
144
139
|
add_user_agent_information(sdk_information)
|
145
140
|
end
|
@@ -186,11 +186,11 @@ module Azure::ARM::Insights
|
|
186
186
|
end
|
187
187
|
|
188
188
|
#
|
189
|
-
# Create or update
|
189
|
+
# Create or update a log profile in Azure Monitoring REST API.
|
190
190
|
#
|
191
191
|
# @param log_profile_name [String] The name of the log profile.
|
192
|
-
# @param parameters [
|
193
|
-
#
|
192
|
+
# @param parameters [LogProfileProperties] Parameters supplied to the
|
193
|
+
# operation.
|
194
194
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
195
195
|
# will be added to the HTTP request.
|
196
196
|
#
|
@@ -202,11 +202,11 @@ module Azure::ARM::Insights
|
|
202
202
|
end
|
203
203
|
|
204
204
|
#
|
205
|
-
# Create or update
|
205
|
+
# Create or update a log profile in Azure Monitoring REST API.
|
206
206
|
#
|
207
207
|
# @param log_profile_name [String] The name of the log profile.
|
208
|
-
# @param parameters [
|
209
|
-
#
|
208
|
+
# @param parameters [LogProfileProperties] Parameters supplied to the
|
209
|
+
# operation.
|
210
210
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
211
211
|
# will be added to the HTTP request.
|
212
212
|
#
|
@@ -217,11 +217,11 @@ module Azure::ARM::Insights
|
|
217
217
|
end
|
218
218
|
|
219
219
|
#
|
220
|
-
# Create or update
|
220
|
+
# Create or update a log profile in Azure Monitoring REST API.
|
221
221
|
#
|
222
222
|
# @param log_profile_name [String] The name of the log profile.
|
223
|
-
# @param parameters [
|
224
|
-
#
|
223
|
+
# @param parameters [LogProfileProperties] Parameters supplied to the
|
224
|
+
# operation.
|
225
225
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
226
226
|
# to the HTTP request.
|
227
227
|
#
|
@@ -243,7 +243,7 @@ module Azure::ARM::Insights
|
|
243
243
|
request_headers['Content-Type'] = 'application/json; charset=utf-8'
|
244
244
|
|
245
245
|
# Serialize Request
|
246
|
-
request_mapper =
|
246
|
+
request_mapper = LogProfileProperties.mapper()
|
247
247
|
request_content = @client.serialize(request_mapper, parameters, 'parameters')
|
248
248
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
249
249
|
|
@@ -27,8 +27,9 @@ module Azure::ARM::Insights
|
|
27
27
|
# being activated.
|
28
28
|
attr_accessor :condition
|
29
29
|
|
30
|
-
# @return [Array<RuleAction>] the actions that are performed
|
31
|
-
# alert rule becomes active, and when an alert condition is
|
30
|
+
# @return [Array<RuleAction>] the array of actions that are performed
|
31
|
+
# when the alert rule becomes active, and when an alert condition is
|
32
|
+
# resolved.
|
32
33
|
attr_accessor :actions
|
33
34
|
|
34
35
|
# @return [DateTime] Last time the rule was updated in ISO8601 format.
|
@@ -12,8 +12,8 @@ module Azure::ARM::Insights
|
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] the operation associated with the notification and
|
16
|
-
#
|
15
|
+
# @return [String] the operation associated with the notification and its
|
16
|
+
# value must be "scale". Default value: 'Scale' .
|
17
17
|
attr_accessor :operation
|
18
18
|
|
19
19
|
# @return [EmailNotification] the email notification.
|
@@ -21,7 +21,8 @@ module Azure::ARM::Insights
|
|
21
21
|
attr_accessor :notifications
|
22
22
|
|
23
23
|
# @return [Boolean] the enabled flag. Specifies whether automatic scaling
|
24
|
-
# is enabled for the resource.
|
24
|
+
# is enabled for the resource. The default value is 'true'. Default
|
25
|
+
# value: true .
|
25
26
|
attr_accessor :enabled
|
26
27
|
|
27
28
|
# @return [String] the name of the autoscale setting.
|
@@ -6,7 +6,7 @@
|
|
6
6
|
module Azure::ARM::Insights
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Email notification.
|
9
|
+
# Email notification of an autoscale event.
|
10
10
|
#
|
11
11
|
class EmailNotification
|
12
12
|
|
@@ -20,7 +20,8 @@ module Azure::ARM::Insights
|
|
20
20
|
# subscription co-administrators.
|
21
21
|
attr_accessor :send_to_subscription_co_administrators
|
22
22
|
|
23
|
-
# @return [Array<String>] the custom
|
23
|
+
# @return [Array<String>] the custom e-mails list. This value can be null
|
24
|
+
# or empty, in which case this attribute will be ignored.
|
24
25
|
attr_accessor :custom_emails
|
25
26
|
|
26
27
|
|
@@ -20,7 +20,8 @@ module Azure::ARM::Insights
|
|
20
20
|
attr_accessor :odata.type
|
21
21
|
|
22
22
|
# @return [RuleDataSource] the resource from which the rule collects its
|
23
|
-
# data.
|
23
|
+
# data. For this type dataSource will always be of type
|
24
|
+
# RuleMetricDataSource.
|
24
25
|
attr_accessor :data_source
|
25
26
|
|
26
27
|
# @return [Duration] the period of time (in ISO 8601 duration format)
|
@@ -47,7 +48,7 @@ module Azure::ARM::Insights
|
|
47
48
|
model_properties: {
|
48
49
|
odata.type: {
|
49
50
|
required: true,
|
50
|
-
serialized_name: 'odata
|
51
|
+
serialized_name: 'odata\\.type',
|
51
52
|
type: {
|
52
53
|
name: 'String'
|
53
54
|
}
|
@@ -6,57 +6,66 @@
|
|
6
6
|
module Azure::ARM::Insights
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# The log profile properties.
|
10
10
|
#
|
11
|
-
class
|
11
|
+
class LogProfileProperties
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] the resource id of the storage account
|
15
|
+
# @return [String] the resource id of the storage account to which you
|
16
|
+
# would like to send the Activity Log.
|
16
17
|
attr_accessor :storage_account_id
|
17
18
|
|
18
|
-
# @return [String]
|
19
|
+
# @return [String] The service bus rule ID of the service bus namespace
|
20
|
+
# in which you would like to have Event Hubs created for streaming the
|
21
|
+
# Activity Log. The rule ID is of the format: '{service bus resource
|
22
|
+
# ID}/authorizationrules/{key name}'.
|
19
23
|
attr_accessor :service_bus_rule_id
|
20
24
|
|
21
|
-
# @return [Array<String>]
|
25
|
+
# @return [Array<String>] List of regions for which Activity Log events
|
26
|
+
# should be stored or streamed. It is a comma separated list of valid ARM
|
27
|
+
# locations including the 'global' location.
|
22
28
|
attr_accessor :locations
|
23
29
|
|
24
|
-
# @return [Array<String>]
|
30
|
+
# @return [Array<String>] the categories of the logs. These categories
|
31
|
+
# are created as is convenient to the user. Some values are: 'Write',
|
32
|
+
# 'Delete', and/or 'Action.'
|
25
33
|
attr_accessor :categories
|
26
34
|
|
27
|
-
# @return [RetentionPolicy] the retention policy for
|
35
|
+
# @return [RetentionPolicy] the retention policy for the events in the
|
36
|
+
# log.
|
28
37
|
attr_accessor :retention_policy
|
29
38
|
|
30
39
|
|
31
40
|
#
|
32
|
-
# Mapper for
|
41
|
+
# Mapper for LogProfileProperties class as Ruby Hash.
|
33
42
|
# This will be used for serialization/deserialization.
|
34
43
|
#
|
35
44
|
def self.mapper()
|
36
45
|
{
|
37
46
|
required: false,
|
38
|
-
serialized_name: '
|
47
|
+
serialized_name: 'LogProfileProperties',
|
39
48
|
type: {
|
40
49
|
name: 'Composite',
|
41
|
-
class_name: '
|
50
|
+
class_name: 'LogProfileProperties',
|
42
51
|
model_properties: {
|
43
52
|
storage_account_id: {
|
44
|
-
required:
|
45
|
-
serialized_name: '
|
53
|
+
required: true,
|
54
|
+
serialized_name: 'storageAccountId',
|
46
55
|
type: {
|
47
56
|
name: 'String'
|
48
57
|
}
|
49
58
|
},
|
50
59
|
service_bus_rule_id: {
|
51
60
|
required: false,
|
52
|
-
serialized_name: '
|
61
|
+
serialized_name: 'serviceBusRuleId',
|
53
62
|
type: {
|
54
63
|
name: 'String'
|
55
64
|
}
|
56
65
|
},
|
57
66
|
locations: {
|
58
|
-
required:
|
59
|
-
serialized_name: '
|
67
|
+
required: true,
|
68
|
+
serialized_name: 'locations',
|
60
69
|
type: {
|
61
70
|
name: 'Sequence',
|
62
71
|
element: {
|
@@ -70,7 +79,7 @@ module Azure::ARM::Insights
|
|
70
79
|
},
|
71
80
|
categories: {
|
72
81
|
required: false,
|
73
|
-
serialized_name: '
|
82
|
+
serialized_name: 'categories',
|
74
83
|
type: {
|
75
84
|
name: 'Sequence',
|
76
85
|
element: {
|
@@ -84,7 +93,7 @@ module Azure::ARM::Insights
|
|
84
93
|
},
|
85
94
|
retention_policy: {
|
86
95
|
required: false,
|
87
|
-
serialized_name: '
|
96
|
+
serialized_name: 'retentionPolicy',
|
88
97
|
type: {
|
89
98
|
name: 'Composite',
|
90
99
|
class_name: 'RetentionPolicy'
|