azure_mgmt_monitor 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_monitor.rb +5 -0
  4. data/lib/generated/azure_mgmt_monitor.rb +96 -0
  5. data/lib/generated/azure_mgmt_monitor/action_groups.rb +579 -0
  6. data/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb +593 -0
  7. data/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb +211 -0
  8. data/lib/generated/azure_mgmt_monitor/alert_rules.rb +510 -0
  9. data/lib/generated/azure_mgmt_monitor/autoscale_settings.rb +618 -0
  10. data/lib/generated/azure_mgmt_monitor/log_profiles.rb +477 -0
  11. data/lib/generated/azure_mgmt_monitor/models/action_group_list.rb +63 -0
  12. data/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb +164 -0
  13. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +65 -0
  14. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +54 -0
  15. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +55 -0
  16. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +61 -0
  17. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +64 -0
  18. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +65 -0
  19. data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +147 -0
  20. data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +159 -0
  21. data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +54 -0
  22. data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +131 -0
  23. data/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb +78 -0
  24. data/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb +101 -0
  25. data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +155 -0
  26. data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +95 -0
  27. data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +127 -0
  28. data/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +20 -0
  29. data/lib/generated/azure_mgmt_monitor/models/condition_operator.rb +18 -0
  30. data/lib/generated/azure_mgmt_monitor/models/email_notification.rb +75 -0
  31. data/lib/generated/azure_mgmt_monitor/models/email_receiver.rb +69 -0
  32. data/lib/generated/azure_mgmt_monitor/models/enable_request.rb +45 -0
  33. data/lib/generated/azure_mgmt_monitor/models/error_response.rb +55 -0
  34. data/lib/generated/azure_mgmt_monitor/models/incident.rb +93 -0
  35. data/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb +53 -0
  36. data/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +85 -0
  37. data/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb +53 -0
  38. data/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb +154 -0
  39. data/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +126 -0
  40. data/lib/generated/azure_mgmt_monitor/models/log_settings.rb +70 -0
  41. data/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +70 -0
  42. data/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +73 -0
  43. data/lib/generated/azure_mgmt_monitor/models/metric_settings.rb +67 -0
  44. data/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +18 -0
  45. data/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb +134 -0
  46. data/lib/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  47. data/lib/generated/azure_mgmt_monitor/models/recurrence.rb +62 -0
  48. data/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
  49. data/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +139 -0
  50. data/lib/generated/azure_mgmt_monitor/models/retention_policy.rb +60 -0
  51. data/lib/generated/azure_mgmt_monitor/models/rule_action.rb +48 -0
  52. data/lib/generated/azure_mgmt_monitor/models/rule_condition.rb +63 -0
  53. data/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb +58 -0
  54. data/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb +80 -0
  55. data/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +45 -0
  56. data/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +150 -0
  57. data/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +68 -0
  58. data/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +80 -0
  59. data/lib/generated/azure_mgmt_monitor/models/scale_action.rb +86 -0
  60. data/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb +69 -0
  61. data/lib/generated/azure_mgmt_monitor/models/scale_direction.rb +17 -0
  62. data/lib/generated/azure_mgmt_monitor/models/scale_rule.rb +57 -0
  63. data/lib/generated/azure_mgmt_monitor/models/scale_type.rb +17 -0
  64. data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +163 -0
  65. data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +135 -0
  66. data/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb +79 -0
  67. data/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +108 -0
  68. data/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +19 -0
  69. data/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +19 -0
  70. data/lib/generated/azure_mgmt_monitor/models/time_window.rb +104 -0
  71. data/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb +63 -0
  72. data/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb +56 -0
  73. data/lib/generated/azure_mgmt_monitor/module_definition.rb +8 -0
  74. data/lib/generated/azure_mgmt_monitor/monitor_management_client.rb +150 -0
  75. data/lib/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +330 -0
  76. data/lib/generated/azure_mgmt_monitor/version.rb +8 -0
  77. metadata +188 -0
