azure_mgmt_monitor 0.17.6 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +11 -8
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +24 -19
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +35 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +9 -9
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
  7. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +1 -1
  8. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension.rb +80 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension_operation_type.rb +16 -0
  10. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +1 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +1 -1
  12. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  13. data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  14. data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +14 -14
  15. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +21 -21
  16. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
  17. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  18. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  19. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +16 -11
  20. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +19 -5
  21. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +1 -1
  22. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource.rb +150 -0
  23. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource_collection.rb +57 -0
  24. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_log_settings.rb +59 -0
  25. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_proxy_only_resource.rb +82 -0
  26. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +10 -5
  27. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/subscription_diagnostic_settings_operations.rb +405 -0
  28. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +1 -1
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +1 -1
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  32. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +1 -1
  33. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  34. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +2 -1
  35. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +3 -2
  36. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +3 -4
  37. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +1 -1
  38. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +4 -0
  39. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  40. data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +25 -17
  41. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +10 -10
  42. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_metric_criteria.rb +175 -0
  43. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_failing_periods.rb +61 -0
  44. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_operator.rb +17 -0
  45. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_sensitivity.rb +17 -0
  46. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +3 -3
  47. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +2 -0
  48. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_multiple_resource_multiple_metric_criteria.rb +90 -0
  49. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +27 -1
  50. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +27 -1
  51. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +56 -31
  52. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +2 -1
  53. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/multi_metric_criteria.rb +142 -0
  54. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/operator.rb +20 -0
  55. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb +98 -0
  56. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
  57. data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +8 -5
  58. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +1 -0
  59. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +2 -2
  60. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +1 -1
  61. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/criteria.rb +66 -0
  62. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/dimension.rb +79 -0
  63. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +4 -3
  64. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_to_metric_action.rb +71 -0
  65. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +3 -2
  66. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  67. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  68. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  69. data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  70. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  71. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +1 -1
  72. data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +18 -9
  73. data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +1 -1
  74. data/lib/2019-03-01/generated/azure_mgmt_monitor/baselines.rb +186 -0
  75. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_metadata.rb +57 -0
  76. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_sensitivity.rb +17 -0
  77. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_baselines_response.rb +55 -0
  78. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_single_dimension.rb +57 -0
  79. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  80. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_baseline.rb +85 -0
  81. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_metric_baseline.rb +129 -0
  82. data/lib/2019-03-01/generated/azure_mgmt_monitor/models/time_series_baseline.rb +127 -0
  83. data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -1
  84. data/lib/2019-06-01/generated/azure_mgmt_monitor.rb +45 -0
  85. data/lib/2019-06-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
  86. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
  87. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  88. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
  89. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
  90. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
  91. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  92. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
  93. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
  94. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
  95. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  96. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  97. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
  98. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  99. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
  100. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
  101. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
  102. data/lib/2019-06-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +115 -0
  103. data/lib/2019-06-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  104. data/lib/2019-06-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
  105. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor.rb +49 -0
  106. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope.rb +123 -0
  107. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope_list_result.rb +102 -0
  108. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_additional_info.rb +59 -0
  109. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  110. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response_common.rb +93 -0
  111. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/operation_status.rb +102 -0
  112. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection.rb +100 -0
  113. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection_list_result.rb +100 -0
  114. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_property.rb +46 -0
  115. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource.rb +95 -0
  116. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource_list_result.rb +100 -0
  117. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_scopes_resource.rb +101 -0
  118. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_service_connection_state_property.rb +71 -0
  119. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
  120. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource.rb +85 -0
  121. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource_list_result.rb +100 -0
  122. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
  123. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  124. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +148 -0
  125. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_endpoint_connections.rb +641 -0
  126. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_resources.rb +346 -0
  127. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scope_operation_status.rb +122 -0
  128. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scoped_resources.rb +638 -0
  129. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scopes.rb +889 -0
  130. data/lib/azure_mgmt_monitor.rb +13 -11
  131. data/lib/profiles/latest/modules/monitor_profile_module.rb +322 -132
  132. data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +65 -35
  133. data/lib/version.rb +1 -1
  134. metadata +77 -3
@@ -22,7 +22,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
22
22
  attr_reader :client
