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,95 @@
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 autoscale setting resources.
10
+ #
11
+ class AutoscaleSettingResourceCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<AutoscaleSettingResource>] the values for the autoscale
17
+ # setting resources.
18
+ attr_accessor :value
19
+
20
+ # @return [String] URL to get the next set of results.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<AutoscaleSettingResource>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [AutoscaleSettingResourceCollection] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for AutoscaleSettingResourceCollection class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ required: false,
62
+ serialized_name: 'AutoscaleSettingResourceCollection',
63
+ type: {
64
+ name: 'Composite',
65
+ class_name: 'AutoscaleSettingResourceCollection',
66
+ model_properties: {
67
+ value: {
68
+ required: true,
69
+ serialized_name: 'value',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'AutoscaleSettingResourceElementType',
75
+ type: {
76
+ name: 'Composite',
77
+ class_name: 'AutoscaleSettingResource'
78
+ }
79
+ }
80
+ }
81
+ },
82
+ next_link: {
83
+ required: false,
84
+ serialized_name: 'nextLink',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ }
91
+ }
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,127 @@
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 object for patch operations.
10
+ #
11
+ class AutoscaleSettingResourcePatch
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Hash{String => String}] Resource tags
17
+ attr_accessor :tags
18
+
19
+ # @return [Array<AutoscaleProfile>] the collection of automatic scaling
20
+ # profiles that specify different scaling parameters for different time
21
+ # periods. A maximum of 20 profiles can be specified.
22
+ attr_accessor :profiles
23
+
24
+ # @return [Array<AutoscaleNotification>] the collection of notifications.
25
+ attr_accessor :notifications
26
+
27
+ # @return [Boolean] the enabled flag. Specifies whether automatic scaling
28
+ # is enabled for the resource. The default value is 'true'. Default
29
+ # value: true .
30
+ attr_accessor :enabled
31
+
32
+ # @return [String] the name of the autoscale setting.
33
+ attr_accessor :name
34
+
35
+ # @return [String] the resource identifier of the resource that the
36
+ # autoscale setting should be added to.
37
+ attr_accessor :target_resource_uri
38
+
39
+
40
+ #
41
+ # Mapper for AutoscaleSettingResourcePatch class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ required: false,
47
+ serialized_name: 'AutoscaleSettingResourcePatch',
48
+ type: {
49
+ name: 'Composite',
50
+ class_name: 'AutoscaleSettingResourcePatch',
51
+ model_properties: {
52
+ tags: {
53
+ required: false,
54
+ serialized_name: 'tags',
55
+ type: {
56
+ name: 'Dictionary',
57
+ value: {
58
+ required: false,
59
+ serialized_name: 'StringElementType',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ }
64
+ }
65
+ },
66
+ profiles: {
67
+ required: true,
68
+ serialized_name: 'properties.profiles',
69
+ constraints: {
70
+ MaxItems: 20
71
+ },
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ required: false,
76
+ serialized_name: 'AutoscaleProfileElementType',
77
+ type: {
78
+ name: 'Composite',
79
+ class_name: 'AutoscaleProfile'
80
+ }
81
+ }
82
+ }
83
+ },
84
+ notifications: {
85
+ required: false,
86
+ serialized_name: 'properties.notifications',
87
+ type: {
88
+ name: 'Sequence',
89
+ element: {
90
+ required: false,
91
+ serialized_name: 'AutoscaleNotificationElementType',
92
+ type: {
93
+ name: 'Composite',
94
+ class_name: 'AutoscaleNotification'
95
+ }
96
+ }
97
+ }
98
+ },
99
+ enabled: {
100
+ required: false,
101
+ serialized_name: 'properties.enabled',
102
+ default_value: true,
103
+ type: {
104
+ name: 'Boolean'
105
+ }
106
+ },
107
+ name: {
108
+ required: false,
109
+ serialized_name: 'properties.name',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ target_resource_uri: {
115
+ required: false,
116
+ serialized_name: 'properties.targetResourceUri',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+ end
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,20 @@
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
+ # Defines values for ComparisonOperationType
10
+ #
11
+ module ComparisonOperationType
12
+ Equals = "Equals"
13
+ NotEquals = "NotEquals"
14
+ GreaterThan = "GreaterThan"
15
+ GreaterThanOrEqual = "GreaterThanOrEqual"
16
+ LessThan = "LessThan"
17
+ LessThanOrEqual = "LessThanOrEqual"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,18 @@
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
+ # Defines values for ConditionOperator
10
+ #
11
+ module ConditionOperator
12
+ GreaterThan = "GreaterThan"
13
+ GreaterThanOrEqual = "GreaterThanOrEqual"
14
+ LessThan = "LessThan"
15
+ LessThanOrEqual = "LessThanOrEqual"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,75 @@
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
+ # Email notification of an autoscale event.
10
+ #
11
+ class EmailNotification
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Boolean] a value indicating whether to send email to
17
+ # subscription administrator.
18
+ attr_accessor :send_to_subscription_administrator
19
+
20
+ # @return [Boolean] a value indicating whether to send email to
21
+ # subscription co-administrators.
22
+ attr_accessor :send_to_subscription_co_administrators
23
+
24
+ # @return [Array<String>] the custom e-mails list. This value can be null
25
+ # or empty, in which case this attribute will be ignored.
26
+ attr_accessor :custom_emails
27
+
28
+
29
+ #
30
+ # Mapper for EmailNotification class as Ruby Hash.
31
+ # This will be used for serialization/deserialization.
32
+ #
33
+ def self.mapper()
34
+ {
35
+ required: false,
36
+ serialized_name: 'EmailNotification',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'EmailNotification',
40
+ model_properties: {
41
+ send_to_subscription_administrator: {
42
+ required: false,
43
+ serialized_name: 'sendToSubscriptionAdministrator',
44
+ type: {
45
+ name: 'Boolean'
46
+ }
47
+ },
48
+ send_to_subscription_co_administrators: {
49
+ required: false,
50
+ serialized_name: 'sendToSubscriptionCoAdministrators',
51
+ type: {
52
+ name: 'Boolean'
53
+ }
54
+ },
55
+ custom_emails: {
56
+ required: false,
57
+ serialized_name: 'customEmails',
58
+ type: {
59
+ name: 'Sequence',
60
+ element: {
61
+ required: false,
62
+ serialized_name: 'StringElementType',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,69 @@
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 email receiver.
10
+ #
11
+ class EmailReceiver
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The name of the email receiver. Names must be unique
17
+ # across all receivers within an action group.
18
+ attr_accessor :name
19
+
20
+ # @return [String] The email address of this receiver.
21
+ attr_accessor :email_address
22
+
23
+ # @return [ReceiverStatus] Possible values include: 'NotSpecified',
24
+ # 'Enabled', 'Disabled'
25
+ attr_accessor :status
26
+
27
+
28
+ #
29
+ # Mapper for EmailReceiver class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'EmailReceiver',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'EmailReceiver',
39
+ model_properties: {
40
+ name: {
41
+ required: true,
42
+ serialized_name: 'name',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ email_address: {
48
+ required: true,
49
+ serialized_name: 'emailAddress',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ status: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'status',
58
+ type: {
59
+ name: 'Enum',
60
+ module: 'ReceiverStatus'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ 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
+ # Describes a receiver that should be resubscribed.
10
+ #
11
+ class EnableRequest
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The name of the receiver to resubscribe.
17
+ attr_accessor :receiver_name
18
+
19
+
20
+ #
21
+ # Mapper for EnableRequest class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'EnableRequest',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'EnableRequest',
31
+ model_properties: {
32
+ receiver_name: {
33
+ required: true,
34
+ serialized_name: 'receiverName',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end