azure_mgmt_insights 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/azure_mgmt_insights.rb +5 -0
  4. data/lib/generated/azure_mgmt_insights.rb +77 -0
  5. data/lib/generated/azure_mgmt_insights/alert_rule_incidents.rb +121 -0
  6. data/lib/generated/azure_mgmt_insights/alert_rules.rb +410 -0
  7. data/lib/generated/azure_mgmt_insights/autoscale_settings.rb +521 -0
  8. data/lib/generated/azure_mgmt_insights/incidents.rb +117 -0
  9. data/lib/generated/azure_mgmt_insights/insights_management_client.rb +147 -0
  10. data/lib/generated/azure_mgmt_insights/log_profiles.rb +375 -0
  11. data/lib/generated/azure_mgmt_insights/models/alert_rule_resource.rb +156 -0
  12. data/lib/generated/azure_mgmt_insights/models/alert_rule_resource_collection.rb +53 -0
  13. data/lib/generated/azure_mgmt_insights/models/autoscale_notification.rb +77 -0
  14. data/lib/generated/azure_mgmt_insights/models/autoscale_profile.rb +100 -0
  15. data/lib/generated/azure_mgmt_insights/models/autoscale_setting_resource.rb +152 -0
  16. data/lib/generated/azure_mgmt_insights/models/autoscale_setting_resource_collection.rb +94 -0
  17. data/lib/generated/azure_mgmt_insights/models/comparison_operation_type.rb +20 -0
  18. data/lib/generated/azure_mgmt_insights/models/condition_operator.rb +18 -0
  19. data/lib/generated/azure_mgmt_insights/models/email_notification.rb +73 -0
  20. data/lib/generated/azure_mgmt_insights/models/incident.rb +92 -0
  21. data/lib/generated/azure_mgmt_insights/models/incident_list_result.rb +52 -0
  22. data/lib/generated/azure_mgmt_insights/models/location_threshold_rule_condition.rb +85 -0
  23. data/lib/generated/azure_mgmt_insights/models/log_profile_collection.rb +52 -0
  24. data/lib/generated/azure_mgmt_insights/models/log_profile_create_or_update_parameters.rb +99 -0
  25. data/lib/generated/azure_mgmt_insights/models/log_profile_resource.rb +143 -0
  26. data/lib/generated/azure_mgmt_insights/models/log_settings.rb +66 -0
  27. data/lib/generated/azure_mgmt_insights/models/management_event_aggregation_condition.rb +69 -0
  28. data/lib/generated/azure_mgmt_insights/models/management_event_rule_condition.rb +74 -0
  29. data/lib/generated/azure_mgmt_insights/models/metric_settings.rb +66 -0
  30. data/lib/generated/azure_mgmt_insights/models/metric_statistic_type.rb +18 -0
  31. data/lib/generated/azure_mgmt_insights/models/metric_trigger.rb +133 -0
  32. data/lib/generated/azure_mgmt_insights/models/recurrence.rb +61 -0
  33. data/lib/generated/azure_mgmt_insights/models/recurrence_frequency.rb +22 -0
  34. data/lib/generated/azure_mgmt_insights/models/recurrent_schedule.rb +101 -0
  35. data/lib/generated/azure_mgmt_insights/models/retention_policy.rb +55 -0
  36. data/lib/generated/azure_mgmt_insights/models/rule_action.rb +47 -0
  37. data/lib/generated/azure_mgmt_insights/models/rule_condition.rb +47 -0
  38. data/lib/generated/azure_mgmt_insights/models/rule_data_source.rb +46 -0
  39. data/lib/generated/azure_mgmt_insights/models/rule_email_action.rb +78 -0
  40. data/lib/generated/azure_mgmt_insights/models/rule_management_event_claims_data_source.rb +44 -0
  41. data/lib/generated/azure_mgmt_insights/models/rule_management_event_data_source.rb +151 -0
  42. data/lib/generated/azure_mgmt_insights/models/rule_metric_data_source.rb +70 -0
  43. data/lib/generated/azure_mgmt_insights/models/rule_webhook_action.rb +77 -0
  44. data/lib/generated/azure_mgmt_insights/models/scale_action.rb +85 -0
  45. data/lib/generated/azure_mgmt_insights/models/scale_capacity.rb +67 -0
  46. data/lib/generated/azure_mgmt_insights/models/scale_direction.rb +17 -0
  47. data/lib/generated/azure_mgmt_insights/models/scale_rule.rb +57 -0
  48. data/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings_create_or_update_parameters.rb +101 -0
  49. data/lib/generated/azure_mgmt_insights/models/service_diagnostic_settings_resource.rb +144 -0
  50. data/lib/generated/azure_mgmt_insights/models/threshold_rule_condition.rb +111 -0
  51. data/lib/generated/azure_mgmt_insights/models/time_aggregation_operator.rb +19 -0
  52. data/lib/generated/azure_mgmt_insights/models/time_aggregation_type.rb +19 -0
  53. data/lib/generated/azure_mgmt_insights/models/time_window.rb +67 -0
  54. data/lib/generated/azure_mgmt_insights/models/webhook_notification.rb +61 -0
  55. data/lib/generated/azure_mgmt_insights/module_definition.rb +8 -0
  56. data/lib/generated/azure_mgmt_insights/service_diagnostic_settings_operations.rb +216 -0
  57. data/lib/generated/azure_mgmt_insights/version.rb +8 -0
  58. metadata +169 -0
