azure_mgmt_monitor 0.18.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  3. data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  4. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  5. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  6. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  7. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  8. data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  9. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  10. data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  11. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  12. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  13. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
  14. data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  15. data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
  16. data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  17. data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  18. data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  19. data/lib/2019-06-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  20. data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
  21. data/lib/2020-10-01/generated/azure_mgmt_monitor.rb +38 -0
  22. data/lib/2020-10-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +884 -0
  23. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/action_group.rb +68 -0
  24. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/action_list.rb +55 -0
  25. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +160 -0
  26. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/alert_rule_all_of_condition.rb +57 -0
  27. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/alert_rule_any_of_or_leaf_condition.rb +101 -0
  28. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/alert_rule_leaf_condition.rb +86 -0
  29. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/alert_rule_list.rb +100 -0
  30. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/alert_rule_patch_object.rb +68 -0
  31. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/azure_resource.rb +104 -0
  32. data/lib/2020-10-01/generated/azure_mgmt_monitor/models/error_response.rb +59 -0
  33. data/lib/2020-10-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  34. data/lib/2020-10-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
  35. data/lib/azure_mgmt_monitor.rb +1 -0
  36. data/lib/profiles/latest/modules/monitor_profile_module.rb +72 -64
  37. data/lib/version.rb +1 -1
  38. metadata +16 -2
