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,66 @@
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
+ # Part of MultiTenantDiagnosticSettings. Specifies the settings for a
10
+ # particular metric.
11
+ #
12
+ class MetricSettings
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Duration] the timegrain of the metric in ISO8601 format.
17
+ attr_accessor :time_grain
18
+
19
+ # @return [Boolean] a value indicating whether this timegrain is enabled.
20
+ attr_accessor :enabled
21
+
22
+ # @return [RetentionPolicy] the retention policy for this timegrain.
23
+ attr_accessor :retention_policy
24
+
25
+
26
+ #
27
+ # Mapper for MetricSettings class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ required: false,
33
+ serialized_name: 'MetricSettings',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'MetricSettings',
37
+ model_properties: {
38
+ time_grain: {
39
+ required: true,
40
+ serialized_name: 'timeGrain',
41
+ type: {
42
+ name: 'TimeSpan'
43
+ }
44
+ },
45
+ enabled: {
46
+ required: true,
47
+ serialized_name: 'enabled',
48
+ type: {
49
+ name: 'Boolean'
50
+ }
51
+ },
52
+ retention_policy: {
53
+ required: false,
54
+ serialized_name: 'retentionPolicy',
55
+ type: {
56
+ name: 'Composite',
57
+ class_name: 'RetentionPolicy'
58
+ }
59
+ }
60
+ }
61
+ }
62
+ }
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,18 @@
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 MetricStatisticType
10
+ #
11
+ module MetricStatisticType
12
+ Average = "Average"
13
+ Min = "Min"
14
+ Max = "Max"
15
+ Sum = "Sum"
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,133 @@
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 trigger that results in a scaling action.
10
+ #
11
+ class MetricTrigger
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the name of the metric that defines what the rule
16
+ # monitors.
17
+ attr_accessor :metric_name
18
+
19
+ # @return [String] the resource identifier of the resource the rule
20
+ # monitors.
21
+ attr_accessor :metric_resource_uri
22
+
23
+ # @return [Duration] the granularity of metrics the rule monitors. Must
24
+ # be one of the predefined values returned from metric definitions for
25
+ # the metric. Must be between 12 hours and 1 minute.
26
+ attr_accessor :time_grain
27
+
28
+ # @return [MetricStatisticType] the metric statistic type. How the
29
+ # metrics from multiple instances are combined. Possible values include:
30
+ # 'Average', 'Min', 'Max', 'Sum'
31
+ attr_accessor :statistic
32
+
33
+ # @return [Duration] the range of time in which instance data is
34
+ # collected. This value must be greater than the delay in metric
35
+ # collection, which can vary from resource-to-resource. Must be between
36
+ # 12 hours and 5 minutes.
37
+ attr_accessor :time_window
38
+
39
+ # @return [TimeAggregationType] time aggregation type. How the data that
40
+ # is collected should be combined over time. The default value is
41
+ # Average. Possible values include: 'Average', 'Minimum', 'Maximum',
42
+ # 'Total', 'Count'
43
+ attr_accessor :time_aggregation
44
+
45
+ # @return [ComparisonOperationType] the operator that is used to compare
46
+ # the metric data and the threshold. Possible values include: 'Equals',
47
+ # 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan',
48
+ # 'LessThanOrEqual'
49
+ attr_accessor :operator
50
+
51
+ # @return [Float] the threshold of the metric that triggers the scale
52
+ # action.
53
+ attr_accessor :threshold
54
+
55
+
56
+ #
57
+ # Mapper for MetricTrigger class as Ruby Hash.
58
+ # This will be used for serialization/deserialization.
59
+ #
60
+ def self.mapper()
61
+ {
62
+ required: false,
63
+ serialized_name: 'MetricTrigger',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'MetricTrigger',
67
+ model_properties: {
68
+ metric_name: {
69
+ required: false,
70
+ serialized_name: 'metricName',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ metric_resource_uri: {
76
+ required: false,
77
+ serialized_name: 'metricResourceUri',
78
+ type: {
79
+ name: 'String'
80
+ }
81
+ },
82
+ time_grain: {
83
+ required: false,
84
+ serialized_name: 'timeGrain',
85
+ type: {
86
+ name: 'TimeSpan'
87
+ }
88
+ },
89
+ statistic: {
90
+ required: false,
91
+ serialized_name: 'statistic',
92
+ type: {
93
+ name: 'Enum',
94
+ module: 'MetricStatisticType'
95
+ }
96
+ },
97
+ time_window: {
98
+ required: false,
99
+ serialized_name: 'timeWindow',
100
+ type: {
101
+ name: 'TimeSpan'
102
+ }
103
+ },
104
+ time_aggregation: {
105
+ required: false,
106
+ serialized_name: 'timeAggregation',
107
+ type: {
108
+ name: 'Enum',
109
+ module: 'TimeAggregationType'
110
+ }
111
+ },
112
+ operator: {
113
+ required: false,
114
+ serialized_name: 'operator',
115
+ type: {
116
+ name: 'Enum',
117
+ module: 'ComparisonOperationType'
118
+ }
119
+ },
120
+ threshold: {
121
+ required: false,
122
+ serialized_name: 'threshold',
123
+ type: {
124
+ name: 'Double'
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ end
131
+ end
132
+ end
133
+ end
@@ -0,0 +1,61 @@
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 repeating times at which this profile begins. This element is not
10
+ # used if the FixedDate element is used.
11
+ #
12
+ class Recurrence
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [RecurrenceFrequency] the recurrence frequency. How often the
17
+ # schedule profile should take effect. This value must be Week, meaning
18
+ # each week will have the same set of profiles. Possible values include:
19
+ # 'None', 'Second', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year'
20
+ attr_accessor :frequency
21
+
22
+ # @return [RecurrentSchedule] the scheduling constraints for when the
23
+ # profile begins.
24
+ attr_accessor :schedule
25
+
26
+
27
+ #
28
+ # Mapper for Recurrence class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ required: false,
34
+ serialized_name: 'Recurrence',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Recurrence',
38
+ model_properties: {
39
+ frequency: {
40
+ required: false,
41
+ serialized_name: 'frequency',
42
+ type: {
43
+ name: 'Enum',
44
+ module: 'RecurrenceFrequency'
45
+ }
46
+ },
47
+ schedule: {
48
+ required: false,
49
+ serialized_name: 'schedule',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'RecurrentSchedule'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ end
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,22 @@
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 RecurrenceFrequency
10
+ #
11
+ module RecurrenceFrequency
12
+ None = "None"
13
+ Second = "Second"
14
+ Minute = "Minute"
15
+ Hour = "Hour"
16
+ Day = "Day"
17
+ Week = "Week"
18
+ Month = "Month"
19
+ Year = "Year"
20
+ end
21
+ end
22
+ 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
+ # The scheduling constraints for when the profile begins.
10
+ #
11
+ class RecurrentSchedule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] the time zone for the hours of the profile. See
16
+ # examples of valid timezone ids over here:
17
+ # https://msdn.microsoft.com/en-us/library/azure/dn931928.aspx
18
+ attr_accessor :time_zone
19
+
20
+ # @return [Array<String>] the collection of days that the profile takes
21
+ # effect on. Possible values are Sunday through Saturday.
22
+ attr_accessor :days
23
+
24
+ # @return [Array<Integer>] A collection of hours that the profile takes
25
+ # effect on. Values supported are 0 to 23 on the 24-hour clock (AM/PM
26
+ # times are not supported).
27
+ attr_accessor :hours
28
+
29
+ # @return [Array<Integer>] A collection of minutes at which the profile
30
+ # takes effect at.
31
+ attr_accessor :minutes
32
+
33
+
34
+ #
35
+ # Mapper for RecurrentSchedule class as Ruby Hash.
36
+ # This will be used for serialization/deserialization.
37
+ #
38
+ def self.mapper()
39
+ {
40
+ required: false,
41
+ serialized_name: 'RecurrentSchedule',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'RecurrentSchedule',
45
+ model_properties: {
46
+ time_zone: {
47
+ required: false,
48
+ serialized_name: 'timeZone',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ days: {
54
+ required: false,
55
+ serialized_name: 'days',
56
+ type: {
57
+ name: 'Sequence',
58
+ element: {
59
+ required: false,
60
+ serialized_name: 'StringElementType',
61
+ type: {
62
+ name: 'String'
63
+ }
64
+ }
65
+ }
66
+ },
67
+ hours: {
68
+ required: false,
69
+ serialized_name: 'hours',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ required: false,
74
+ serialized_name: 'NumberElementType',
75
+ type: {
76
+ name: 'Number'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ minutes: {
82
+ required: false,
83
+ serialized_name: 'minutes',
84
+ type: {
85
+ name: 'Sequence',
86
+ element: {
87
+ required: false,
88
+ serialized_name: 'NumberElementType',
89
+ type: {
90
+ name: 'Number'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ }
97
+ }
98
+ end
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,55 @@
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 retention policy for the log.
10
+ #
11
+ class RetentionPolicy
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Boolean] a value indicating whether the retention policy is
16
+ # enabled.
17
+ attr_accessor :enabled
18
+
19
+ # @return [Integer] the number of days for the retention.
20
+ attr_accessor :days
21
+
22
+
23
+ #
24
+ # Mapper for RetentionPolicy class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'RetentionPolicy',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'RetentionPolicy',
34
+ model_properties: {
35
+ enabled: {
36
+ required: true,
37
+ serialized_name: 'enabled',
38
+ type: {
39
+ name: 'Boolean'
40
+ }
41
+ },
42
+ days: {
43
+ required: true,
44
+ serialized_name: 'days',
45
+ type: {
46
+ name: 'Number'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end