azure_mgmt_monitor 0.16.1 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +0 -1
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +192 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb +1 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +9 -6
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  7. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +84 -0
  8. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  9. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +7 -6
  10. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  11. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +12 -0
  12. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  13. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  14. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  15. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +1 -1
  16. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb +2 -1
  17. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +1 -2
  18. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +1 -2
  19. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +7 -6
  20. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +1 -2
  21. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb +2 -3
  22. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +7 -6
  23. data/lib/profiles/latest/modules/monitor_profile_module.rb +0 -4
  24. data/lib/version.rb +1 -1
  25. metadata +4 -5
  26. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +0 -22
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 632ce0e54620954bb1de1f7c039ce593906186a0
4
- data.tar.gz: 1fcbda72af50b464ea0b4e55fc7ebdf43d67e524
3
+ metadata.gz: 646c12af714d390824b55a540e8b85c81dadab7c
4
+ data.tar.gz: 4e141a7d9cbd41019b29f4dbb5ca88acd4ab34b1
5
5
  SHA512:
6
- metadata.gz: 831c8b007c9ff042c38e4fb606ae5d16215d433b560e580da33b64bdbb58bf229116dee018c5e2c70c1181190bf079503f6e1e87be65d2ad3240531ce7da9810
7
- data.tar.gz: 784d0523638852fe293f1f897479dbe094fc3997fb37fd13efc699b598ae79325d72f1711f1b30fad95e5d531dad65fcbe45b40914f3b18cda201c41ba6b642c
6
+ metadata.gz: 4cd3cb720940fc8ce38648e7c9f366d15e7a57c4a6927cabc42107398cda31801ef0573e9e94def2b19c49ee3707f7e49e74f0743a8418f02f1b8084b0e95372
7
+ data.tar.gz: d9f2a63c9ee1d6bc2f6de490809b92cb4449de5f6c88b2876d2444cb96b19b7a6036838dc08a745c589e3b1c138c27f6ec2c7584e97dcff3a1ae6bfd9db7dc72
@@ -59,6 +59,5 @@ module Azure::Monitor::Mgmt::V2015_04_01
59
59
  autoload :ComparisonOperationType, '2015-04-01/generated/azure_mgmt_monitor/models/comparison_operation_type.rb'
60
60
  autoload :ScaleDirection, '2015-04-01/generated/azure_mgmt_monitor/models/scale_direction.rb'
61
61
  autoload :ScaleType, '2015-04-01/generated/azure_mgmt_monitor/models/scale_type.rb'
62
- autoload :RecurrenceFrequency, '2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb'
63
62
  end
64
63
  end
@@ -507,6 +507,90 @@ module Azure::Monitor::Mgmt::V2015_04_01
507
507
  promise.execute
508
508
  end
509
509
 
