azure_mgmt_monitor 0.11.0 → 0.12.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_monitor/action_groups.rb +8 -8
- data/lib/generated/azure_mgmt_monitor/alert_rules.rb +11 -1
- data/lib/generated/azure_mgmt_monitor/models/action_group_list.rb +2 -1
- data/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb +1 -1
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +2 -1
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +1 -1
- data/lib/generated/azure_mgmt_monitor/models/email_receiver.rb +2 -2
- data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +2 -1
- data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +2 -1
- data/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb +2 -2
- data/lib/generated/azure_mgmt_monitor/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38ac0edae1bd91c095cd38981d4ab4484974a9aa
|
4
|
+
data.tar.gz: 6c0b408d11fb096f044a071dc9f5f5aa90400433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f1ec95f9c9b9c45cf4918a10567e2f3dae18f54ebd21ef543f4fc26b4661d2e628c43f7524fe60fd9e80162f41c344d4c1bc17b6e8d44d8ea918bb5304651a
|
7
|
+
data.tar.gz: a64fc640477743c0ce5feef8dbb2c08741a5b86a792305a9fa562cfe8a59e6e61c52bf0fed53e26e0ea3b09b8c3f6d5b364394a0666082ca4c4a7cd62777dfde
|
@@ -107,7 +107,7 @@ module Azure::ARM::Monitor
|
|
107
107
|
response_content = http_response.body
|
108
108
|
unless status_code == 200 || status_code == 201
|
109
109
|
error_model = JSON.load(response_content)
|
110
|
-
fail
|
110
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
111
111
|
end
|
112
112
|
|
113
113
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -206,9 +206,9 @@ module Azure::ARM::Monitor
|
|
206
206
|
http_response = result.response
|
207
207
|
status_code = http_response.status
|
208
208
|
response_content = http_response.body
|
209
|
-
unless status_code == 200
|
209
|
+
unless status_code == 200
|
210
210
|
error_model = JSON.load(response_content)
|
211
|
-
fail
|
211
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
212
212
|
end
|
213
213
|
|
214
214
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -298,7 +298,7 @@ module Azure::ARM::Monitor
|
|
298
298
|
response_content = http_response.body
|
299
299
|
unless status_code == 200 || status_code == 204
|
300
300
|
error_model = JSON.load(response_content)
|
301
|
-
fail
|
301
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
302
302
|
end
|
303
303
|
|
304
304
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -371,7 +371,7 @@ module Azure::ARM::Monitor
|
|
371
371
|
response_content = http_response.body
|
372
372
|
unless status_code == 200
|
373
373
|
error_model = JSON.load(response_content)
|
374
|
-
fail
|
374
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
375
375
|
end
|
376
376
|
|
377
377
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -458,7 +458,7 @@ module Azure::ARM::Monitor
|
|
458
458
|
response_content = http_response.body
|
459
459
|
unless status_code == 200
|
460
460
|
error_model = JSON.load(response_content)
|
461
|
-
fail
|
461
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
462
462
|
end
|
463
463
|
|
464
464
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -562,9 +562,9 @@ module Azure::ARM::Monitor
|
|
562
562
|
http_response = result.response
|
563
563
|
status_code = http_response.status
|
564
564
|
response_content = http_response.body
|
565
|
-
unless status_code == 200 || status_code == 409
|
565
|
+
unless status_code == 200 || status_code == 409
|
566
566
|
error_model = JSON.load(response_content)
|
567
|
-
fail
|
567
|
+
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
568
568
|
end
|
569
569
|
|
570
570
|
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
@@ -396,7 +396,7 @@ module Azure::ARM::Monitor
|
|
396
396
|
http_response = result.response
|
397
397
|
status_code = http_response.status
|
398
398
|
response_content = http_response.body
|
399
|
-
unless status_code == 200
|
399
|
+
unless status_code == 200 || status_code == 201
|
400
400
|
error_model = JSON.load(response_content)
|
401
401
|
fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
|
402
402
|
end
|
@@ -412,6 +412,16 @@ module Azure::ARM::Monitor
|
|
412
412
|
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
413
413
|
end
|
414
414
|
end
|
415
|
+
# Deserialize Response
|
416
|
+
if status_code == 201
|
417
|
+
begin
|
418
|
+
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
419
|
+
result_mapper = Azure::ARM::Monitor::Models::AlertRuleResource.mapper()
|
420
|
+
result.body = @client.deserialize(result_mapper, parsed_response)
|
421
|
+
rescue Exception => e
|
422
|
+
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
423
|
+
end
|
424
|
+
end
|
415
425
|
|
416
426
|
result
|
417
427
|
end
|
@@ -16,7 +16,8 @@ module Azure::ARM::Monitor
|
|
16
16
|
# @return [Array<ActionGroupResource>] The list of action groups.
|
17
17
|
attr_accessor :value
|
18
18
|
|
19
|
-
# @return [String] Provides the link to
|
19
|
+
# @return [String] Provides the link to retrieve the next set of
|
20
|
+
# elements.
|
20
21
|
attr_accessor :next_link
|
21
22
|
|
22
23
|
|
@@ -18,7 +18,7 @@ module Azure::ARM::Monitor
|
|
18
18
|
attr_accessor :group_short_name
|
19
19
|
|
20
20
|
# @return [Boolean] Indicates whether this action group is enabled. If an
|
21
|
-
# action group is not enabled, then none of its
|
21
|
+
# action group is not enabled, then none of its receivers will receive
|
22
22
|
# communications. Default value: true .
|
23
23
|
attr_accessor :enabled
|
24
24
|
|
@@ -17,7 +17,8 @@ module Azure::ARM::Monitor
|
|
17
17
|
# alerts.
|
18
18
|
attr_accessor :value
|
19
19
|
|
20
|
-
# @return [String] Provides the link to
|
20
|
+
# @return [String] Provides the link to retrieve the next set of
|
21
|
+
# elements.
|
21
22
|
attr_accessor :next_link
|
22
23
|
|
23
24
|
|
@@ -24,7 +24,7 @@ module Azure::ARM::Monitor
|
|
24
24
|
# be activated. Default value: true .
|
25
25
|
attr_accessor :enabled
|
26
26
|
|
27
|
-
# @return [ActivityLogAlertAllOfCondition] The
|
27
|
+
# @return [ActivityLogAlertAllOfCondition] The condition that will cause
|
28
28
|
# this alert to activate.
|
29
29
|
attr_accessor :condition
|
30
30
|
|
@@ -20,8 +20,8 @@ module Azure::ARM::Monitor
|
|
20
20
|
# @return [String] The email address of this receiver.
|
21
21
|
attr_accessor :email_address
|
22
22
|
|
23
|
-
# @return [ReceiverStatus]
|
24
|
-
# 'Enabled', 'Disabled'
|
23
|
+
# @return [ReceiverStatus] The receiver status of the e-mail. Possible
|
24
|
+
# values include: 'NotSpecified', 'Enabled', 'Disabled'
|
25
25
|
attr_accessor :status
|
26
26
|
|
27
27
|
|
@@ -23,7 +23,8 @@ module Azure::ARM::Monitor
|
|
23
23
|
# ID}/authorizationrules/{key name}'.
|
24
24
|
attr_accessor :service_bus_rule_id
|
25
25
|
|
26
|
-
# @return [String] The resource Id for the event hub
|
26
|
+
# @return [String] The resource Id for the event hub namespace
|
27
|
+
# authorization rule.
|
27
28
|
attr_accessor :event_hub_authorization_rule_id
|
28
29
|
|
29
30
|
# @return [Array<MetricSettings>] the list of metric settings.
|
@@ -26,7 +26,8 @@ module Azure::ARM::Monitor
|
|
26
26
|
# ID}/authorizationrules/{key name}'.
|
27
27
|
attr_accessor :service_bus_rule_id
|
28
28
|
|
29
|
-
# @return [String] The resource Id for the event hub
|
29
|
+
# @return [String] The resource Id for the event hub namespace
|
30
|
+
# authorization rule.
|
30
31
|
attr_accessor :event_hub_authorization_rule_id
|
31
32
|
|
32
33
|
# @return [Array<MetricSettings>] the list of metric settings.
|
@@ -23,8 +23,8 @@ module Azure::ARM::Monitor
|
|
23
23
|
# @return [String] The phone number of the SMS receiver.
|
24
24
|
attr_accessor :phone_number
|
25
25
|
|
26
|
-
# @return [ReceiverStatus] Possible values
|
27
|
-
# 'Enabled', 'Disabled'
|
26
|
+
# @return [ReceiverStatus] The status of the receiver. Possible values
|
27
|
+
# include: 'NotSpecified', 'Enabled', 'Disabled'
|
28
28
|
attr_accessor :status
|
29
29
|
|
30
30
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.9.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.9.0
|
83
83
|
description: Microsoft Azure Monitor Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|