23
23
 
24
24
  #
25
- # Creates or updates an alert rule.
25
+ # Creates or updates a classic metric alert rule.
26
26
  #
27
27
  # @param resource_group_name [String] The name of the resource group.
28
28
  # @param rule_name [String] The name of the rule.
@@ -39,7 +39,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
39
39
  end
40
40
 
41
41
  #
42
- # Creates or updates an alert rule.
42
+ # Creates or updates a classic metric alert rule.
43
43
  #
44
44
  # @param resource_group_name [String] The name of the resource group.
45
45
  # @param rule_name [String] The name of the rule.
@@ -55,7 +55,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
55
55
  end
56
56
 
57
57
  #
58
- # Creates or updates an alert rule.
58
+ # Creates or updates a classic metric alert rule.
59
59
  #
60
60
  # @param resource_group_name [String] The name of the resource group.
61
61
  # @param rule_name [String] The name of the rule.
@@ -140,7 +140,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
140
140
  end
141
141
 
142
142
  #
143
- # Deletes an alert rule
143
+ # Deletes a classic metric alert rule
144
144
  #
145
145
  # @param resource_group_name [String] The name of the resource group.
146
146
  # @param rule_name [String] The name of the rule.
@@ -154,7 +154,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
154
154
  end
155
155
 
156
156
  #
157
- # Deletes an alert rule
157
+ # Deletes a classic metric alert rule
158
158
  #
159
159
  # @param resource_group_name [String] The name of the resource group.
160
160
  # @param rule_name [String] The name of the rule.
@@ -168,7 +168,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
168
168
  end
169
169
 
170
170
  #
171
- # Deletes an alert rule
171
+ # Deletes a classic metric alert rule
172
172
  #
173
173
  # @param resource_group_name [String] The name of the resource group.
174
174
  # @param rule_name [String] The name of the rule.
@@ -223,7 +223,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
223
223
  end
224
224
 
225
225
  #
226
- # Gets an alert rule
226
+ # Gets a classic metric alert rule
227
227
  #
228
228
  # @param resource_group_name [String] The name of the resource group.
229
229
  # @param rule_name [String] The name of the rule.
@@ -238,7 +238,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
238
238
  end
239
239
 
240
240
  #
241
- # Gets an alert rule
241
+ # Gets a classic metric alert rule
242
242
  #
243
243
  # @param resource_group_name [String] The name of the resource group.
244
244
  # @param rule_name [String] The name of the rule.
@@ -252,7 +252,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
252
252
  end
253
253
 
254
254
  #
255
- # Gets an alert rule
255
+ # Gets a classic metric alert rule
256
256
  #
257
257
  # @param resource_group_name [String] The name of the resource group.
258
258
  # @param rule_name [String] The name of the rule.
@@ -317,8 +317,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
317
317
  end
318
318
 
319
319
  #
320
- # Updates an existing AlertRuleResource. To update other fields use the
321
- # CreateOrUpdate method.
320
+ # Updates an existing classic metric AlertRuleResource. To update other fields
321
+ # use the CreateOrUpdate method.
322
322
  #
323
323
  # @param resource_group_name [String] The name of the resource group.
324
324
  # @param rule_name [String] The name of the rule.
@@ -335,8 +335,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
335
335
  end
336
336
 
337
337
  #
338
- # Updates an existing AlertRuleResource. To update other fields use the
339
- # CreateOrUpdate method.
338
+ # Updates an existing classic metric AlertRuleResource. To update other fields
339
+ # use the CreateOrUpdate method.
340
340
  #
341
341
  # @param resource_group_name [String] The name of the resource group.
342
342
  # @param rule_name [String] The name of the rule.
@@ -352,8 +352,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
352
352
  end
353
353
 
354
354
  #
355
- # Updates an existing AlertRuleResource. To update other fields use the
356
- # CreateOrUpdate method.
355
+ # Updates an existing classic metric AlertRuleResource. To update other fields
356
+ # use the CreateOrUpdate method.
357
357
  #
358
358
  # @param resource_group_name [String] The name of the resource group.
359
359
  # @param rule_name [String] The name of the rule.
@@ -438,7 +438,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
438
438
  end
439
439
 
440
440
  #