510
+ #
511
+ # Lists the autoscale settings for a subscription
512
+ #
513
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
514
+ # will be added to the HTTP request.
515
+ #
516
+ # @return [Array<AutoscaleSettingResource>] operation results.
517
+ #
518
+ def list_by_subscription(custom_headers:nil)
519
+ first_page = list_by_subscription_as_lazy(custom_headers:custom_headers)
520
+ first_page.get_all_items
521
+ end
522
+
523
+ #
524
+ # Lists the autoscale settings for a subscription
525
+ #
526
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
527
+ # will be added to the HTTP request.
528
+ #
529
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
530
+ #
531
+ def list_by_subscription_with_http_info(custom_headers:nil)
532
+ list_by_subscription_async(custom_headers:custom_headers).value!
533
+ end
534
+
535
+ #
536
+ # Lists the autoscale settings for a subscription
537
+ #
538
+ # @param [Hash{String => String}] A hash of custom headers that will be added
539
+ # to the HTTP request.
540
+ #
541
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
542
+ #
543
+ def list_by_subscription_async(custom_headers:nil)
544
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
545
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
546
+
547
+
548
+ request_headers = {}
549
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
550
+
551
+ # Set Headers
552
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
553
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
554
+ path_template = 'subscriptions/{subscriptionId}/providers/microsoft.insights/autoscalesettings'
555
+
556
+ request_url = @base_url || @client.base_url
557
+
558
+ options = {
559
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
560
+ path_params: {'subscriptionId' => @client.subscription_id},
561
+ query_params: {'api-version' => @client.api_version},
562
+ headers: request_headers.merge(custom_headers || {}),
563
+ base_url: request_url
564
+ }
565
+ promise = @client.make_request_async(:get, path_template, options)
566
+
567
+ promise = promise.then do |result|
568
+ http_response = result.response
569
+ status_code = http_response.status
570
+ response_content = http_response.body
571
+ unless status_code == 200
572
+ error_model = JSON.load(response_content)
573
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
574
+ end
575
+
576
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
577
+ # Deserialize Response
578
+ if status_code == 200
579
+ begin
580
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
581
+ result_mapper = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection.mapper()
582
+ result.body = @client.deserialize(result_mapper, parsed_response)
583
+ rescue Exception => e
584
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
585
+ end
586
+ end
587
+
588
+ result
589
+ end
590
+
591
+ promise.execute
592
+ end
593
+
510
594
  #
511
595
  # Lists the autoscale settings for a resource group
512
596
  #
@@ -595,6 +679,94 @@ module Azure::Monitor::Mgmt::V2015_04_01
595
679
  promise.execute
596
680
  end
597
681
 
682
+ #
683
+ # Lists the autoscale settings for a subscription
684
+ #
685
+ # @param next_page_link [String] The NextLink from the previous successful call
686
+ # to List operation.
687
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
688
+ # will be added to the HTTP request.
689
+ #
690
+ # @return [AutoscaleSettingResourceCollection] operation results.
691
+ #
692
+ def list_by_subscription_next(next_page_link, custom_headers:nil)
693
+ response = list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
694
+ response.body unless response.nil?
695
+ end
696
+
697
+ #
698
+ # Lists the autoscale settings for a subscription
699
+ #
700
+ # @param next_page_link [String] The NextLink from the previous successful call
701
+ # to List operation.
702
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
703
+ # will be added to the HTTP request.
704
+ #
705
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
706
+ #
707
+ def list_by_subscription_next_with_http_info(next_page_link, custom_headers:nil)
708
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers).value!
709
+ end
710
+
711
+ #
712
+ # Lists the autoscale settings for a subscription
713
+ #
714
+ # @param next_page_link [String] The NextLink from the previous successful call
715
+ # to List operation.
716
+ # @param [Hash{String => String}] A hash of custom headers that will be added
717
+ # to the HTTP request.
718
+ #
719
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
720
+ #
721
+ def list_by_subscription_next_async(next_page_link, custom_headers:nil)
722
+ fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
723
+
724
+
725
+ request_headers = {}
726
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
727
+
728
+ # Set Headers
729
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
730
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
731
+ path_template = '{nextLink}'
732
+
733
+ request_url = @base_url || @client.base_url
734
+
735
+ options = {
736
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
737
+ skip_encoding_path_params: {'nextLink' => next_page_link},
738
+ headers: request_headers.merge(custom_headers || {}),
739
+ base_url: request_url
740
+ }
741
+ promise = @client.make_request_async(:get, path_template, options)
742
+
743
+ promise = promise.then do |result|
744
+ http_response = result.response
745
+ status_code = http_response.status
746
+ response_content = http_response.body
747
+ unless status_code == 200
748
+ error_model = JSON.load(response_content)
749
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
750
+ end
751
+
752
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
753
+ # Deserialize Response
754
+ if status_code == 200
755
+ begin
756
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
757
+ result_mapper = Azure::Monitor::Mgmt::V2015_04_01::Models::AutoscaleSettingResourceCollection.mapper()
758
+ result.body = @client.deserialize(result_mapper, parsed_response)
759
+ rescue Exception => e
760
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
761
+ end
762
+ end
763
+
764
+ result
765
+ end
766
+
767
+ promise.execute
768
+ end
769
+
598
770
  #
