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
@@ -0,0 +1,61 @@
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::V2018_03_01
7
+ module Models
8
+ #
9
+ # The minimum number of violations required within the selected lookback
10
+ # time window required to raise an alert.
11
+ #
12
+ class DynamicThresholdFailingPeriods
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Float] The number of aggregated lookback points. The lookback
17
+ # time window is calculated based on the aggregation granularity
18
+ # (windowSize) and the selected number of aggregated points.
19
+ attr_accessor :number_of_evaluation_periods
20
+
21
+ # @return [Float] The number of violations to trigger an alert. Should be
22
+ # smaller or equal to numberOfEvaluationPeriods.
23
+ attr_accessor :min_failing_periods_to_alert
24
+
25
+
26
+ #
27
+ # Mapper for DynamicThresholdFailingPeriods class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'DynamicThresholdFailingPeriods',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'DynamicThresholdFailingPeriods',
38
+ model_properties: {
39
+ number_of_evaluation_periods: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: 'numberOfEvaluationPeriods',
43
+ type: {
44
+ name: 'Double'
45
+ }
46
+ },
47
+ min_failing_periods_to_alert: {
48
+ client_side_validation: true,
49
+ required: true,
50
+ serialized_name: 'minFailingPeriodsToAlert',
51
+ type: {
52
+ name: 'Double'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,17 @@
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::V2018_03_01
7
+ module Models
8
+ #
9
+ # Defines values for DynamicThresholdOperator
10
+ #
11
+ module DynamicThresholdOperator
12
+ GreaterThan = "GreaterThan"
13
+ LessThan = "LessThan"
14
+ GreaterOrLessThan = "GreaterOrLessThan"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
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::V2018_03_01
7
+ module Models
8
+ #
9
+ # Defines values for DynamicThresholdSensitivity
10
+ #
11
+ module DynamicThresholdSensitivity
12
+ Low = "Low"
13
+ Medium = "Medium"
14
+ High = "High"
15
+ end
16
+ end
17
+ end
@@ -16,7 +16,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
16
16
  attr_accessor :action_group_id
17
17
 
18
18
  # @return [Hash{String => String}] The properties of a webhook object.
19
- attr_accessor :webhook_properties
19
+ attr_accessor :web_hook_properties
20
20
 
21
21
 
22
22
  #
@@ -40,10 +40,10 @@ module Azure::Monitor::Mgmt::V2018_03_01
40
40
  name: 'String'
41
41
  }
42
42
  },