441
- # List the alert rules within a resource group.
441
+ # List the classic metric alert rules within a resource group.
442
442
  #
443
443
  # @param resource_group_name [String] The name of the resource group.
444
444
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -452,7 +452,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
452
452
  end
453
453
 
454
454
  #
455
- # List the alert rules within a resource group.
455
+ # List the classic metric alert rules within a resource group.
456
456
  #
457
457
  # @param resource_group_name [String] The name of the resource group.
458
458
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -465,7 +465,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
465
465
  end
466
466
 
467
467
  #
468
- # List the alert rules within a resource group.
468
+ # List the classic metric alert rules within a resource group.
469
469
  #
470
470
  # @param resource_group_name [String] The name of the resource group.
471
471
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -528,7 +528,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
528
528
  end
529
529
 
530
530
  #
531
- # List the alert rules within a subscription.
531
+ # List the classic metric alert rules within a subscription.
532
532
  #
533
533
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
534
534
  # will be added to the HTTP request.
@@ -541,7 +541,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
541
541
  end
542
542
 
543
543
  #
544
- # List the alert rules within a subscription.
544
+ # List the classic metric alert rules within a subscription.
545
545
  #
546
546
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
547
547
  # will be added to the HTTP request.
@@ -553,7 +553,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
553
553
  end
554
554
 
555
555
  #
556
- # List the alert rules within a subscription.
556
+ # List the classic metric alert rules within a subscription.
557
557
  #
558
558
  # @param [Hash{String => String}] A hash of custom headers that will be added
559
559
  # to the HTTP request.
@@ -35,12 +35,12 @@ module Azure::Monitor::Mgmt::V2016_03_01
35
35
  # generated and included in each request. Default is true.
36
36
  attr_accessor :generate_client_request_id
37
37
 
38
- # @return [AlertRules] alert_rules
39
- attr_reader :alert_rules
40
-
41
38
  # @return [AlertRuleIncidents] alert_rule_incidents
42
39
  attr_reader :alert_rule_incidents
43
40
 
41
+ # @return [AlertRules] alert_rules
42
+ attr_reader :alert_rules
43
+
44
44
  # @return [LogProfiles] log_profiles
45
45
  attr_reader :log_profiles
46
46
 
@@ -60,8 +60,8 @@ module Azure::Monitor::Mgmt::V2016_03_01
60
60
  fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
61
61
  @credentials = credentials
62
62
 
63
- @alert_rules = AlertRules.new(self)
64
63
  @alert_rule_incidents = AlertRuleIncidents.new(self)
64
+ @alert_rules = AlertRules.new(self)
65
65
  @log_profiles = LogProfiles.new(self)
66
66
  @metric_definitions = MetricDefinitions.new(self)
67
67
  @api_version = '2016-03-01'
@@ -136,7 +136,7 @@ module Azure::Monitor::Mgmt::V2016_03_01
136
136
  #
137
137
  def add_telemetry
138
138
  sdk_information = 'azure_mgmt_monitor'
139
- sdk_information = "#{sdk_information}/0.17.6"
139
+ sdk_information = "#{sdk_information}/0.18.0"
140
140
  add_user_agent_information(sdk_information)
141
141
  end
142
142
  end
@@ -126,7 +126,7 @@ module Azure::Monitor::Mgmt::V2016_09_01
126
126
  #
127
127
  def add_telemetry
128
128
  sdk_information = 'azure_mgmt_monitor'
129
- sdk_information = "#{sdk_information}/0.17.6"
129
+ sdk_information = "#{sdk_information}/0.18.0"
130
130
  add_user_agent_information(sdk_information)
131
131
  end
132
132
  end
@@ -128,7 +128,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_monitor'
131
- sdk_information = "#{sdk_information}/0.17.6"
131
+ sdk_information = "#{sdk_information}/0.18.0"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -20,31 +20,36 @@ require '2017-05-01-preview/generated/azure_mgmt_monitor/module_definition'
20
20
  require 'ms_rest_azure'
21
21
 
22
22
  module Azure::Monitor::Mgmt::V2017_05_01_preview
23
- autoload :DiagnosticSettingsOperations, '2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb'
24
23
  autoload :DiagnosticSettingsCategoryOperations, '2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb'