599
771
  # Lists the autoscale settings for a resource group
600
772
  #
@@ -616,5 +788,25 @@ module Azure::Monitor::Mgmt::V2015_04_01
616
788
  end
617
789
  end
618
790
 
791
+ #
792
+ # Lists the autoscale settings for a subscription
793
+ #
794
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
795
+ # will be added to the HTTP request.
796
+ #
797
+ # @return [AutoscaleSettingResourceCollection] which provide lazy access to
798
+ # pages of the response.
799
+ #
800
+ def list_by_subscription_as_lazy(custom_headers:nil)
801
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
802
+ unless response.nil?
803
+ page = response.body
804
+ page.next_method = Proc.new do |next_page_link|
805
+ list_by_subscription_next_async(next_page_link, custom_headers:custom_headers)
806
+ end
807
+ page
808
+ end
809
+ end
810
+
619
811
  end
620
812
  end
@@ -12,7 +12,7 @@ module Azure::Monitor::Mgmt::V2015_04_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [SenderAuthorization]
15
+ # @return [SenderAuthorization] The sender authorization information.
16
16
  attr_accessor :authorization
17
17
 
18
18
  # @return [Hash{String => String}] key value pairs to identify ARM
@@ -13,10 +13,12 @@ module Azure::Monitor::Mgmt::V2015_04_01
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [RecurrenceFrequency] the recurrence frequency. How often the
17
- # schedule profile should take effect. This value must be Week, meaning
18
- # each week will have the same set of profiles. Possible values include:
19
- # 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'
16
+ # @return [String] the recurrence frequency. How often the schedule
17
+ # profile should take effect. This value must be Week, meaning each week
18
+ # will have the same set of profiles. For example, to set a daily
19
+ # schedule, set **schedule** to every day of the week. The frequency
20
+ # property specifies that the schedule is repeated weekly. Default value:
21
+ # 'Week' .
20
22
  attr_accessor :frequency
21
23
 
22
24
  # @return [RecurrentSchedule] the scheduling constraints for when the
@@ -40,10 +42,11 @@ module Azure::Monitor::Mgmt::V2015_04_01
40
42
  frequency: {
41
43
  client_side_validation: true,
42
44
  required: true,
45
+ is_constant: true,
43
46
  serialized_name: 'frequency',
47
+ default_value: 'Week',
44
48
  type: {
45
- name: 'Enum',
46
- module: 'RecurrenceFrequency'
49
+ name: 'String'
47
50
  }
48
51
  },
