azure_mgmt_monitor 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +14 -4
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +313 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +1 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/event_categories.rb +113 -0
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_category_collection.rb +57 -0
  7. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb +380 -0
  8. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +99 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_level.rb +19 -0
  10. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/http_request_info.rb +79 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  12. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb +71 -0
  13. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +12 -0
  14. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +1 -1
  15. data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +339 -0
  16. data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +17 -10
  17. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +1 -1
  18. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +1 -1
  19. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +1 -1
  20. data/lib/2016-03-01/generated/azure_mgmt_monitor/metric_definitions.rb +133 -0
  21. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +20 -0
  22. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  23. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_availability.rb +60 -0
  24. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition.rb +120 -0
  25. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +56 -0
  26. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/unit.rb +21 -0
  27. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +8 -4
  28. data/lib/2016-09-01/generated/azure_mgmt_monitor.rb +9 -3
  29. data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +172 -0
  30. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  31. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric.rb +105 -0
  32. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_collection.rb +55 -0
  33. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_value.rb +104 -0
  34. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/unit.rb +21 -0
  35. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -0
  36. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +4 -4
  37. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +1 -1
  38. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +1 -1
  39. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +1 -1
  40. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +19 -5
  41. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +4 -3
  42. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +8 -5
  43. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb +112 -0
  44. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb +190 -0
  45. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/aggregation_type.rb +20 -0
  46. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  47. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb +58 -0
  48. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric.rb +105 -0
  49. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb +60 -0
  50. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition.rb +152 -0
  51. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +56 -0
  52. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_value.rb +104 -0
  53. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +98 -0
  54. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  55. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/time_series_element.rb +79 -0
  56. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/unit.rb +23 -0
  57. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +11 -3
  58. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +1 -1
  59. data/lib/2018-01-01/generated/azure_mgmt_monitor.rb +42 -0
  60. data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +118 -0
  61. data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +199 -0
  62. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +20 -0
  63. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  64. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  65. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metadata_value.rb +58 -0
  66. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +105 -0
  67. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_availability.rb +60 -0
  68. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +184 -0
  69. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +56 -0
  70. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +104 -0
  71. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +120 -0
  72. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  73. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/time_series_element.rb +79 -0
  74. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +23 -0
  75. data/lib/2018-01-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  76. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
  77. data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +57 -0
  78. data/lib/2018-03-01/generated/azure_mgmt_monitor/action_groups.rb +693 -0
  79. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +582 -0
  80. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb +213 -0
  81. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
  82. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  83. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +304 -0
  84. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  85. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  86. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +80 -0
  87. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +72 -0
  88. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
  89. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  90. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  91. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +69 -0
  92. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +65 -0
  93. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +65 -0
  94. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +226 -0
  95. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb +56 -0
  96. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +194 -0
  97. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_single_resource_multiple_metric_criteria.rb +88 -0
  98. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status.rb +81 -0
  99. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb +56 -0
  100. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb +76 -0
  101. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +122 -0
  102. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +77 -0
  103. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  104. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/resource.rb +101 -0
  105. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
  106. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
  107. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +58 -0
  108. data/lib/2018-03-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  109. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +138 -0
  110. data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +46 -0
  111. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +47 -0
  112. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alert_severity.rb +19 -0
  113. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +99 -0
  114. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +78 -0
  115. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/conditional_operator.rb +17 -0
  116. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/enabled.rb +16 -0
  117. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  118. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb +83 -0
  119. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +174 -0
  120. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb +56 -0
  121. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_patch.rb +67 -0
  122. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/metric_trigger_type.rb +16 -0
  123. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/provisioning_state.rb +18 -0
  124. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/query_type.rb +15 -0
  125. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/resource.rb +101 -0
  126. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb +59 -0
  127. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +89 -0
  128. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb +72 -0
  129. data/lib/2018-04-16/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  130. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +130 -0
  131. data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +610 -0
  132. data/lib/azure_mgmt_monitor.rb +5 -2
  133. data/lib/profiles/latest/modules/monitor_profile_module.rb +119 -45
  134. data/lib/version.rb +1 -1
  135. metadata +113 -3