24
+ autoload :DiagnosticSettingsOperations, '2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb'
25
25
  autoload :MetricDefinitions, '2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb'
26
26
  autoload :Metrics, '2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb'
27
+ autoload :SubscriptionDiagnosticSettingsOperations, '2017-05-01-preview/generated/azure_mgmt_monitor/subscription_diagnostic_settings_operations.rb'
27
28
  autoload :MonitorManagementClient, '2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb'
28
29
 
29
30
  module Models
30
- autoload :LocalizableString, '2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb'
31
- autoload :ProxyOnlyResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/proxy_only_resource.rb'
32
- autoload :MetricAvailability, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb'
33
- autoload :MetricSettings, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_settings.rb'
34
31
  autoload :MetricDefinition, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition.rb'
35
- autoload :LogSettings, '2017-05-01-preview/generated/azure_mgmt_monitor/models/log_settings.rb'
36
- autoload :Response, '2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb'
37
- autoload :ErrorResponse, '2017-05-01-preview/generated/azure_mgmt_monitor/models/error_response.rb'
32
+ autoload :ProxyOnlyResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/proxy_only_resource.rb'
38
33
  autoload :MetricDefinitionCollection, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb'
39
34
  autoload :DiagnosticSettingsCategoryResourceCollection, '2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource_collection.rb'
40
35
  autoload :MetricValue, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_value.rb'
41
- autoload :DiagnosticSettingsResourceCollection, '2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb'
42
- autoload :MetadataValue, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb'
43
36
  autoload :RetentionPolicy, '2017-05-01-preview/generated/azure_mgmt_monitor/models/retention_policy.rb'
37
+ autoload :MetadataValue, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb'
38
+ autoload :LogSettings, '2017-05-01-preview/generated/azure_mgmt_monitor/models/log_settings.rb'
44
39
  autoload :TimeSeriesElement, '2017-05-01-preview/generated/azure_mgmt_monitor/models/time_series_element.rb'
40
+ autoload :DiagnosticSettingsResourceCollection, '2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource_collection.rb'
45
41
  autoload :Metric, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric.rb'
46
- autoload :DiagnosticSettingsResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb'
42
+ autoload :MetricAvailability, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb'
43
+ autoload :Response, '2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb'
44
+ autoload :ErrorResponse, '2017-05-01-preview/generated/azure_mgmt_monitor/models/error_response.rb'
45
+ autoload :SubscriptionProxyOnlyResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_proxy_only_resource.rb'
46
+ autoload :MetricSettings, '2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_settings.rb'
47
+ autoload :SubscriptionDiagnosticSettingsResourceCollection, '2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource_collection.rb'
48
+ autoload :LocalizableString, '2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb'
49
+ autoload :SubscriptionLogSettings, '2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_log_settings.rb'
47
50
  autoload :DiagnosticSettingsCategoryResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_category_resource.rb'
51
+ autoload :DiagnosticSettingsResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb'
52
+ autoload :SubscriptionDiagnosticSettingsResource, '2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource.rb'
48
53
  autoload :CategoryType, '2017-05-01-preview/generated/azure_mgmt_monitor/models/category_type.rb'
49
54
  autoload :Unit, '2017-05-01-preview/generated/azure_mgmt_monitor/models/unit.rb'
50
55
  autoload :AggregationType, '2017-05-01-preview/generated/azure_mgmt_monitor/models/aggregation_type.rb'
@@ -27,18 +27,24 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
27
27
  # default event hub will be selected.
28
28
  attr_accessor :event_hub_name
29
29
 
30
- # @return [Array<MetricSettings>] the list of metric settings.
30
+ # @return [Array<MetricSettings>] The list of metric settings.
31
31
  attr_accessor :metrics
32
32
 
33
- # @return [Array<LogSettings>] the list of logs settings.
33
+ # @return [Array<LogSettings>] The list of logs settings.
34
34
  attr_accessor :logs
35
35
 
36
- # @return [String] The workspace ID (resource ID of a Log Analytics
37
- # workspace) for a Log Analytics workspace to which you would like to
38
- # send Diagnostic Logs. Example:
36
+ # @return [String] The full ARM resource ID of the Log Analytics
37
+ # workspace to which you would like to send Diagnostic Logs. Example:
39
38
  # /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