@@ -0,0 +1,156 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Insights
7
+ module Models
8
+ #
9
+ # The alert rule resource.
10
+ #
11
+ class AlertRuleResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the name of the alert rule.
16
+ attr_accessor :alert_rule_resource_name
17
+
18
+ # @return [String] the description of the alert rule that will be
19
+ # included in the alert email.
20
+ attr_accessor :description
21
+
22
+ # @return [Boolean] the flag that indicates whether the alert rule is
23
+ # enabled.
24
+ attr_accessor :is_enabled
25
+
26
+ # @return [RuleCondition] the condition that results in the alert rule
27
+ # being activated.
28
+ attr_accessor :condition
29
+
30
+ # @return [Array<RuleAction>] the actions that are performed when the
31
+ # alert rule becomes active, and when an alert condition is resolved.
32
+ attr_accessor :actions
33
+
34
+ # @return [DateTime] Last time the rule was updated in ISO8601 format.
35
+ attr_accessor :last_updated_time
36
+
37
+
38
+ #
39
+ # Mapper for AlertRuleResource class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ required: false,
45
+ serialized_name: 'AlertRuleResource',
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'AlertRuleResource',
49
+ model_properties: {
50
+ id: {
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ name: {
59
+ required: false,
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
+ alert_rule_resource_name: {
95
+ required: true,
96
+ serialized_name: 'properties.name',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ description: {
102
+ required: false,
103
+ serialized_name: 'properties.description',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ is_enabled: {
109
+ required: true,
110
+ serialized_name: 'properties.isEnabled',
111
+ type: {
112
+ name: 'Boolean'
113
+ }
114
+ },
115
+ condition: {
116
+ required: false,
117
+ serialized_name: 'properties.condition',
118
+ type: {
119
+ name: 'Composite',
120
+ polymorphic_discriminator: 'odata.type',
121
+ uber_parent: 'RuleCondition',
122
+ class_name: 'RuleCondition'
123
+ }
124
+ },
125
+ actions: {
126
+ required: false,
127
+ serialized_name: 'properties.actions',
128
+ type: {
129
+ name: 'Sequence',
130
+ element: {
131
+ required: false,
132
+ serialized_name: 'RuleActionElementType',
133
+ type: {
134
+ name: 'Composite',
135
+ polymorphic_discriminator: 'odata.type',
136
+ uber_parent: 'RuleAction',
137
+ class_name: 'RuleAction'
138
+ }
139
+ }
140
+ }
141
+ },
142
+ last_updated_time: {
143
+ required: false,
144
+ read_only: true,
145
+ serialized_name: 'properties.lastUpdatedTime',
146
+ type: {
147
+ name: 'DateTime'
148
+ }
149
+ }
150
+ }
151
+ }
152
+ }
153
+ end
154
+ end
155
+ end
156
+ end
@@ -0,0 +1,53 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Insights
7
+ module Models
8
+ #
9
+ # Represents a collection of alert rule resources.
10
+ #
11
+ class AlertRuleResourceCollection
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<AlertRuleResource>] the values for the alert rule
16
+ # resources.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for AlertRuleResourceCollection class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'AlertRuleResourceCollection',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AlertRuleResourceCollection',
31
+ model_properties: {
32
+ value: {
33
+ required: false,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'AlertRuleResourceElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'AlertRuleResource'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,77 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Insights
7
+ module Models
8
+ #
9
+ # Autoscale notification.
10
+ #
11
+ class AutoscaleNotification
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the operation associated with the notification and
16
+ # it's value must be "scale". Default value: 'Scale' .
17
+ attr_accessor :operation
18
+
19
+ # @return [EmailNotification] the email notification.
20
+ attr_accessor :email
21
+
22
+ # @return [Array<WebhookNotification>] the collection of webhook
23
+ # notifications.
24
+ attr_accessor :webhooks
25
+
26
+
27
+ #
28
+ # Mapper for AutoscaleNotification class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'AutoscaleNotification',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'AutoscaleNotification',
38
+ model_properties: {
39
+ operation: {
40
+ required: true,
41
+ is_constant: true,
42
+ serialized_name: 'operation',
43
+ default_value: 'Scale',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ email: {
49
+ required: false,
50
+ serialized_name: 'email',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'EmailNotification'
54
+ }
55
+ },
56
+ webhooks: {
57
+ required: false,
58
+ serialized_name: 'webhooks',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ required: false,
63
+ serialized_name: 'WebhookNotificationElementType',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'WebhookNotification'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,100 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Insights
7
+ module Models
8
+ #
9
+ # Autoscale profile.
10
+ #
11
+ class AutoscaleProfile
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the name of the profile.
16
+ attr_accessor :name
17
+
18
+ # @return [ScaleCapacity] the number of instances that can be used during
19
+ # this profile.
20
+ attr_accessor :capacity
21
+
22
+ # @return [Array<ScaleRule>] the collection of rules that provide the
23
+ # triggers and parameters for the scaling action. A maximum of 10 rules
24
+ # can be specified.
25
+ attr_accessor :rules
26
+
27
+ # @return [TimeWindow] the specific date-time for the profile. This
28
+ # element is not used if the Recurrence element is used.
29
+ attr_accessor :fixed_date
30
+
31
+ # @return [Recurrence] the repeating times at which this profile begins.
32
+ # This element is not used if the FixedDate element is used.
33
+ attr_accessor :recurrence
34
+
35
+
36
+ #
37
+ # Mapper for AutoscaleProfile class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ required: false,
43
+ serialized_name: 'AutoscaleProfile',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'AutoscaleProfile',
47
+ model_properties: {
48
+ name: {
49
+ required: true,
50
+ serialized_name: 'name',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ capacity: {
56
+ required: true,
57
+ serialized_name: 'capacity',
58
+ type: {
59
+ name: 'Composite',
60
+ class_name: 'ScaleCapacity'
61
+ }
62
+ },
63
+ rules: {
64
+ required: true,
65
+ serialized_name: 'rules',
66
+ type: {
67
+ name: 'Sequence',
68
+ element: {
69
+ required: false,
70
+ serialized_name: 'ScaleRuleElementType',
71
+ type: {
72
+ name: 'Composite',
73
+ class_name: 'ScaleRule'
74
+ }
75
+ }
76
+ }
77
+ },
78
+ fixed_date: {
79
+ required: false,
80
+ serialized_name: 'fixedDate',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'TimeWindow'
84
+ }
85
+ },
86
+ recurrence: {
87
+ required: false,
88
+ serialized_name: 'recurrence',
89
+ type: {
90
+ name: 'Composite',
91
+ class_name: 'Recurrence'
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ end
98
+ end
99
+ end
100
+ end
@@ -0,0 +1,152 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.0.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Insights
7
+ module Models
8
+ #
9
+ # The autoscale setting resource.
10
+ #
11
+ class AutoscaleSettingResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<AutoscaleProfile>] the collection of automatic scaling
16
+ # profiles that specify different scaling parameters for different time
17
+ # periods. A maximum of 20 profiles can be specified.
18
+ attr_accessor :profiles
19
+
20
+ # @return [Array<AutoscaleNotification>] the collection of notifications.
21
+ attr_accessor :notifications
22
+
23
+ # @return [Boolean] the enabled flag. Specifies whether automatic scaling
24
+ # is enabled for the resource. Default value: true .
25
+ attr_accessor :enabled
26
+
27
+ # @return [String] the name of the autoscale setting.
28
+ attr_accessor :autoscale_setting_resource_name
29
+
30
+ # @return [String] the resource identifier of the resource that the
31
+ # autoscale setting should be added to.
32
+ attr_accessor :target_resource_uri
33
+
34
+
35
+ #
36
+ # Mapper for AutoscaleSettingResource class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'AutoscaleSettingResource',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'AutoscaleSettingResource',
46
+ model_properties: {
47
+ id: {
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ name: {
56
+ required: false,
57
+ serialized_name: 'name',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ type: {
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'type',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ location: {
71
+ required: true,
72
+ serialized_name: 'location',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ tags: {
78
+ required: false,
79
+ serialized_name: 'tags',
80
+ type: {
81
+ name: 'Dictionary',
82
+ value: {
83
+ required: false,
84
+ serialized_name: 'StringElementType',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ }
89
+ }
90
+ },
91
+ profiles: {
92
+ required: true,
93
+ serialized_name: 'properties.profiles',
94
+ constraints: {
95
+ MaxItems: 20
96
+ },
97
+ type: {
98
+ name: 'Sequence',
99
+ element: {
100
+ required: false,
101
+ serialized_name: 'AutoscaleProfileElementType',
102
+ type: {
103
+ name: 'Composite',
104
+ class_name: 'AutoscaleProfile'
105
+ }
106
+ }
107
+ }
108
+ },
109
+ notifications: {
110
+ required: false,
111
+ serialized_name: 'properties.notifications',
112
+ type: {
113
+ name: 'Sequence',
114
+ element: {
115
+ required: false,
116
+ serialized_name: 'AutoscaleNotificationElementType',
117
+ type: {
118
+ name: 'Composite',
119
+ class_name: 'AutoscaleNotification'
120
+ }
121
+ }
122
+ }
123
+ },
124
+ enabled: {
125
+ required: false,
126
+ serialized_name: 'properties.enabled',
127
+ default_value: true,
128
+ type: {
129
+ name: 'Boolean'
130
+ }
131
+ },
132
+ autoscale_setting_resource_name: {
133
+ required: true,
134
+ serialized_name: 'properties.name',
135
+ type: {
136
+ name: 'String'
137
+ }
138
+ },
139
+ target_resource_uri: {
140
+ required: false,
141
+ serialized_name: 'properties.targetResourceUri',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ }
146
+ }
147
+ }
148
+ }
149
+ end
150
+ end
151
+ end
152
+ end