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,131 @@
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 object for patch operations.
10
+ #
11
+ class AlertRuleResourcePatch
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Hash{String => String}] Resource tags
17
+ attr_accessor :tags
18
+
19
+ # @return [String] the name of the alert rule.
20
+ attr_accessor :name
21
+
22
+ # @return [String] the description of the alert rule that will be
23
+ # included in the alert email.
24
+ attr_accessor :description
25
+
26
+ # @return [Boolean] the flag that indicates whether the alert rule is
27
+ # enabled.
28
+ attr_accessor :is_enabled
29
+
30
+ # @return [RuleCondition] the condition that results in the alert rule
31
+ # being activated.
32
+ attr_accessor :condition
33
+
34
+ # @return [Array<RuleAction>] the array of actions that are performed
35
+ # when the alert rule becomes active, and when an alert condition is
36
+ # resolved.
37
+ attr_accessor :actions
38
+
39
+ # @return [DateTime] Last time the rule was updated in ISO8601 format.
40
+ attr_accessor :last_updated_time
41
+
42
+
43
+ #
44
+ # Mapper for AlertRuleResourcePatch class as Ruby Hash.
45
+ # This will be used for serialization/deserialization.
46
+ #
47
+ def self.mapper()
48
+ {
49
+ required: false,
50
+ serialized_name: 'AlertRuleResourcePatch',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'AlertRuleResourcePatch',
54
+ model_properties: {
55
+ tags: {
56
+ required: false,
57
+ serialized_name: 'tags',
58
+ type: {
59
+ name: 'Dictionary',
60
+ value: {
61
+ required: false,
62
+ serialized_name: 'StringElementType',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ }
67
+ }
68
+ },
69
+ name: {
70
+ required: true,
71
+ serialized_name: 'properties.name',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ description: {
77
+ required: false,
78
+ serialized_name: 'properties.description',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ is_enabled: {
84
+ required: true,
85
+ serialized_name: 'properties.isEnabled',
86
+ type: {
87
+ name: 'Boolean'
88
+ }
89
+ },
90
+ condition: {
91
+ required: true,
92
+ serialized_name: 'properties.condition',
93
+ type: {
94
+ name: 'Composite',
95
+ polymorphic_discriminator: 'odata.type',
96
+ uber_parent: 'RuleCondition',
97
+ class_name: 'RuleCondition'
98
+ }
99
+ },
100
+ actions: {
101
+ required: false,
102
+ serialized_name: 'properties.actions',
103
+ type: {
104
+ name: 'Sequence',
105
+ element: {
106
+ required: false,
107
+ serialized_name: 'RuleActionElementType',
108
+ type: {
109
+ name: 'Composite',
110
+ polymorphic_discriminator: 'odata.type',
111
+ uber_parent: 'RuleAction',
112
+ class_name: 'RuleAction'
113
+ }
114
+ }
115
+ }
116
+ },
117
+ last_updated_time: {
118
+ required: false,
119
+ read_only: true,
120
+ serialized_name: 'properties.lastUpdatedTime',
121
+ type: {
122
+ name: 'DateTime'
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ end
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,78 @@
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
+ # Autoscale notification.
10
+ #
11
+ class AutoscaleNotification
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the operation associated with the notification and its
17
+ # value must be "scale". Default value: 'Scale' .
18
+ attr_accessor :operation
19
+
20
+ # @return [EmailNotification] the email notification.
21
+ attr_accessor :email
22
+
23
+ # @return [Array<WebhookNotification>] the collection of webhook
24
+ # notifications.
25
+ attr_accessor :webhooks
26
+
27
+
28
+ #
29
+ # Mapper for AutoscaleNotification class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'AutoscaleNotification',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'AutoscaleNotification',
39
+ model_properties: {
40
+ operation: {
41
+ required: true,
42
+ is_constant: true,
43
+ serialized_name: 'operation',
44
+ default_value: 'Scale',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ email: {
50
+ required: false,
51
+ serialized_name: 'email',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'EmailNotification'
55
+ }
56
+ },
57
+ webhooks: {
58
+ required: false,
59
+ serialized_name: 'webhooks',
60
+ type: {
61
+ name: 'Sequence',
62
+ element: {
63
+ required: false,
64
+ serialized_name: 'WebhookNotificationElementType',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'WebhookNotification'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ end
@@ -0,0 +1,101 @@
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
+ # Autoscale profile.
10
+ #
11
+ class AutoscaleProfile
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the name of the profile.
17
+ attr_accessor :name
18
+
19
+ # @return [ScaleCapacity] the number of instances that can be used during
20
+ # this profile.
21
+ attr_accessor :capacity
22
+
23
+ # @return [Array<ScaleRule>] the collection of rules that provide the
24
+ # triggers and parameters for the scaling action. A maximum of 10 rules
25
+ # can be specified.
26
+ attr_accessor :rules
27
+
28
+ # @return [TimeWindow] the specific date-time for the profile. This
29
+ # element is not used if the Recurrence element is used.
30
+ attr_accessor :fixed_date
31
+
32
+ # @return [Recurrence] the repeating times at which this profile begins.
33
+ # This element is not used if the FixedDate element is used.
34
+ attr_accessor :recurrence
35
+
36
+
37
+ #
38
+ # Mapper for AutoscaleProfile class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'AutoscaleProfile',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'AutoscaleProfile',
48
+ model_properties: {
49
+ name: {
50
+ required: true,
51
+ serialized_name: 'name',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ capacity: {
57
+ required: true,
58
+ serialized_name: 'capacity',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'ScaleCapacity'
62
+ }
63
+ },
64
+ rules: {
65
+ required: true,
66
+ serialized_name: 'rules',
67
+ type: {
68
+ name: 'Sequence',
69
+ element: {
70
+ required: false,
71
+ serialized_name: 'ScaleRuleElementType',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'ScaleRule'
75
+ }
76
+ }
77
+ }
78
+ },
79
+ fixed_date: {
80
+ required: false,
81
+ serialized_name: 'fixedDate',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'TimeWindow'
85
+ }
86
+ },
87
+ recurrence: {
88
+ required: false,
89
+ serialized_name: 'recurrence',
90
+ type: {
91
+ name: 'Composite',
92
+ class_name: 'Recurrence'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,155 @@
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 autoscale setting resource.
10
+ #
11
+ class AutoscaleSettingResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<AutoscaleProfile>] the collection of automatic scaling
17
+ # profiles that specify different scaling parameters for different time
18
+ # periods. A maximum of 20 profiles can be specified.
19
+ attr_accessor :profiles
20
+
21
+ # @return [Array<AutoscaleNotification>] the collection of notifications.
22
+ attr_accessor :notifications
23
+
24
+ # @return [Boolean] the enabled flag. Specifies whether automatic scaling
25
+ # is enabled for the resource. The default value is 'true'. Default
26
+ # value: true .
27
+ attr_accessor :enabled
28
+
29
+ # @return [String] the name of the autoscale setting.
30
+ attr_accessor :autoscale_setting_resource_name
31
+
32
+ # @return [String] the resource identifier of the resource that the
33
+ # autoscale setting should be added to.
34
+ attr_accessor :target_resource_uri
35
+
36
+
37
+ #
38
+ # Mapper for AutoscaleSettingResource class as Ruby Hash.
39
+ # This will be used for serialization/deserialization.
40
+ #
41
+ def self.mapper()
42
+ {
43
+ required: false,
44
+ serialized_name: 'AutoscaleSettingResource',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'AutoscaleSettingResource',
48
+ model_properties: {
49
+ id: {
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ name: {
58
+ required: false,
59
+ read_only: true,
60
+ serialized_name: 'name',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ },
65
+ type: {
66
+ required: false,
67
+ read_only: true,
68
+ serialized_name: 'type',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ location: {
74
+ required: true,
75
+ serialized_name: 'location',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ tags: {
81
+ required: false,
82
+ serialized_name: 'tags',
83
+ type: {
84
+ name: 'Dictionary',
85
+ value: {
86
+ required: false,
87
+ serialized_name: 'StringElementType',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ }
92
+ }
93
+ },
94
+ profiles: {
95
+ required: true,
96
+ serialized_name: 'properties.profiles',
97
+ constraints: {
98
+ MaxItems: 20
99
+ },
100
+ type: {
101
+ name: 'Sequence',
102
+ element: {
103
+ required: false,
104
+ serialized_name: 'AutoscaleProfileElementType',
105
+ type: {
106
+ name: 'Composite',
107
+ class_name: 'AutoscaleProfile'
108
+ }
109
+ }
110
+ }
111
+ },
112
+ notifications: {
113
+ required: false,
114
+ serialized_name: 'properties.notifications',
115
+ type: {
116
+ name: 'Sequence',
117
+ element: {
118
+ required: false,
119
+ serialized_name: 'AutoscaleNotificationElementType',
120
+ type: {
121
+ name: 'Composite',
122
+ class_name: 'AutoscaleNotification'
123
+ }
124
+ }
125
+ }
126
+ },
127
+ enabled: {
128
+ required: false,
129
+ serialized_name: 'properties.enabled',
130
+ default_value: true,
131
+ type: {
132
+ name: 'Boolean'
133
+ }
134
+ },
135
+ autoscale_setting_resource_name: {
136
+ required: false,
137
+ serialized_name: 'properties.name',
138
+ type: {
139
+ name: 'String'
140
+ }
141
+ },
142
+ target_resource_uri: {
143
+ required: false,
144
+ serialized_name: 'properties.targetResourceUri',
145
+ type: {
146
+ name: 'String'
147
+ }
148
+ }
149
+ }
150
+ }
151
+ }
152
+ end
153
+ end
154
+ end
155
+ end