49
52
  schedule: {
@@ -23,15 +23,16 @@ module Azure::Monitor::Mgmt::V2015_04_01
23
23
  # @return [String] Client Api Version.
24
24
  attr_reader :api_version
25
25
 
26
- # @return [String] Gets or sets the preferred language for the response.
26
+ # @return [String] The preferred language for the response.
27
27
  attr_accessor :accept_language
28
28
 
29
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
- # Running Operations. Default value is 30.
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
31
  attr_accessor :long_running_operation_retry_timeout
32
32
 
33
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
- # is generated and included in each request. Default is true.
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
35
36
  attr_accessor :generate_client_request_id
36
37
 
37
38
  # @return [ActivityLogs] activity_logs
@@ -139,7 +140,7 @@ module Azure::Monitor::Mgmt::V2015_04_01
139
140
  #
140
141
  def add_telemetry
141
142
  sdk_information = 'azure_mgmt_monitor'
142
- sdk_information = "#{sdk_information}/0.16.0"
143
+ sdk_information = "#{sdk_information}/0.17.0"
143
144
  add_user_agent_information(sdk_information)
144
145
  end
145
146
  end
@@ -517,5 +517,89 @@ module Azure::Monitor::Mgmt::V2016_03_01
517
517
  promise.execute
518
518
  end
519
519
 
520
+ #
521
+ # List the alert rules within a subscription.
522
+ #
523
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
524
+ # will be added to the HTTP request.
525
+ #
526
+ # @return [AlertRuleResourceCollection] operation results.
527
+ #
528
+ def list_by_subscription(custom_headers:nil)
529
+ response = list_by_subscription_async(custom_headers:custom_headers).value!
530
+ response.body unless response.nil?
531
+ end
532
+
533
+ #
534
+ # List the alert rules within a subscription.
535
+ #
536
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
537
+ # will be added to the HTTP request.
538
+ #
539
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
540
+ #
541
+ def list_by_subscription_with_http_info(custom_headers:nil)
542
+ list_by_subscription_async(custom_headers:custom_headers).value!
543
+ end
544
+
545
+ #
546
+ # List the alert rules within a subscription.
547
+ #
548
+ # @param [Hash{String => String}] A hash of custom headers that will be added
549
+ # to the HTTP request.
550
+ #
551
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
552
+ #
553
+ def list_by_subscription_async(custom_headers:nil)
554
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
555
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
556
+
557
+
558
+ request_headers = {}
559
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
560
+
561
+ # Set Headers
562
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
563
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
564
+ path_template = 'subscriptions/{subscriptionId}/providers/microsoft.insights/alertrules'
565
+
566
+ request_url = @base_url || @client.base_url
567
+
568
+ options = {
569
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
570
+ path_params: {'subscriptionId' => @client.subscription_id},
571
+ query_params: {'api-version' => @client.api_version},
572
+ headers: request_headers.merge(custom_headers || {}),
573
+ base_url: request_url
574
+ }
575
+ promise = @client.make_request_async(:get, path_template, options)
576
+
577
+ promise = promise.then do |result|
578
+ http_response = result.response
579
+ status_code = http_response.status
580
+ response_content = http_response.body
581
+ unless status_code == 200
582
+ error_model = JSON.load(response_content)
583
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
584
+ end
585
+
586
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
587
+ # Deserialize Response
588
+ if status_code == 200
589
+ begin
590
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
591
+ result_mapper = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourceCollection.mapper()
592
+ result.body = @client.deserialize(result_mapper, parsed_response)
593
+ rescue Exception => e
594
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
595
+ end
596
+ end
597
+
598
+ result
599
+ end
600
+
601
+ promise.execute
602
+ end
603
+
520
604
  end
521
605
  end
@@ -23,15 +23,16 @@ module Azure::Monitor::Mgmt::V2016_03_01
23
23
  # @return [String] Client Api Version.
24
24
  attr_reader :api_version
25
25
 
26
- # @return [String] Gets or sets the preferred language for the response.
26
+ # @return [String] The preferred language for the response.
27
27
  attr_accessor :accept_language
28
28
 
29
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
- # Running Operations. Default value is 30.
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
31
  attr_accessor :long_running_operation_retry_timeout
32
32
 
33
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
- # is generated and included in each request. Default is true.
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
35
36
  attr_accessor :generate_client_request_id
36
37
 
37
38
  # @return [AlertRules] alert_rules
@@ -135,7 +136,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
135
136
  #
136
137
  def add_telemetry
137
138
  sdk_information = 'azure_mgmt_monitor'
138
- sdk_information = "#{sdk_information}/0.16.0"
139
+ sdk_information = "#{sdk_information}/0.17.0"
139
140
  add_user_agent_information(sdk_information)
140
141
  end
141
142
  end
@@ -20,15 +20,16 @@ module Azure::Monitor::Mgmt::V2016_09_01
20
20
  # @return [String] Client Api Version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
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.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  # @return [Metrics] metrics
@@ -125,7 +126,7 @@ module Azure::Monitor::Mgmt::V2016_09_01
125
126
  #
126
127
  def add_telemetry
127
128
  sdk_information = 'azure_mgmt_monitor'
128
- sdk_information = "#{sdk_information}/0.16.0"
129
+ sdk_information = "#{sdk_information}/0.17.0"
129
130
  add_user_agent_information(sdk_information)
130
131
  end
131
132
  end
@@ -23,15 +23,16 @@ module Azure::Monitor::Mgmt::V2017_04_01
23
23
  # @return [String] Client Api Version.
24
24
  attr_reader :api_version
25
25
 
26
- # @return [String] Gets or sets the preferred language for the response.
26
+ # @return [String] The preferred language for the response.
27
27
  attr_accessor :accept_language
28
28
 
29
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
- # Running Operations. Default value is 30.
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
31
  attr_accessor :long_running_operation_retry_timeout
32
32
 
33
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
- # is generated and included in each request. Default is true.
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
35
36
  attr_accessor :generate_client_request_id
36
37
 
37
38
  # @return [ActionGroups] action_groups
@@ -127,7 +128,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
127
128
  #
128
129
  def add_telemetry
129
130
  sdk_information = 'azure_mgmt_monitor'
130
- sdk_information = "#{sdk_information}/0.16.0"
131
+ sdk_information = "#{sdk_information}/0.17.0"
131
132
  add_user_agent_information(sdk_information)
132
133
  end
133
134
  end
@@ -16,6 +16,10 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
16
16
  # would like to send Diagnostic Logs.
17
17
  attr_accessor :storage_account_id
18
18
 
19
+ # @return [String] The service bus rule Id of the diagnostic setting.
20
+ # This is here to maintain backwards compatibility.
21
+ attr_accessor :service_bus_rule_id
22
+
19
23
  # @return [String] The resource Id for the event hub authorization rule.
20
24
  attr_accessor :event_hub_authorization_rule_id
21
25
 
@@ -84,6 +88,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
84
88
  name: 'String'
85
89
  }