@@ -0,0 +1,68 @@
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::V2020_10_01
7
+ module Models
8
+ #
9
+ # A pointer to an Azure Action Group.
10
+ #
11
+ class ActionGroup
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The resource ID of the Action Group. This cannot be
16
+ # null or empty.
17
+ attr_accessor :action_group_id
18
+
19
+ # @return [Hash{String => String}] the dictionary of custom properties to
20
+ # include with the post operation. These data are appended to the webhook
21
+ # payload.
22
+ attr_accessor :webhook_properties
23
+
24
+
25
+ #
26
+ # Mapper for ActionGroup 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: 'ActionGroup',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'ActionGroup',
37
+ model_properties: {
38
+ action_group_id: {
39
+ client_side_validation: true,
40
+ required: true,
41
+ serialized_name: 'actionGroupId',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ webhook_properties: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'webhookProperties',
50
+ type: {
51
+ name: 'Dictionary',
52
+ value: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'StringElementType',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,55 @@
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::V2020_10_01
7
+ module Models
8
+ #
9
+ # A list of Activity Log Alert rule actions.
10
+ #
11
+ class ActionList
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<ActionGroup>] The list of the Action Groups.
16
+ attr_accessor :action_groups
17
+
18
+
19
+ #
20
+ # Mapper for ActionList class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'ActionList',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ActionList',
31
+ model_properties: {
32
+ action_groups: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'actionGroups',
36
+ type: {
37
+ name: 'Sequence',
38
+ element: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'ActionGroupElementType',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'ActionGroup'
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,160 @@
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::V2020_10_01
7
+ module Models
8
+ #
9
+ # An Activity Log Alert rule resource.
10
+ #
11
+ class ActivityLogAlertResource < AzureResource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<String>] A list of resource IDs that will be used as
16
+ # prefixes. The alert will only apply to Activity Log events with
17
+ # resource IDs that fall under one of these prefixes. This list must
18
+ # include at least one item.
19
+ attr_accessor :scopes
20
+
21
+ # @return [AlertRuleAllOfCondition] The condition that will cause this
22
+ # alert to activate.
23
+ attr_accessor :condition
24
+
25
+ # @return [ActionList] The actions that will activate when the condition
26
+ # is met.
27
+ attr_accessor :actions
28
+
29
+ # @return [Boolean] Indicates whether this Activity Log Alert rule is
30
+ # enabled. If an Activity Log Alert rule is not enabled, then none of its
31
+ # actions will be activated. Default value: true .
32
+ attr_accessor :enabled
33
+
34
+ # @return [String] A description of this Activity Log Alert rule.
35
+ attr_accessor :description
36
+
37
+
38
+ #
39
+ # Mapper for ActivityLogAlertResource class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'ActivityLogAlertResource',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'ActivityLogAlertResource',
50
+ model_properties: {
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ name: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ type: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ location: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'location',
82
+ default_value: 'global',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ tags: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ serialized_name: 'tags',
91
+ type: {
92
+ name: 'Dictionary',
93
+ value: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ serialized_name: 'StringElementType',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ }
101
+ }
102
+ },
103
+ scopes: {
104
+ client_side_validation: true,
105
+ required: true,
106
+ serialized_name: 'properties.scopes',
107
+ type: {
108
+ name: 'Sequence',
109
+ element: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ serialized_name: 'StringElementType',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ }
117
+ }
118
+ },
119
+ condition: {
120
+ client_side_validation: true,
121
+ required: true,
122
+ serialized_name: 'properties.condition',
123
+ type: {
124
+ name: 'Composite',
125
+ class_name: 'AlertRuleAllOfCondition'
126
+ }
127
+ },
128
+ actions: {
129
+ client_side_validation: true,
130
+ required: true,
131
+ serialized_name: 'properties.actions',
132
+ type: {
133
+ name: 'Composite',
134
+ class_name: 'ActionList'
135
+ }
136
+ },
137
+ enabled: {
138
+ client_side_validation: true,
139
+ required: false,
140
+ serialized_name: 'properties.enabled',
141
+ default_value: true,
142
+ type: {
143
+ name: 'Boolean'
144
+ }
145
+ },
146
+ description: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: 'properties.description',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ end
158
+ end
159
+ end
160
+ end
@@ -0,0 +1,57 @@
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::V2020_10_01
7
+ module Models
8
+ #
9
+ # An Activity Log Alert rule condition that is met when all its member
10
+ # conditions are met.
11
+ #
12
+ class AlertRuleAllOfCondition
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<AlertRuleAnyOfOrLeafCondition>] The list of Activity Log
17
+ # Alert rule conditions.
18
+ attr_accessor :all_of
19
+
20
+
21
+ #
22
+ # Mapper for AlertRuleAllOfCondition class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'AlertRuleAllOfCondition',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'AlertRuleAllOfCondition',
33
+ model_properties: {
34
+ all_of: {
35
+ client_side_validation: true,
36
+ required: true,
37
+ serialized_name: 'allOf',
38
+ type: {
39
+ name: 'Sequence',
40
+ element: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'AlertRuleAnyOfOrLeafConditionElementType',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'AlertRuleAnyOfOrLeafCondition'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,101 @@
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::V2020_10_01
7
+ module Models
8
+ #
9
+ # An Activity Log Alert rule condition that is met when all its member
10
+ # conditions are met.
11
+ # Each condition can be of one of the following types:
12
+ # __Important__: Each type has its unique subset of properties. Properties
13
+ # from different types CANNOT exist in one condition.
14
+ # * __Leaf Condition -__ must contain 'field' and either 'equals' or
15
+ # 'containsAny'.
16
+ # _Please note, 'anyOf' should __not__ be set in a Leaf Condition._
17
+ # * __AnyOf Condition -__ must contain __only__ 'anyOf' (which is an array
18
+ # of Leaf Conditions).
19
+ # _Please note, 'field', 'equals' and 'containsAny' should __not__ be set
20
+ # in an AnyOf Condition._
21
+ #
22
+ #
23
+ class AlertRuleAnyOfOrLeafCondition < AlertRuleLeafCondition
24
+
25
+ include MsRestAzure
26
+
27
+ # @return [Array<AlertRuleLeafCondition>] An Activity Log Alert rule
28
+ # 'anyOf' condition. An Activity Log Alert rule condition that is met
29
+ # when at least one of its member leaf conditions are met.
30
+ attr_accessor :any_of
31
+
32
+
33
+ #
34
+ # Mapper for AlertRuleAnyOfOrLeafCondition class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'AlertRuleAnyOfOrLeafCondition',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'AlertRuleAnyOfOrLeafCondition',
45
+ model_properties: {
46
+ field: {
47
+ client_side_validation: true,
48
+ required: false,
49
+ serialized_name: 'field',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ equals: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'equals',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ contains_any: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ serialized_name: 'containsAny',
66
+ type: {
67
+ name: 'Sequence',
68
+ element: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'StringElementType',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ }
76
+ }
77
+ },
78
+ any_of: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'anyOf',
82
+ type: {
83
+ name: 'Sequence',
84
+ element: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ serialized_name: 'AlertRuleLeafConditionElementType',
88
+ type: {
89
+ name: 'Composite',
90
+ class_name: 'AlertRuleLeafCondition'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,86 @@
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::V2020_10_01
7
+ module Models
8
+ #
9
+ # An Activity Log Alert rule condition that is met by comparing the field
10
+ # and value of an Activity Log event.
11
+ # This condition must contain 'field' and either 'equals' or 'containsAny'.
12
+ #
13
+ class AlertRuleLeafCondition
14
+
15
+ include MsRestAzure
16
+
17
+ # @return [String] The name of the Activity Log event's field that this
18
+ # condition will examine.
19
+ # The possible values for this field are (case-insensitive):
20
+ # 'resourceId', 'category', 'caller', 'level', 'operationName',
21
+ # 'resourceGroup', 'resourceProvider', 'status', 'subStatus',
22
+ # 'resourceType', or anything beginning with 'properties'.
23
+ attr_accessor :field
24
+
25
+ # @return [String] The value of the event's field will be compared to
26
+ # this value (case-insensitive) to determine if the condition is met.
27
+ attr_accessor :equals
28
+
29
+ # @return [Array<String>] The value of the event's field will be compared
30
+ # to the values in this array (case-insensitive) to determine if the
31
+ # condition is met.
32
+ attr_accessor :contains_any
33
+
34
+
35
+ #
36
+ # Mapper for AlertRuleLeafCondition class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'AlertRuleLeafCondition',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'AlertRuleLeafCondition',
47
+ model_properties: {
48
+ field: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'field',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ equals: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'equals',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ contains_any: {
65
+ client_side_validation: true,
66
+ required: false,
67
+ serialized_name: 'containsAny',
68
+ type: {
69
+ name: 'Sequence',
70
+ element: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ serialized_name: 'StringElementType',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end