43
- webhook_properties: {
43
+ web_hook_properties: {
44
44
  client_side_validation: true,
45
45
  required: false,
46
- serialized_name: 'webhookProperties',
46
+ serialized_name: 'webHookProperties',
47
47
  type: {
48
48
  name: 'Dictionary',
49
49
  value: {
@@ -14,6 +14,8 @@ module Azure::Monitor::Mgmt::V2018_03_01
14
14
 
15
15
  @@discriminatorMap = Hash.new
16
16
  @@discriminatorMap["Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"] = "MetricAlertSingleResourceMultipleMetricCriteria"
17
+ @@discriminatorMap["Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"] = "WebtestLocationAvailabilityCriteria"
18
+ @@discriminatorMap["Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"] = "MetricAlertMultipleResourceMultipleMetricCriteria"
17
19
 
18
20
  def initialize
19
21
  @odatatype = "MetricAlertCriteria"
@@ -0,0 +1,90 @@
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::V2018_03_01
7
+ module Models
8
+ #
9
+ # Specifies the metric alert criteria for multiple resource that has
10
+ # multiple metric criteria.
11
+ #
12
+ class MetricAlertMultipleResourceMultipleMetricCriteria < MetricAlertCriteria
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @odatatype = "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"
19
+ end
20
+
21
+ attr_accessor :odatatype
22
+
23
+ # @return [Array<MultiMetricCriteria>] the list of multiple metric
24
+ # criteria for this 'all of' operation.
25
+ attr_accessor :all_of
26
+
27
+
28
+ #
29
+ # Mapper for MetricAlertMultipleResourceMultipleMetricCriteria class as
30
+ # Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ client_side_validation: true,
36
+ required: false,
37
+ serialized_name: 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'MetricAlertMultipleResourceMultipleMetricCriteria',
41
+ model_properties: {
42
+ additional_properties: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ type: {
46
+ name: 'Dictionary',
47
+ value: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'ObjectElementType',
51
+ type: {
52
+ name: 'Object'
53
+ }
54
+ }
55
+ }
56
+ },
57
+ odatatype: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'odata\\.type',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ all_of: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'allOf',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'MultiMetricCriteriaElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ polymorphic_discriminator: 'criterionType',
78
+ uber_parent: 'MultiMetricCriteria',
79
+ class_name: 'MultiMetricCriteria'
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ end
88
+ end
89
+ end
90
+ end
@@ -35,12 +35,22 @@ module Azure::Monitor::Mgmt::V2018_03_01
35
35
  # that is used to monitor alert activity based on the threshold.
36
36
  attr_accessor :window_size
37
37
 
38
+ # @return [String] the resource type of the target resource(s) on which
39
+ # the alert is created/updated. Mandatory for
40
+ # MultipleResourceMultipleMetricCriteria.
41
+ attr_accessor :target_resource_type
42
+
43
+ # @return [String] the region of the target resource(s) on which the
44
+ # alert is created/updated. Mandatory for
45
+ # MultipleResourceMultipleMetricCriteria.
46
+ attr_accessor :target_resource_region
47
+
38
48
  # @return [MetricAlertCriteria] defines the specific alert criteria
39
49
  # information.
40
50
  attr_accessor :criteria
41
51
 
42
52
  # @return [Boolean] the flag that indicates whether the alert should be
43
- # auto resolved or not.
53
+ # auto resolved or not. The default is true.
44
54
  attr_accessor :auto_mitigate
45
55
 
46
56
  # @return [Array<MetricAlertAction>] the array of actions that are
@@ -172,6 +182,22 @@ module Azure::Monitor::Mgmt::V2018_03_01
172
182
  name: 'TimeSpan'
173
183
  }
174
184
  },
185
+ target_resource_type: {
186
+ client_side_validation: true,
187
+ required: false,
188
+ serialized_name: 'properties.targetResourceType',
189
+ type: {
190
+ name: 'String'
191
+ }
192
+ },
193
+ target_resource_region: {
194
+ client_side_validation: true,
195
+ required: false,
196
+ serialized_name: 'properties.targetResourceRegion',
197
+ type: {
198
+ name: 'String'
199
+ }
200
+ },
175
201
  criteria: {
176
202
  client_side_validation: true,
177
203
  required: true,
@@ -38,12 +38,22 @@ module Azure::Monitor::Mgmt::V2018_03_01
38
38
  # that is used to monitor alert activity based on the threshold.
39
39
  attr_accessor :window_size
40
40
 
41
+ # @return [String] the resource type of the target resource(s) on which
42
+ # the alert is created/updated. Mandatory for
43
+ # MultipleResourceMultipleMetricCriteria.
44
+ attr_accessor :target_resource_type
45
+
46
+ # @return [String] the region of the target resource(s) on which the
47
+ # alert is created/updated. Mandatory for
48
+ # MultipleResourceMultipleMetricCriteria.
49
+ attr_accessor :target_resource_region
50
+
41
51
  # @return [MetricAlertCriteria] defines the specific alert criteria
42
52
  # information.
43
53
  attr_accessor :criteria
44
54
 
45
55
  # @return [Boolean] the flag that indicates whether the alert should be
46
- # auto resolved or not.
56
+ # auto resolved or not. The default is true.
47
57
  attr_accessor :auto_mitigate
48
58
 
49
59
  # @return [Array<MetricAlertAction>] the array of actions that are
@@ -140,6 +150,22 @@ module Azure::Monitor::Mgmt::V2018_03_01
140
150
  name: 'TimeSpan'
141
151
  }
142
152
  },
