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,79 @@
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 SMS receiver.
10
+ #
11
+ class SmsReceiver
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The name of the SMS receiver. Names must be unique
17
+ # across all receivers within an action group.
18
+ attr_accessor :name
19
+
20
+ # @return [String] The country code of the SMS receiver.
21
+ attr_accessor :country_code
22
+
23
+ # @return [String] The phone number of the SMS receiver.
24
+ attr_accessor :phone_number
25
+
26
+ # @return [ReceiverStatus] Possible values include: 'NotSpecified',
27
+ # 'Enabled', 'Disabled'
28
+ attr_accessor :status
29
+
30
+
31
+ #
32
+ # Mapper for SmsReceiver class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ required: false,
38
+ serialized_name: 'SmsReceiver',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'SmsReceiver',
42
+ model_properties: {
43
+ name: {
44
+ required: true,
45
+ serialized_name: 'name',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ },
50
+ country_code: {
51
+ required: true,
52
+ serialized_name: 'countryCode',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ phone_number: {
58
+ required: true,
59
+ serialized_name: 'phoneNumber',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ status: {
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'status',
68
+ type: {
69
+ name: 'Enum',
70
+ module: 'ReceiverStatus'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,108 @@
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
+ # A rule condition based on a metric crossing a threshold.
10
+ #
11
+ class ThresholdRuleCondition < RuleCondition
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+
17
+ def initialize
18
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition"
19
+ end
20
+
21
+ attr_accessor :odata.type
22
+
23
+ # @return [ConditionOperator] the operator used to compare the data and
24
+ # the threshold. Possible values include: 'GreaterThan',
25
+ # 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'
26
+ attr_accessor :operator
27
+
28
+ # @return [Float] the threshold value that activates the alert.
29
+ attr_accessor :threshold
30
+
31
+ # @return [Duration] the period of time (in ISO 8601 duration format)
32
+ # that is used to monitor alert activity based on the threshold. If
33
+ # specified then it must be between 5 minutes and 1 day.
34
+ attr_accessor :window_size
35
+
36
+ # @return [TimeAggregationOperator] the time aggregation operator. How
37
+ # the data that are collected should be combined over time. The default
38
+ # value is the PrimaryAggregationType of the Metric. Possible values
39
+ # include: 'Average', 'Minimum', 'Maximum', 'Total', 'Last'
40
+ attr_accessor :time_aggregation
41
+
42
+
43
+ #
44
+ # Mapper for ThresholdRuleCondition class as Ruby Hash.
45
+ # This will be used for serialization/deserialization.
46
+ #
47
+ def self.mapper()
48
+ {
49
+ required: false,
50
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.ThresholdRuleCondition',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'ThresholdRuleCondition',
54
+ model_properties: {
55
+ data_source: {
56
+ required: false,
57
+ serialized_name: 'dataSource',
58
+ type: {
59
+ name: 'Composite',
60
+ polymorphic_discriminator: 'odata.type',
61
+ uber_parent: 'RuleDataSource',
62
+ class_name: 'RuleDataSource'
63
+ }
64
+ },
65
+ odata.type: {
66
+ required: true,
67
+ serialized_name: 'odata\\.type',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ operator: {
73
+ required: true,
74
+ serialized_name: 'operator',
75
+ type: {
76
+ name: 'Enum',
77
+ module: 'ConditionOperator'
78
+ }
79
+ },
80
+ threshold: {
81
+ required: true,
82
+ serialized_name: 'threshold',
83
+ type: {
84
+ name: 'Double'
85
+ }
86
+ },
87
+ window_size: {
88
+ required: false,
89
+ serialized_name: 'windowSize',
90
+ type: {
91
+ name: 'TimeSpan'
92
+ }
93
+ },
94
+ time_aggregation: {
95
+ required: false,
96
+ serialized_name: 'timeAggregation',
97
+ type: {
98
+ name: 'Enum',
99
+ module: 'TimeAggregationOperator'
100
+ }
101
+ }
102
+ }
103
+ }
104
+ }
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,19 @@
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 TimeAggregationOperator
10
+ #
11
+ module TimeAggregationOperator
12
+ Average = "Average"
13
+ Minimum = "Minimum"
14
+ Maximum = "Maximum"
15
+ Total = "Total"
16
+ Last = "Last"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,19 @@
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 TimeAggregationType
10
+ #
11
+ module TimeAggregationType
12
+ Average = "Average"
13
+ Minimum = "Minimum"
14
+ Maximum = "Maximum"
15
+ Total = "Total"
16
+ Count = "Count"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,104 @@
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
+ # A specific date-time for the profile.
10
+ #
11
+ class TimeWindow
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the timezone of the start and end times for the
17
+ # profile. Some examples of valid timezones are: Dateline Standard Time,
18
+ # UTC-11, Hawaiian Standard Time, Alaskan Standard Time, Pacific Standard
19
+ # Time (Mexico), Pacific Standard Time, US Mountain Standard Time,
20
+ # Mountain Standard Time (Mexico), Mountain Standard Time, Central
21
+ # America Standard Time, Central Standard Time, Central Standard Time
22
+ # (Mexico), Canada Central Standard Time, SA Pacific Standard Time,
23
+ # Eastern Standard Time, US Eastern Standard Time, Venezuela Standard
24
+ # Time, Paraguay Standard Time, Atlantic Standard Time, Central Brazilian
25
+ # Standard Time, SA Western Standard Time, Pacific SA Standard Time,
26
+ # Newfoundland Standard Time, E. South America Standard Time, Argentina
27
+ # Standard Time, SA Eastern Standard Time, Greenland Standard Time,
28
+ # Montevideo Standard Time, Bahia Standard Time, UTC-02, Mid-Atlantic
29
+ # Standard Time, Azores Standard Time, Cape Verde Standard Time, Morocco
30
+ # Standard Time, UTC, GMT Standard Time, Greenwich Standard Time, W.
31
+ # Europe Standard Time, Central Europe Standard Time, Romance Standard
32
+ # Time, Central European Standard Time, W. Central Africa Standard Time,
33
+ # Namibia Standard Time, Jordan Standard Time, GTB Standard Time, Middle
34
+ # East Standard Time, Egypt Standard Time, Syria Standard Time, E. Europe
35
+ # Standard Time, South Africa Standard Time, FLE Standard Time, Turkey
36
+ # Standard Time, Israel Standard Time, Kaliningrad Standard Time, Libya
37
+ # Standard Time, Arabic Standard Time, Arab Standard Time, Belarus
38
+ # Standard Time, Russian Standard Time, E. Africa Standard Time, Iran
39
+ # Standard Time, Arabian Standard Time, Azerbaijan Standard Time, Russia
40
+ # Time Zone 3, Mauritius Standard Time, Georgian Standard Time, Caucasus
41
+ # Standard Time, Afghanistan Standard Time, West Asia Standard Time,
42
+ # Ekaterinburg Standard Time, Pakistan Standard Time, India Standard
43
+ # Time, Sri Lanka Standard Time, Nepal Standard Time, Central Asia
44
+ # Standard Time, Bangladesh Standard Time, N. Central Asia Standard Time,
45
+ # Myanmar Standard Time, SE Asia Standard Time, North Asia Standard Time,
46
+ # China Standard Time, North Asia East Standard Time, Singapore Standard
47
+ # Time, W. Australia Standard Time, Taipei Standard Time, Ulaanbaatar
48
+ # Standard Time, Tokyo Standard Time, Korea Standard Time, Yakutsk
49
+ # Standard Time, Cen. Australia Standard Time, AUS Central Standard Time,
50
+ # E. Australia Standard Time, AUS Eastern Standard Time, West Pacific
51
+ # Standard Time, Tasmania Standard Time, Magadan Standard Time,
52
+ # Vladivostok Standard Time, Russia Time Zone 10, Central Pacific
53
+ # Standard Time, Russia Time Zone 11, New Zealand Standard Time, UTC+12,
54
+ # Fiji Standard Time, Kamchatka Standard Time, Tonga Standard Time, Samoa
55
+ # Standard Time, Line Islands Standard Time
56
+ attr_accessor :time_zone
57
+
58
+ # @return [DateTime] the start time for the profile in ISO 8601 format.
59
+ attr_accessor :start
60
+
61
+ # @return [DateTime] the end time for the profile in ISO 8601 format.
62
+ attr_accessor :end_property
63
+
64
+
65
+ #
66
+ # Mapper for TimeWindow class as Ruby Hash.
67
+ # This will be used for serialization/deserialization.
68
+ #
69
+ def self.mapper()
70
+ {
71
+ required: false,
72
+ serialized_name: 'TimeWindow',
73
+ type: {
74
+ name: 'Composite',
75
+ class_name: 'TimeWindow',
76
+ model_properties: {
77
+ time_zone: {
78
+ required: false,
79
+ serialized_name: 'timeZone',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ start: {
85
+ required: true,
86
+ serialized_name: 'start',
87
+ type: {
88
+ name: 'DateTime'
89
+ }
90
+ },
91
+ end_property: {
92
+ required: true,
93
+ serialized_name: 'end',
94
+ type: {
95
+ name: 'DateTime'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,63 @@
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
+ # Webhook notification of an autoscale event.
10
+ #
11
+ class WebhookNotification
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the service address to receive the notification.
17
+ attr_accessor :service_uri
18
+
19
+ # @return [Hash{String => String}] a property bag of settings. This value
20
+ # can be empty.
21
+ attr_accessor :properties
22
+
23
+
24
+ #
25
+ # Mapper for WebhookNotification class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'WebhookNotification',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'WebhookNotification',
35
+ model_properties: {
36
+ service_uri: {
37
+ required: false,
38
+ serialized_name: 'serviceUri',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ properties: {
44
+ required: false,
45
+ serialized_name: 'properties',
46
+ type: {
47
+ name: 'Dictionary',
48
+ value: {
49
+ required: false,
50
+ serialized_name: 'StringElementType',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ }
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,56 @@
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
+ # A webhook receiver.
10
+ #
11
+ class WebhookReceiver
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] The name of the webhook receiver. Names must be unique
17
+ # across all receivers within an action group.
18
+ attr_accessor :name
19
+
20
+ # @return [String] The URI where webhooks should be sent.
21
+ attr_accessor :service_uri
22
+
23
+
24
+ #
25
+ # Mapper for WebhookReceiver class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ required: false,
31
+ serialized_name: 'WebhookReceiver',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'WebhookReceiver',
35
+ model_properties: {
36
+ name: {
37
+ required: true,
38
+ serialized_name: 'name',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ service_uri: {
44
+ required: true,
45
+ serialized_name: 'serviceUri',
46
+ type: {
47
+ name: 'String'
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end