@@ -0,0 +1,64 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # A list of activity log alerts.
10
+ #
11
+ class ActivityLogAlertList
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<ActivityLogAlertResource>] The list of activity log
17
+ # alerts.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Provides the link to retrive the next set of elements.
21
+ attr_accessor :next_link
22
+
23
+
24
+ #
25
+ # Mapper for ActivityLogAlertList class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'ActivityLogAlertList',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'ActivityLogAlertList',
35
+ model_properties: {
36
+ value: {
37
+ required: false,
38
+ serialized_name: 'value',
39
+ type: {
40
+ name: 'Sequence',
41
+ element: {
42
+ required: false,
43
+ serialized_name: 'ActivityLogAlertResourceElementType',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'ActivityLogAlertResource'
47
+ }
48
+ }
49
+ }
50
+ },
51
+ next_link: {
52
+ required: false,
53
+ serialized_name: 'nextLink',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+ end
62
+ end
63
+ end
64
+ end
@@ -0,0 +1,65 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # An activity log alert object for the body of patch operations.
10
+ #
11
+ class ActivityLogAlertPatchBody
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Hash{String => String}] Resource tags
17
+ attr_accessor :tags
18
+
19
+ # @return [Boolean] Indicates whether this activity log alert is enabled.
20
+ # If an activity log alert is not enabled, then none of its actions will
21
+ # be activated. Default value: true .
22
+ attr_accessor :enabled
23
+
24
+
25
+ #
26
+ # Mapper for ActivityLogAlertPatchBody class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ required: false,
32
+ serialized_name: 'ActivityLogAlertPatchBody',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'ActivityLogAlertPatchBody',
36
+ model_properties: {
37
+ tags: {
38
+ required: false,
39
+ serialized_name: 'tags',
40
+ type: {
41
+ name: 'Dictionary',
42
+ value: {
43
+ required: false,
44
+ serialized_name: 'StringElementType',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ },
51
+ enabled: {
52
+ required: false,
53
+ serialized_name: 'properties.enabled',
54
+ default_value: true,
55
+ type: {
56
+ name: 'Boolean'
57
+ }
58
+ }
59
+ }
60
+ }
61
+ }
62
+ end
63
+ end
64
+ end
65
+ end
@@ -0,0 +1,147 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # An activity log alert resource.
10
+ #
11
+ class ActivityLogAlertResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<String>] A list of resourceIds that will be used as
17
+ # prefixes. The alert will only apply to activityLogs with resourceIds
18
+ # that fall under one of these prefixes. This list must include at least
19
+ # one item.
20
+ attr_accessor :scopes
21
+
22
+ # @return [Boolean] Indicates whether this activity log alert is enabled.
23
+ # If an activity log alert is not enabled, then none of its actions will
24
+ # be activated. Default value: true .
25
+ attr_accessor :enabled
26
+
27
+ # @return [ActivityLogAlertAllOfCondition] The conditon that will cause
28
+ # this alert to activate.
29
+ attr_accessor :condition
30
+
31
+ # @return [ActivityLogAlertActionList] The actions that will activate
32
+ # when the condition is met.
33
+ attr_accessor :actions
34
+
35
+ # @return [String] A description of this activity log alert.
36
+ attr_accessor :description
37
+
38
+
39
+ #
40
+ # Mapper for ActivityLogAlertResource class as Ruby Hash.
41
+ # This will be used for serialization/deserialization.
42
+ #
43
+ def self.mapper()
44
+ {
45
+ required: false,
46
+ serialized_name: 'ActivityLogAlertResource',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'ActivityLogAlertResource',
50
+ model_properties: {
51
+ id: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'id',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ name: {
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'name',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ type: {
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'type',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ location: {
76
+ required: true,
77
+ serialized_name: 'location',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ tags: {
83
+ required: false,
84
+ serialized_name: 'tags',
85
+ type: {
86
+ name: 'Dictionary',
87
+ value: {
88
+ required: false,
89
+ serialized_name: 'StringElementType',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ }
94
+ }
95
+ },
96
+ scopes: {
97
+ required: true,
98
+ serialized_name: 'properties.scopes',
99
+ type: {
100
+ name: 'Sequence',
101
+ element: {
102
+ required: false,
103
+ serialized_name: 'StringElementType',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ }
108
+ }
109
+ },
110
+ enabled: {
111
+ required: false,
112
+ serialized_name: 'properties.enabled',
113
+ default_value: true,
114
+ type: {
115
+ name: 'Boolean'
116
+ }
117
+ },
118
+ condition: {
119
+ required: true,
120
+ serialized_name: 'properties.condition',
121
+ type: {
122
+ name: 'Composite',
123
+ class_name: 'ActivityLogAlertAllOfCondition'
124
+ }
125
+ },
126
+ actions: {
127
+ required: true,
128
+ serialized_name: 'properties.actions',
129
+ type: {
130
+ name: 'Composite',
131
+ class_name: 'ActivityLogAlertActionList'
132
+ }
133
+ },
134
+ description: {
135
+ required: false,
136
+ serialized_name: 'properties.description',
137
+ type: {
138
+ name: 'String'
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+ end
145
+ end
146
+ end
147
+ end
@@ -0,0 +1,159 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # The alert rule resource.
10
+ #
11
+ class AlertRuleResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the name of the alert rule.
17
+ attr_accessor :alert_rule_resource_name
18
+
19
+ # @return [String] the description of the alert rule that will be
20
+ # included in the alert email.
21
+ attr_accessor :description
22
+
23
+ # @return [Boolean] the flag that indicates whether the alert rule is
24
+ # enabled.
25
+ attr_accessor :is_enabled
26
+
27
+ # @return [RuleCondition] the condition that results in the alert rule
28
+ # being activated.
29
+ attr_accessor :condition
30
+
31
+ # @return [Array<RuleAction>] the array of actions that are performed
32
+ # when the alert rule becomes active, and when an alert condition is
33
+ # resolved.
34
+ attr_accessor :actions
35
+
36
+ # @return [DateTime] Last time the rule was updated in ISO8601 format.
37
+ attr_accessor :last_updated_time
38
+
39
+
40
+ #
41
+ # Mapper for AlertRuleResource class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ required: false,
47
+ serialized_name: 'AlertRuleResource',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'AlertRuleResource',
51
+ model_properties: {
52
+ id: {
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'name',
64
+ type: {
65
+ name: 'String'
66
+ }
67
+ },
68
+ type: {
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'type',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ location: {
77
+ required: true,
78
+ serialized_name: 'location',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ tags: {
84
+ required: false,
85
+ serialized_name: 'tags',
86
+ type: {
87
+ name: 'Dictionary',
88
+ value: {
89
+ required: false,
90
+ serialized_name: 'StringElementType',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ },
97
+ alert_rule_resource_name: {
98
+ required: true,
99
+ serialized_name: 'properties.name',
100
+ type: {
101
+ name: 'String'
102
+ }
103
+ },
104
+ description: {
105
+ required: false,
106
+ serialized_name: 'properties.description',
107
+ type: {
108
+ name: 'String'
109
+ }
110
+ },
111
+ is_enabled: {
112
+ required: true,
113
+ serialized_name: 'properties.isEnabled',
114
+ type: {
115
+ name: 'Boolean'
116
+ }
117
+ },
118
+ condition: {
119
+ required: true,
120
+ serialized_name: 'properties.condition',
121
+ type: {
122
+ name: 'Composite',
123
+ polymorphic_discriminator: 'odata.type',
124
+ uber_parent: 'RuleCondition',
125
+ class_name: 'RuleCondition'
126
+ }
127
+ },
128
+ actions: {
129
+ required: false,
130
+ serialized_name: 'properties.actions',
131
+ type: {
132
+ name: 'Sequence',
133
+ element: {
134
+ required: false,
135
+ serialized_name: 'RuleActionElementType',
136
+ type: {
137
+ name: 'Composite',
138
+ polymorphic_discriminator: 'odata.type',
139
+ uber_parent: 'RuleAction',
140
+ class_name: 'RuleAction'
141
+ }
142
+ }
143
+ }
144
+ },
145
+ last_updated_time: {
146
+ required: false,
147
+ read_only: true,
148
+ serialized_name: 'properties.lastUpdatedTime',
149
+ type: {
150
+ name: 'DateTime'
151
+ }
152
+ }
153
+ }
154
+ }
155
+ }
156
+ end
157
+ end
158
+ end
159
+ end
@@ -0,0 +1,54 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Monitor
7
+ module Models
8
+ #
9
+ # Represents a collection of alert rule resources.
10
+ #
11
+ class AlertRuleResourceCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<AlertRuleResource>] the values for the alert rule
17
+ # resources.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for AlertRuleResourceCollection class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ required: false,
28
+ serialized_name: 'AlertRuleResourceCollection',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'AlertRuleResourceCollection',
32
+ model_properties: {
33
+ value: {
34
+ required: false,
35
+ serialized_name: 'value',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ required: false,
40
+ serialized_name: 'AlertRuleResourceElementType',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'AlertRuleResource'
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ end
52
+ end
53
+ end
54
+ end