40
39
  attr_accessor :workspace_id
41
40
 
41
+ # @return [String] A string indicating whether the export to Log
42
+ # Analytics should use the default destination type, i.e.
43
+ # AzureDiagnostics, or use a destination type constructed as follows:
44
+ # <normalized service identity>_<normalized category name>. Possible
45
+ # values are: Dedicated and null (null is default.)
46
+ attr_accessor :log_analytics_destination_type
47
+
42
48
 
43
49
  #
44
50
  # Mapper for DiagnosticSettingsResource class as Ruby Hash.
@@ -153,6 +159,14 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
153
159
  type: {
154
160
  name: 'String'
155
161
  }
162
+ },
163
+ log_analytics_destination_type: {
164
+ client_side_validation: true,
165
+ required: false,
166
+ serialized_name: 'properties.logAnalyticsDestinationType',
167
+ type: {
168
+ name: 'String'
169
+ }
156
170
  }
157
171
  }
158
172
  }
@@ -17,7 +17,7 @@ module Azure::Monitor::Mgmt::V2017_05_01_preview
17
17
  attr_accessor :cost
18
18
 
19
19
  # @return [String] The timespan for which the data was retrieved. Its
20
- # value consists of two datatimes concatenated, separated by '/'. This
20
+ # value consists of two datetimes concatenated, separated by '/'. This
21
21
  # may be adjusted in the future and returned back from what was
22
22
  # originally requested.
23
23
  attr_accessor :timespan
@@ -0,0 +1,150 @@
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_05_01_preview
7
+ module Models
8
+ #
9
+ # The subscription diagnostic setting resource.
10
+ #
11
+ class SubscriptionDiagnosticSettingsResource < SubscriptionProxyOnlyResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource ID of the storage account to which you
16
+ # would like to send Diagnostic Logs.
17
+ attr_accessor :storage_account_id
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
+
23
+ # @return [String] The resource Id for the event hub authorization rule.
24
+ attr_accessor :event_hub_authorization_rule_id
25
+
26
+ # @return [String] The name of the event hub. If none is specified, the
27
+ # default event hub will be selected.
28
+ attr_accessor :event_hub_name
29
+
30
+ # @return [Array<SubscriptionLogSettings>] The list of logs settings.
31
+ attr_accessor :logs
32
+
33
+ # @return [String] The full ARM resource ID of the Log Analytics
34
+ # workspace to which you would like to send Diagnostic Logs. Example:
35
+ # /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
36
+ attr_accessor :workspace_id
37
+
38
+
39
+ #
40
+ # Mapper for SubscriptionDiagnosticSettingsResource class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'SubscriptionDiagnosticSettingsResource',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'SubscriptionDiagnosticSettingsResource',
51
+ model_properties: {
52
+ id: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ name: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'name',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ type: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'type',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ location: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ serialized_name: 'location',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ storage_account_id: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'properties.storageAccountId',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ service_bus_rule_id: {
96
+ client_side_validation: true,
97
+ required: false,
98
+ serialized_name: 'properties.serviceBusRuleId',
99
+ type: {
100
+ name: 'String'
101
+ }
102
+ },
103
+ event_hub_authorization_rule_id: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ serialized_name: 'properties.eventHubAuthorizationRuleId',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ event_hub_name: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ serialized_name: 'properties.eventHubName',
115
+ type: {
116
+ name: 'String'
117
+ }
118
+ },
119
+ logs: {
120
+ client_side_validation: true,
121
+ required: false,
122
+ serialized_name: 'properties.logs',
123
+ type: {
124
+ name: 'Sequence',
125
+ element: {
126
+ client_side_validation: true,
127
+ required: false,
128
+ serialized_name: 'SubscriptionLogSettingsElementType',
129
+ type: {
130
+ name: 'Composite',
131
+ class_name: 'SubscriptionLogSettings'
132
+ }
133
+ }
134
+ }
135
+ },
136
+ workspace_id: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ serialized_name: 'properties.workspaceId',
140
+ type: {
141
+ name: 'String'
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ end
148
+ end
149
+ end
150
+ end