azure_mgmt_insights 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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,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
+ # Specifies the action to post to service when the rule condition is
10
+ # evaluated.
11
+ #
12
+ class RuleWebhookAction < RuleAction
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
19
+ end
20
+
21
+ attr_accessor :odata.type
22
+
23
+ # @return [String] the service uri to Post the notitication.
24
+ attr_accessor :service_uri
25
+
26
+ # @return [Hash{String => String}] the dictionary of custom properties to
27
+ # include with the post operation.
28
+ attr_accessor :properties
29
+
30
+
31
+ #
32
+ # Mapper for RuleWebhookAction class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'RuleWebhookAction',
42
+ model_properties: {
43
+ odata.type: {
44
+ required: true,
45
+ serialized_name: 'odata.type',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ service_uri: {
51
+ required: false,
52
+ serialized_name: 'serviceUri',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ properties: {
58
+ required: false,
59
+ serialized_name: 'properties',
60
+ type: {
61
+ name: 'Dictionary',
62
+ value: {
63
+ required: false,
64
+ serialized_name: 'StringElementType',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,85 @@
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 parameters for the scaling action.
10
+ #
11
+ class ScaleAction
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ScaleDirection] the scale direction. Whether the scaling
16
+ # action increases or decreases the number of instances. Possible values
17
+ # include: 'None', 'Increase', 'Decrease'
18
+ attr_accessor :direction
19
+
20
+ # @return [String] the type of action that should occur, this must be set
21
+ # to ChangeCount. Default value: 'ChangeCount' .
22
+ attr_accessor :type
23
+
24
+ # @return [String] the number of instances that are involved in the
25
+ # scaling action. This value must be 1 or greater. The default value is
26
+ # 1. Default value: '1' .
27
+ attr_accessor :value
28
+
29
+ # @return [Duration] the amount of time to wait since the last scaling
30
+ # action before this action occurs. It must be between 1 week and 1
31
+ # minute.
32
+ attr_accessor :cooldown
33
+
34
+
35
+ #
36
+ # Mapper for ScaleAction class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'ScaleAction',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'ScaleAction',
46
+ model_properties: {
47
+ direction: {
48
+ required: true,
49
+ serialized_name: 'direction',
50
+ type: {
51
+ name: 'Enum',
52
+ module: 'ScaleDirection'
53
+ }
54
+ },
55
+ type: {
56
+ required: true,
57
+ is_constant: true,
58
+ serialized_name: 'type',
59
+ default_value: 'ChangeCount',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ value: {
65
+ required: false,
66
+ serialized_name: 'value',
67
+ default_value: '1',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ cooldown: {
73
+ required: true,
74
+ serialized_name: 'cooldown',
75
+ type: {
76
+ name: 'TimeSpan'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,67 @@
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 number of instances that can be used during this profile.
10
+ #
11
+ class ScaleCapacity
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the minimum number of instances for the resource.
16
+ attr_accessor :minimum
17
+
18
+ # @return [String] the maximum number of instances for the resource. The
19
+ # actual maximum number may be limited by the cores that are available.
20
+ attr_accessor :maximum
21
+
22
+ # @return [String] the number of instances that will be set if metrics
23
+ # are not available for evaluation. The default is only used if the
24
+ # current instance count is lower than the default.
25
+ attr_accessor :default
26
+
27
+
28
+ #
29
+ # Mapper for ScaleCapacity class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'ScaleCapacity',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ScaleCapacity',
39
+ model_properties: {
40
+ minimum: {
41
+ required: true,
42
+ serialized_name: 'minimum',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ maximum: {
48
+ required: true,
49
+ serialized_name: 'maximum',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ default: {
55
+ required: true,
56
+ serialized_name: 'default',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,17 @@
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
+ # Defines values for ScaleDirection
10
+ #
11
+ module ScaleDirection
12
+ None = "None"
13
+ Increase = "Increase"
14
+ Decrease = "Decrease"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,57 @@
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
+ # A rule that provide the triggers and parameters for the scaling action.
10
+ #
11
+ class ScaleRule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [MetricTrigger] the trigger that results in a scaling action.
16
+ attr_accessor :metric_trigger
17
+
18
+ # @return [ScaleAction] the parameters for the scaling action.
19
+ attr_accessor :scale_action
20
+
21
+
22
+ #
23
+ # Mapper for ScaleRule class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ required: false,
29
+ serialized_name: 'ScaleRule',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'ScaleRule',
33
+ model_properties: {
34
+ metric_trigger: {
35
+ required: false,
36
+ serialized_name: 'metricTrigger',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'MetricTrigger'
40
+ }
41
+ },
42
+ scale_action: {
43
+ required: true,
44
+ serialized_name: 'scaleAction',
45
+ default_value: {},
46
+ type: {
47
+ name: 'Composite',
48
+ class_name: 'ScaleAction'
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 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
+ # Parameters supplied to the Create or Update service configuration.
10
+ #
11
+ class ServiceDiagnosticSettingsCreateOrUpdateParameters
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the resource id of the storage account.
16
+ attr_accessor :storage_account_id
17
+
18
+ # @return [String] the id of the service bus rule.
19
+ attr_accessor :service_bus_rule_id
20
+
21
+ # @return [Array<MetricSettings>] the list of metrics.
22
+ attr_accessor :metrics
23
+
24
+ # @return [Array<LogSettings>] the list of logs.
25
+ attr_accessor :logs
26
+
27
+ # @return [String] the OMS workspace Id.
28
+ attr_accessor :workspace_id
29
+
30
+
31
+ #
32
+ # Mapper for ServiceDiagnosticSettingsCreateOrUpdateParameters class as
33
+ # Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ required: false,
39
+ serialized_name: 'ServiceDiagnosticSettingsCreateOrUpdateParameters',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ServiceDiagnosticSettingsCreateOrUpdateParameters',
43
+ model_properties: {
44
+ storage_account_id: {
45
+ required: false,
46
+ serialized_name: 'properties.storageAccountId',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ service_bus_rule_id: {
52
+ required: false,
53
+ serialized_name: 'properties.serviceBusRuleId',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ metrics: {
59
+ required: false,
60
+ serialized_name: 'properties.metrics',
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ required: false,
65
+ serialized_name: 'MetricSettingsElementType',
66
+ type: {
67
+ name: 'Composite',
68
+ class_name: 'MetricSettings'
69
+ }
70
+ }
71
+ }
72
+ },
73
+ logs: {
74
+ required: false,
75
+ serialized_name: 'properties.logs',
76
+ type: {
77
+ name: 'Sequence',
78
+ element: {
79
+ required: false,
80
+ serialized_name: 'LogSettingsElementType',
81
+ type: {
82
+ name: 'Composite',
83
+ class_name: 'LogSettings'
84
+ }
85
+ }
86
+ }
87
+ },
88
+ workspace_id: {
89
+ required: false,
90
+ serialized_name: 'properties.workspaceId',
91
+ type: {
92
+ name: 'String'
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,144 @@
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
+ # Description of a service diagnostic setting
10
+ #
11
+ class ServiceDiagnosticSettingsResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the resource id of the storage account.
16
+ attr_accessor :storage_account_id
17
+
18
+ # @return [String] the id of the service bus rule.
19
+ attr_accessor :service_bus_rule_id
20
+
21
+ # @return [Array<MetricSettings>] the list of metrics.
22
+ attr_accessor :metrics
23
+
24
+ # @return [Array<LogSettings>] the list of logs.
25
+ attr_accessor :logs
26
+
27
+ # @return [String] the OMS workspace Id.
28
+ attr_accessor :workspace_id
29
+
30
+
31
+ #
32
+ # Mapper for ServiceDiagnosticSettingsResource class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'ServiceDiagnosticSettingsResource',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'ServiceDiagnosticSettingsResource',
42
+ model_properties: {
43
+ id: {
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'id',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ name: {
52
+ required: false,
53
+ serialized_name: 'name',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ type: {
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'type',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ location: {
67
+ required: true,
68
+ serialized_name: 'location',
69
+ type: {
70
+ name: 'String'
71
+ }
72
+ },
73
+ tags: {
74
+ required: false,
75
+ serialized_name: 'tags',
76
+ type: {
77
+ name: 'Dictionary',
78
+ value: {
79
+ required: false,
80
+ serialized_name: 'StringElementType',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ }
85
+ }
86
+ },
87
+ storage_account_id: {
88
+ required: false,
89
+ serialized_name: 'properties.storageAccountId',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
+ service_bus_rule_id: {
95
+ required: false,
96
+ serialized_name: 'properties.serviceBusRuleId',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ metrics: {
102
+ required: false,
103
+ serialized_name: 'properties.metrics',
104
+ type: {
105
+ name: 'Sequence',
106
+ element: {
107
+ required: false,
108
+ serialized_name: 'MetricSettingsElementType',
109
+ type: {
110
+ name: 'Composite',
111
+ class_name: 'MetricSettings'
112
+ }
113
+ }
114
+ }
115
+ },
116
+ logs: {
117
+ required: false,
118
+ serialized_name: 'properties.logs',
119
+ type: {
120
+ name: 'Sequence',
121
+ element: {
122
+ required: false,
123
+ serialized_name: 'LogSettingsElementType',
124
+ type: {
125
+ name: 'Composite',
126
+ class_name: 'LogSettings'
127
+ }
128
+ }
129
+ }
130
+ },
131
+ workspace_id: {
132
+ required: false,
133
+ serialized_name: 'properties.workspaceId',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ }
138
+ }
139
+ }
140
+ }
141
+ end
142
+ end
143
+ end
144
+ end