153
+ target_resource_type: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ serialized_name: 'properties.targetResourceType',
157
+ type: {
158
+ name: 'String'
159
+ }
160
+ },
161
+ target_resource_region: {
162
+ client_side_validation: true,
163
+ required: false,
164
+ serialized_name: 'properties.targetResourceRegion',
165
+ type: {
166
+ name: 'String'
167
+ }
168
+ },
143
169
  criteria: {
144
170
  client_side_validation: true,
145
171
  required: true,
@@ -8,31 +8,25 @@ module Azure::Monitor::Mgmt::V2018_03_01
8
8
  #
9
9
  # Criterion to filter metrics.
10
10
  #
11
- class MetricCriteria
11
+ class MetricCriteria < MultiMetricCriteria
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Name of the criteria.
16
- attr_accessor :name
17
15
 
18
- # @return [String] Name of the metric.
19
- attr_accessor :metric_name
16
+ def initialize
17
+ @criterionType = "StaticThresholdCriterion"
18
+ end
20
19
 
21
- # @return [String] Namespace of the metric.
22
- attr_accessor :metric_namespace
20
+ attr_accessor :criterionType
23
21
 
24
- # @return the criteria operator.
22
+ # @return [Operator] the criteria operator. Possible values include:
23
+ # 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
24
+ # 'LessThanOrEqual'
25
25
  attr_accessor :operator
26
26
 
27
- # @return the criteria time aggregation types.
28
- attr_accessor :time_aggregation
29
-
30
27
  # @return [Float] the criteria threshold value that activates the alert.
31
28
  attr_accessor :threshold
32
29
 
33
- # @return [Array<MetricDimension>] List of dimension conditions.
34
- attr_accessor :dimensions
35
-
36
30
 
37
31
  #
38
32
  # Mapper for MetricCriteria class as Ruby Hash.
@@ -42,11 +36,26 @@ module Azure::Monitor::Mgmt::V2018_03_01
42
36
  {
43
37
  client_side_validation: true,
44
38
  required: false,
45
- serialized_name: 'MetricCriteria',
39
+ serialized_name: 'StaticThresholdCriterion',
46
40
  type: {
47
41
  name: 'Composite',
48
42
  class_name: 'MetricCriteria',
49
43
  model_properties: {
44
+ additional_properties: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ type: {
48
+ name: 'Dictionary',
49
+ value: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'ObjectElementType',
53
+ type: {
54
+ name: 'Object'
55
+ }
56
+ }
57
+ }
58
+ },
50
59
  name: {
51
60
  client_side_validation: true,
52
61
  required: true,
@@ -71,14 +80,6 @@ module Azure::Monitor::Mgmt::V2018_03_01
71
80
  name: 'String'
72
81
  }
73
82
  },
74
- operator: {
75
- client_side_validation: true,
76
- required: true,
77
- serialized_name: 'operator',
78
- type: {
79
- name: 'Object'
80
- }
81
- },
82
83
  time_aggregation: {
83
84
  client_side_validation: true,
84
85
  required: true,
@@ -87,14 +88,6 @@ module Azure::Monitor::Mgmt::V2018_03_01
87
88
  name: 'Object'
88
89
  }
89
90
  },
90
- threshold: {
91
- client_side_validation: true,
92
- required: true,
93
- serialized_name: 'threshold',
94
- type: {
95
- name: 'Double'
96
- }
97
- },
98
91
  dimensions: {
99
92
  client_side_validation: true,
100
93
  required: false,
@@ -111,6 +104,38 @@ module Azure::Monitor::Mgmt::V2018_03_01
111
104
  }
112
105
  }
113
106
  }
107
+ },
108
+ skip_metric_validation: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ serialized_name: 'skipMetricValidation',
112
+ type: {
113
+ name: 'Boolean'
114
+ }
115
+ },
116
+ criterionType: {
117
+ client_side_validation: true,
118
+ required: true,
119
+ serialized_name: 'criterionType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ },
124
+ operator: {
125
+ client_side_validation: true,
126
+ required: true,
127
+ serialized_name: 'operator',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ threshold: {
133
+ client_side_validation: true,
134
+ required: true,
135
+ serialized_name: 'threshold',
136
+ type: {
137
+ name: 'Double'
138
+ }
114
139
  }
115
140
  }
116
141
  }