@@ -0,0 +1,194 @@
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 metric alert resource for patch operations.
10
+ #
11
+ class MetricAlertResourcePatch
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags
16
+ attr_accessor :tags
17
+
18
+ # @return [String] the description of the metric alert that will be
19
+ # included in the alert email.
20
+ attr_accessor :description
21
+
22
+ # @return [Integer] Alert severity {0, 1, 2, 3, 4}
23
+ attr_accessor :severity
24
+
25
+ # @return [Boolean] the flag that indicates whether the metric alert is
26
+ # enabled.
27
+ attr_accessor :enabled
28
+
29
+ # @return [Array<String>] the list of resource id's that this metric
30
+ # alert is scoped to.
31
+ attr_accessor :scopes
32
+
33
+ # @return [Duration] how often the metric alert is evaluated represented
34
+ # in ISO 8601 duration format.
35
+ attr_accessor :evaluation_frequency
36
+
37
+ # @return [Duration] the period of time (in ISO 8601 duration format)
38
+ # that is used to monitor alert activity based on the threshold.
39
+ attr_accessor :window_size
40
+
41
+ # @return [MetricAlertCriteria] defines the specific alert criteria
42
+ # information.
43
+ attr_accessor :criteria
44
+
45
+ # @return [Boolean] the flag that indicates whether the alert should be
46
+ # auto resolved or not.
47
+ attr_accessor :auto_mitigate
48
+
49
+ # @return [Array<MetricAlertAction>] the array of actions that are
50
+ # performed when the alert rule becomes active, and when an alert
51
+ # condition is resolved.
52
+ attr_accessor :actions
53
+
54
+ # @return [DateTime] Last time the rule was updated in ISO8601 format.
55
+ attr_accessor :last_updated_time
56
+
57
+
58
+ #
59
+ # Mapper for MetricAlertResourcePatch class as Ruby Hash.
60
+ # This will be used for serialization/deserialization.
61
+ #
62
+ def self.mapper()
63
+ {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'MetricAlertResourcePatch',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'MetricAlertResourcePatch',
70
+ model_properties: {
71
+ tags: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ serialized_name: 'tags',
75
+ type: {
76
+ name: 'Dictionary',
77
+ value: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ serialized_name: 'StringElementType',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ }
85
+ }
86
+ },
87
+ description: {
88
+ client_side_validation: true,
89
+ required: true,
90
+ serialized_name: 'properties.description',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ },
95
+ severity: {
96
+ client_side_validation: true,
97
+ required: true,
98
+ serialized_name: 'properties.severity',
99
+ type: {
100
+ name: 'Number'
101
+ }
102
+ },
103
+ enabled: {
104
+ client_side_validation: true,
105
+ required: true,
106
+ serialized_name: 'properties.enabled',
107
+ type: {
108
+ name: 'Boolean'
109
+ }
110
+ },
111
+ scopes: {
112
+ client_side_validation: true,
113
+ required: false,
114
+ serialized_name: 'properties.scopes',
115
+ type: {
116
+ name: 'Sequence',
117
+ element: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ serialized_name: 'StringElementType',
121
+ type: {
122
+ name: 'String'
123
+ }
124
+ }
125
+ }
126
+ },
127
+ evaluation_frequency: {
128
+ client_side_validation: true,
129
+ required: true,
130
+ serialized_name: 'properties.evaluationFrequency',
131
+ type: {
132
+ name: 'TimeSpan'
133
+ }
134
+ },
135
+ window_size: {
136
+ client_side_validation: true,
137
+ required: true,
138
+ serialized_name: 'properties.windowSize',
139
+ type: {
140
+ name: 'TimeSpan'
141
+ }
142
+ },
143
+ criteria: {
144
+ client_side_validation: true,
145
+ required: true,
146
+ serialized_name: 'properties.criteria',
147
+ type: {
148
+ name: 'Composite',
149
+ polymorphic_discriminator: 'odata.type',
150
+ uber_parent: 'MetricAlertCriteria',
151
+ class_name: 'MetricAlertCriteria'
152
+ }
153
+ },
154
+ auto_mitigate: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'properties.autoMitigate',
158
+ type: {
159
+ name: 'Boolean'
160
+ }
161
+ },
162
+ actions: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: 'properties.actions',
166
+ type: {
167
+ name: 'Sequence',
168
+ element: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ serialized_name: 'MetricAlertActionElementType',
172
+ type: {
173
+ name: 'Composite',
174
+ class_name: 'MetricAlertAction'
175
+ }
176
+ }
177
+ }
178
+ },
179
+ last_updated_time: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ read_only: true,
183
+ serialized_name: 'properties.lastUpdatedTime',
184
+ type: {
185
+ name: 'DateTime'
186
+ }
187
+ }
188
+ }
189
+ }
190
+ }
191
+ end
192
+ end
193
+ end
194
+ end
@@ -0,0 +1,88 @@
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 a single resource that has
10
+ # multiple metric criteria.
11
+ #
12
+ class MetricAlertSingleResourceMultipleMetricCriteria < MetricAlertCriteria
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @odatatype = "Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"
19
+ end
20
+
21
+ attr_accessor :odatatype
22
+
23
+ # @return [Array<MetricCriteria>] The list of metric criteria for this
24
+ # 'all of' operation.
25
+ attr_accessor :all_of
26
+
27
+
28
+ #
29
+ # Mapper for MetricAlertSingleResourceMultipleMetricCriteria 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.SingleResourceMultipleMetricCriteria',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'MetricAlertSingleResourceMultipleMetricCriteria',
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: 'MetricCriteriaElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'MetricCriteria'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,81 @@
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
+ # An alert status.
10
+ #
11
+ class MetricAlertStatus
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The status name.
16
+ attr_accessor :name
17
+
18
+ # @return [String] The alert rule arm id.
19
+ attr_accessor :id
20
+
21
+ # @return [String] The extended resource type name.
22
+ attr_accessor :type
23
+
24
+ # @return [MetricAlertStatusProperties] The alert status properties of
25
+ # the metric alert status.
26
+ attr_accessor :properties
27
+
28
+
29
+ #
30
+ # Mapper for MetricAlertStatus class as 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: 'MetricAlertStatus',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'MetricAlertStatus',
41
+ model_properties: {
42
+ name: {
43
+ client_side_validation: true,
44
+ required: false,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ id: {
51
+ client_side_validation: true,
52
+ required: false,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ type: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ properties: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'properties',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'MetricAlertStatusProperties'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,56 @@
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
+ # Represents a collection of alert rule resources.
10
+ #
11
+ class MetricAlertStatusCollection
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<MetricAlertStatus>] the values for the alert rule
16
+ # resources.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for MetricAlertStatusCollection class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'MetricAlertStatusCollection',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'MetricAlertStatusCollection',
32
+ model_properties: {
33
+ value: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'MetricAlertStatusElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'MetricAlertStatus'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,76 @@
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
+ # An alert status properties.
10
+ #
11
+ class MetricAlertStatusProperties
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}]
16
+ attr_accessor :dimensions
17
+
18
+ # @return [String] status value
19
+ attr_accessor :status
20
+
21
+ # @return [DateTime] UTC time when the status was checked.
22
+ attr_accessor :timestamp
23
+
24
+
25
+ #
26
+ # Mapper for MetricAlertStatusProperties class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'MetricAlertStatusProperties',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'MetricAlertStatusProperties',
37
+ model_properties: {
38
+ dimensions: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'dimensions',
42
+ type: {
43
+ name: 'Dictionary',
44
+ value: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ serialized_name: 'StringElementType',
48
+ type: {
49
+ name: 'String'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ status: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'status',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ timestamp: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'timestamp',
66
+ type: {
67
+ name: 'DateTime'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ end
74
+ end
75
+ end
76
+ end