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,80 @@
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
+ # Specifies the action to send email when the rule condition is evaluated.
10
+ # The discriminator is always RuleEmailAction in this case.
11
+ #
12
+ class RuleEmailAction < RuleAction
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+
18
+ def initialize
19
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
20
+ end
21
+
22
+ attr_accessor :odata.type
23
+
24
+ # @return [Boolean] Whether the administrators (service and
25
+ # co-adiminstrators) of the service should be notified when the alert is
26
+ # activated.
27
+ attr_accessor :send_to_service_owners
28
+
29
+ # @return [Array<String>] the list of administrator's custom email
30
+ # addresses notifiy of the activation of the alert.
31
+ attr_accessor :custom_emails
32
+
33
+
34
+ #
35
+ # Mapper for RuleEmailAction class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleEmailAction',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'RuleEmailAction',
45
+ model_properties: {
46
+ odata.type: {
47
+ required: true,
48
+ serialized_name: 'odata\\.type',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ send_to_service_owners: {
54
+ required: false,
55
+ serialized_name: 'sendToServiceOwners',
56
+ type: {
57
+ name: 'Boolean'
58
+ }
59
+ },
60
+ custom_emails: {
61
+ required: false,
62
+ serialized_name: 'customEmails',
63
+ type: {
64
+ name: 'Sequence',
65
+ element: {
66
+ required: false,
67
+ serialized_name: 'StringElementType',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,45 @@
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 claims for a rule management event data source.
10
+ #
11
+ class RuleManagementEventClaimsDataSource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the email address.
17
+ attr_accessor :email_address
18
+
19
+
20
+ #
21
+ # Mapper for RuleManagementEventClaimsDataSource class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'RuleManagementEventClaimsDataSource',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'RuleManagementEventClaimsDataSource',
31
+ model_properties: {
32
+ email_address: {
33
+ required: false,
34
+ serialized_name: 'emailAddress',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,150 @@
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 rule management event data source. The discriminator fields is always
10
+ # RuleManagementEventDataSource in this case.
11
+ #
12
+ class RuleManagementEventDataSource < RuleDataSource
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+
18
+ def initialize
19
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
20
+ end
21
+
22
+ attr_accessor :odata.type
23
+
24
+ # @return [String] the event name.
25
+ attr_accessor :event_name
26
+
27
+ # @return [String] the event source.
28
+ attr_accessor :event_source
29
+
30
+ # @return [String] the level.
31
+ attr_accessor :level
32
+
33
+ # @return [String] The name of the operation that should be checked for.
34
+ # If no name is provided, any operation will match.
35
+ attr_accessor :operation_name
36
+
37
+ # @return [String] the resource group name.
38
+ attr_accessor :resource_group_name
39
+
40
+ # @return [String] the resource provider name.
41
+ attr_accessor :resource_provider_name
42
+
43
+ # @return [String] The status of the operation that should be checked
44
+ # for. If no status is provided, any status will match.
45
+ attr_accessor :status
46
+
47
+ # @return [String] the substatus.
48
+ attr_accessor :sub_status
49
+
50
+ # @return [RuleManagementEventClaimsDataSource] the claims.
51
+ attr_accessor :claims
52
+
53
+
54
+ #
55
+ # Mapper for RuleManagementEventDataSource class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'RuleManagementEventDataSource',
65
+ model_properties: {
66
+ resource_uri: {
67
+ required: false,
68
+ serialized_name: 'resourceUri',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ odata.type: {
74
+ required: true,
75
+ serialized_name: 'odata\\.type',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ event_name: {
81
+ required: false,
82
+ serialized_name: 'eventName',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ event_source: {
88
+ required: false,
89
+ serialized_name: 'eventSource',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ level: {
95
+ required: false,
96
+ serialized_name: 'level',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ operation_name: {
102
+ required: false,
103
+ serialized_name: 'operationName',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ resource_group_name: {
109
+ required: false,
110
+ serialized_name: 'resourceGroupName',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ resource_provider_name: {
116
+ required: false,
117
+ serialized_name: 'resourceProviderName',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ status: {
123
+ required: false,
124
+ serialized_name: 'status',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ },
129
+ sub_status: {
130
+ required: false,
131
+ serialized_name: 'subStatus',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ claims: {
137
+ required: false,
138
+ serialized_name: 'claims',
139
+ type: {
140
+ name: 'Composite',
141
+ class_name: 'RuleManagementEventClaimsDataSource'
142
+ }
143
+ }
144
+ }
145
+ }
146
+ }
147
+ end
148
+ end
149
+ end
150
+ end
@@ -0,0 +1,68 @@
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 rule metric data source. The discriminator value is always
10
+ # RuleMetricDataSource in this case.
11
+ #
12
+ class RuleMetricDataSource < RuleDataSource
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+
18
+ def initialize
19
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
20
+ end
21
+
22
+ attr_accessor :odata.type
23
+
24
+ # @return [String] the name of the metric that defines what the rule
25
+ # monitors.
26
+ attr_accessor :metric_name
27
+
28
+
29
+ #
30
+ # Mapper for RuleMetricDataSource class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'RuleMetricDataSource',
40
+ model_properties: {
41
+ resource_uri: {
42
+ required: false,
43
+ serialized_name: 'resourceUri',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ odata.type: {
49
+ required: true,
50
+ serialized_name: 'odata\\.type',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ metric_name: {
56
+ required: false,
57
+ serialized_name: 'metricName',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,80 @@
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
+ # Specifies the action to post to service when the rule condition is
10
+ # evaluated. The discriminator is always RuleWebhookAction in this case.
11
+ #
12
+ class RuleWebhookAction < RuleAction
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+
18
+ def initialize
19
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
20
+ end
21
+
22
+ attr_accessor :odata.type
23
+
24
+ # @return [String] the service uri to Post the notitication when the
25
+ # alert activates or resolves.
26
+ attr_accessor :service_uri
27
+
28
+ # @return [Hash{String => String}] the dictionary of custom properties to
29
+ # include with the post operation. These data are appended to the webhook
30
+ # payload.
31
+ attr_accessor :properties
32
+
33
+
34
+ #
35
+ # Mapper for RuleWebhookAction class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'RuleWebhookAction',
45
+ model_properties: {
46
+ odata.type: {
47
+ required: true,
48
+ serialized_name: 'odata\\.type',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ service_uri: {
54
+ required: false,
55
+ serialized_name: 'serviceUri',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ properties: {
61
+ required: false,
62
+ serialized_name: 'properties',
63
+ type: {
64
+ name: 'Dictionary',
65
+ value: {
66
+ required: false,
67
+ serialized_name: 'StringElementType',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ end
78
+ end
79
+ end
80
+ end
@@ -0,0 +1,86 @@
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 parameters for the scaling action.
10
+ #
11
+ class ScaleAction
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [ScaleDirection] the scale direction. Whether the scaling
17
+ # action increases or decreases the number of instances. Possible values
18
+ # include: 'None', 'Increase', 'Decrease'
19
+ attr_accessor :direction
20
+
21
+ # @return [ScaleType] the type of action that should occur when the scale
22
+ # rule fires. Possible values include: 'ChangeCount',
23
+ # 'PercentChangeCount', 'ExactCount'
24
+ attr_accessor :type
25
+
26
+ # @return [String] the number of instances that are involved in the
27
+ # scaling action. This value must be 1 or greater. The default value is
28
+ # 1. Default value: '1' .
29
+ attr_accessor :value
30
+
31
+ # @return [Duration] the amount of time to wait since the last scaling
32
+ # action before this action occurs. It must be between 1 week and 1
33
+ # minute in ISO 8601 format.
34
+ attr_accessor :cooldown
35
+
36
+
37
+ #
38
+ # Mapper for ScaleAction class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'ScaleAction',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'ScaleAction',
48
+ model_properties: {
49
+ direction: {
50
+ required: true,
51
+ serialized_name: 'direction',
52
+ type: {
53
+ name: 'Enum',
54
+ module: 'ScaleDirection'
55
+ }
56
+ },
57
+ type: {
58
+ required: true,
59
+ serialized_name: 'type',
60
+ type: {
61
+ name: 'Enum',
62
+ module: 'ScaleType'
63
+ }
64
+ },
65
+ value: {
66
+ required: false,
67
+ serialized_name: 'value',
68
+ default_value: '1',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ cooldown: {
74
+ required: true,
75
+ serialized_name: 'cooldown',
76
+ type: {
77
+ name: 'TimeSpan'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end