86
90
  },
91
+ service_bus_rule_id: {
92
+ client_side_validation: true,
93
+ required: false,
94
+ serialized_name: 'properties.serviceBusRuleId',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
87
99
  event_hub_authorization_rule_id: {
88
100
  client_side_validation: true,
89
101
  required: false,
@@ -20,15 +20,16 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
20
20
  # @return [String] Client Api Version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
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.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  # @return [DiagnosticSettingsOperations] diagnostic_settings_operations
@@ -133,7 +134,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
133
134
  #
134
135
  def add_telemetry
135
136
  sdk_information = 'azure_mgmt_monitor'
136
- sdk_information = "#{sdk_information}/0.16.0"
137
+ sdk_information = "#{sdk_information}/0.17.0"
137
138
  add_user_agent_information(sdk_information)
138
139
  end
139
140
  end
@@ -20,15 +20,16 @@ module Azure::Monitor::Mgmt::V2017_11_01_preview
20
20
  # @return [String] Client Api Version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
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.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  # @return [MetricBaseline] metric_baseline
@@ -120,7 +121,7 @@ module Azure::Monitor::Mgmt::V2017_11_01_preview
120
121
  #
121
122
  def add_telemetry
122
123
  sdk_information = 'azure_mgmt_monitor'
123
- sdk_information = "#{sdk_information}/0.16.0"
124
+ sdk_information = "#{sdk_information}/0.17.0"
124
125
  add_user_agent_information(sdk_information)
125
126
  end
126
127
  end
@@ -20,15 +20,16 @@ module Azure::Monitor::Mgmt::V2018_01_01
20
20
  # @return [String] Client Api Version.
21
21
  attr_reader :api_version
22
22
 
23
- # @return [String] Gets or sets the preferred language for the response.
23
+ # @return [String] The preferred language for the response.
24
24
  attr_accessor :accept_language
25
25
 
26
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
27
- # Running Operations. Default value is 30.
26
+ # @return [Integer] The retry timeout in seconds for Long Running
27
+ # Operations. Default value is 30.
28
28
  attr_accessor :long_running_operation_retry_timeout
29
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.
30
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
31
+ # generated. When set to true a unique x-ms-client-request-id value is
32
+ # generated and included in each request. Default is true.
32
33
  attr_accessor :generate_client_request_id
33
34
 
34
35
  # @return [MetricDefinitions] metric_definitions
@@ -124,7 +125,7 @@ module Azure::Monitor::Mgmt::V2018_01_01
124
125
  #
125
126
  def add_telemetry
126
127
  sdk_information = 'azure_mgmt_monitor'
127
- sdk_information = "#{sdk_information}/0.16.0"
128
+ sdk_information = "#{sdk_information}/0.17.0"
128
129
  add_user_agent_information(sdk_information)
129
130
  end
130
131
  end
@@ -15,7 +15,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
15
15
  # @return [String] the id of the action group to use.
16
16
  attr_accessor :action_group_id
17
17
 
18
- # @return [Hash{String => String}]
18
+ # @return [Hash{String => String}] The properties of a webhook object.
19
19
  attr_accessor :webhook_properties
20
20
 
21
21
 
@@ -12,7 +12,8 @@ module Azure::Monitor::Mgmt::V2018_03_01
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [Hash{String => String}]
15
+ # @return [Hash{String => String}] An object describing the type of the
16
+ # dimensions.
16
17
  attr_accessor :dimensions
17
18
 
18
19
  # @return [String] status value
@@ -6,8 +6,7 @@
6
6
  module Azure::Monitor::Mgmt::V2018_03_01
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # Criterion to filter metrics.
11
10
  #
12
11
  class MetricCriteria
13
12
 
@@ -6,8 +6,7 @@
6
6
  module Azure::Monitor::Mgmt::V2018_03_01
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # Specifies a metric dimension.
11
10
  #
12
11
  class MetricDimension
13
12
 
@@ -23,15 +23,16 @@ module Azure::Monitor::Mgmt::V2018_03_01
23
23
  # @return [String] Client Api Version.
24
24
  attr_reader :api_version
25
25
 
26
- # @return [String] Gets or sets the preferred language for the response.
26
+ # @return [String] The preferred language for the response.
27
27
  attr_accessor :accept_language
28
28
 
29
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
- # Running Operations. Default value is 30.
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
31
  attr_accessor :long_running_operation_retry_timeout
32
32
 
33
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
- # is generated and included in each request. Default is true.
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
35
36
  attr_accessor :generate_client_request_id
36
37
 
37
38
  # @return [MetricAlerts] metric_alerts
@@ -131,7 +132,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
131
132
  #
132
133
  def add_telemetry
133
134
  sdk_information = 'azure_mgmt_monitor'
134
- sdk_information = "#{sdk_information}/0.16.0"
135
+ sdk_information = "#{sdk_information}/0.17.0"
135
136
  add_user_agent_information(sdk_information)
136
137
  end
137
138
  end
@@ -6,8 +6,7 @@
6
6
  module Azure::Monitor::Mgmt::V2018_04_16
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # Action descriptor.
11
10
  #
12
11
  class Action
13
12
 
@@ -6,8 +6,7 @@
6
6
  module Azure::Monitor::Mgmt::V2018_04_16
7
7
  module Models
8
8
  #
9
- # Model object.
10
- #
9
+ # A log metrics trigger descriptor.
11
10
  #
12
11
  class LogMetricTrigger
13
12
 
@@ -18,7 +17,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
18
17
  # 'GreaterThan', 'LessThan', 'Equal'
19
18
  attr_accessor :threshold_operator
20
19
 
21
- # @return [Float]
20
+ # @return [Float] The threshold of the metric trigger.
22
21
  attr_accessor :threshold
23
22
 
24
23
  # @return [MetricTriggerType] Metric Trigger Type - 'Consecutive' or
@@ -23,15 +23,16 @@ module Azure::Monitor::Mgmt::V2018_04_16
23
23
  # @return [String] Client Api Version.
24
24
  attr_reader :api_version
25
25
 
26
- # @return [String] Gets or sets the preferred language for the response.
26
+ # @return [String] The preferred language for the response.
27
27
  attr_accessor :accept_language
28
28
 
29
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
30
- # Running Operations. Default value is 30.
29
+ # @return [Integer] The retry timeout in seconds for Long Running
30
+ # Operations. Default value is 30.
31
31
  attr_accessor :long_running_operation_retry_timeout
32
32
 
33
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
34
- # is generated and included in each request. Default is true.
33
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
34
+ # generated. When set to true a unique x-ms-client-request-id value is
35
+ # generated and included in each request. Default is true.
35
36
  attr_accessor :generate_client_request_id
36
37
 
37
38
  # @return [ScheduledQueryRules] scheduled_query_rules
@@ -123,7 +124,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
123
124
  #
124
125
  def add_telemetry
125
126
  sdk_information = 'azure_mgmt_monitor'
126
- sdk_information = "#{sdk_information}/0.16.0"
127
+ sdk_information = "#{sdk_information}/0.17.0"
127
128
  add_user_agent_information(sdk_information)
128
129
  end
129
130
  end
@@ -51,7 +51,6 @@ module Azure::Monitor::Profiles::Latest
51
51
  ComparisonOperationType = Azure::Monitor::Mgmt::V2015_04_01::Models::ComparisonOperationType
52
52
  ScaleDirection = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleDirection
53
53
  ScaleType = Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
54
- RecurrenceFrequency = Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrenceFrequency
55
54
  RuleCondition = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition
56
55
  AlertRuleResourcePatch = Azure::Monitor::Mgmt::V2016_03_01::Models::AlertRuleResourcePatch
57
56
  RuleManagementEventClaimsDataSource = Azure::Monitor::Mgmt::V2016_03_01::Models::RuleManagementEventClaimsDataSource
@@ -298,9 +297,6 @@ module Azure::Monitor::Profiles::Latest
298
297
  def scale_type
299
298
  Azure::Monitor::Mgmt::V2015_04_01::Models::ScaleType
300
299
  end
301
- def recurrence_frequency
302
- Azure::Monitor::Mgmt::V2015_04_01::Models::RecurrenceFrequency
303
- end
304
300
  def rule_condition
305
301
  Azure::Monitor::Mgmt::V2016_03_01::Models::RuleCondition
306
302
  end
data/lib/version.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  # Licensed under the MIT License. See License.txt in the project root for license information.
4
4
 
5
5
  module Azure::Monitor::Mgmt
6
- VERSION = '0.16.1'
6
+ VERSION = '0.17.0'
7
7
  end
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.16.1
4
+ version: 0.17.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: 2018-06-16 00:00:00.000000000 Z
11
+ date: 2018-07-31 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.10.0
75
+ version: 0.11.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.10.0
82
+ version: 0.11.0
83
83
  description: Microsoft Azure Monitor Library for Ruby
84
84
  email: azrubyteam@microsoft.com
85
85
  executables: []
@@ -111,7 +111,6 @@ files:
111
111
  - lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_display.rb
112
112
  - lib/2015-04-01/generated/azure_mgmt_monitor/models/operation_list_result.rb
113
113
  - lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb
114
- - lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb
115
114
  - lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb
116
115
  - lib/2015-04-01/generated/azure_mgmt_monitor/models/resource.rb
117
116
  - lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_action.rb
@@ -1,22 +0,0 @@
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::V2015_04_01
7
- module Models
8
- #
9
- # Defines values for RecurrenceFrequency
10
- #
11
- module RecurrenceFrequency
12
- None = "None"
13
- Second = "Second"
14
- Minute = "Minute"
15
- Hour = "Hour"
16
- Day = "Day"
17
- Week = "Week"
18
- Month = "Month"
19
- Year = "Year"
20
- end
21
- end
22
- end