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,55 @@
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 the format of Error response.
10
+ #
11
+ class ErrorResponse
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Error code
17
+ attr_accessor :code
18
+
19
+ # @return [String] Error message indicating why the operation failed.
20
+ attr_accessor :message
21
+
22
+
23
+ #
24
+ # Mapper for ErrorResponse class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'ErrorResponse',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ErrorResponse',
34
+ model_properties: {
35
+ code: {
36
+ required: false,
37
+ serialized_name: 'code',
38
+ type: {
39
+ name: 'String'
40
+ }
41
+ },
42
+ message: {
43
+ required: false,
44
+ serialized_name: 'message',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,93 @@
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 alert incident indicates the activation status of an alert rule.
10
+ #
11
+ class Incident
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] Incident name.
17
+ attr_accessor :name
18
+
19
+ # @return [String] Rule name that is associated with the incident.
20
+ attr_accessor :rule_name
21
+
22
+ # @return [Boolean] A boolean to indicate whether the incident is active
23
+ # or resolved.
24
+ attr_accessor :is_active
25
+
26
+ # @return [DateTime] The time at which the incident was activated in
27
+ # ISO8601 format.
28
+ attr_accessor :activated_time
29
+
30
+ # @return [DateTime] The time at which the incident was resolved in
31
+ # ISO8601 format. If null, it means the incident is still active.
32
+ attr_accessor :resolved_time
33
+
34
+
35
+ #
36
+ # Mapper for Incident class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ required: false,
42
+ serialized_name: 'Incident',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Incident',
46
+ model_properties: {
47
+ name: {
48
+ required: false,
49
+ read_only: true,
50
+ serialized_name: 'name',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ rule_name: {
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'ruleName',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ is_active: {
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'isActive',
67
+ type: {
68
+ name: 'Boolean'
69
+ }
70
+ },
71
+ activated_time: {
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'activatedTime',
75
+ type: {
76
+ name: 'DateTime'
77
+ }
78
+ },
79
+ resolved_time: {
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'resolvedTime',
83
+ type: {
84
+ name: 'DateTime'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,53 @@
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 List incidents operation response.
10
+ #
11
+ class IncidentListResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<Incident>] the incident collection.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for IncidentListResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'IncidentListResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'IncidentListResult',
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: 'IncidentElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'Incident'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,85 @@
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 certain number of locations failing.
10
+ #
11
+ class LocationThresholdRuleCondition < RuleCondition
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+
17
+ def initialize
18
+ @odata.type = "Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition"
19
+ end
20
+
21
+ attr_accessor :odata.type
22
+
23
+ # @return [Duration] the period of time (in ISO 8601 duration format)
24
+ # that is used to monitor alert activity based on the threshold. If
25
+ # specified then it must be between 5 minutes and 1 day.
26
+ attr_accessor :window_size
27
+
28
+ # @return [Integer] the number of locations that must fail to activate
29
+ # the alert.
30
+ attr_accessor :failed_location_count
31
+
32
+
33
+ #
34
+ # Mapper for LocationThresholdRuleCondition class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ required: false,
40
+ serialized_name: 'Microsoft.Azure.Management.Insights.Models.LocationThresholdRuleCondition',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'LocationThresholdRuleCondition',
44
+ model_properties: {
45
+ data_source: {
46
+ required: false,
47
+ serialized_name: 'dataSource',
48
+ type: {
49
+ name: 'Composite',
50
+ polymorphic_discriminator: 'odata.type',
51
+ uber_parent: 'RuleDataSource',
52
+ class_name: 'RuleDataSource'
53
+ }
54
+ },
55
+ odata.type: {
56
+ required: true,
57
+ serialized_name: 'odata\\.type',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ window_size: {
63
+ required: false,
64
+ serialized_name: 'windowSize',
65
+ type: {
66
+ name: 'TimeSpan'
67
+ }
68
+ },
69
+ failed_location_count: {
70
+ required: true,
71
+ serialized_name: 'failedLocationCount',
72
+ constraints: {
73
+ InclusiveMinimum: 0
74
+ },
75
+ type: {
76
+ name: 'Number'
77
+ }
78
+ }
79
+ }
80
+ }
81
+ }
82
+ end
83
+ end
84
+ end
85
+ end
@@ -0,0 +1,53 @@
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 log profiles.
10
+ #
11
+ class LogProfileCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<LogProfileResource>] the values of the log profiles.
17
+ attr_accessor :value
18
+
19
+
20
+ #
21
+ # Mapper for LogProfileCollection class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'LogProfileCollection',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'LogProfileCollection',
31
+ model_properties: {
32
+ value: {
33
+ required: true,
34
+ serialized_name: 'value',
35
+ type: {
36
+ name: 'Sequence',
37
+ element: {
38
+ required: false,
39
+ serialized_name: 'LogProfileResourceElementType',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'LogProfileResource'
43
+ }
44
+ }
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+ end
51
+ end
52
+ end
53
+ end
@@ -0,0 +1,154 @@
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 log profile resource.
10
+ #
11
+ class LogProfileResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the resource id of the storage account to which you
17
+ # would like to send the Activity Log.
18
+ attr_accessor :storage_account_id
19
+
20
+ # @return [String] The service bus rule ID of the service bus namespace
21
+ # in which you would like to have Event Hubs created for streaming the
22
+ # Activity Log. The rule ID is of the format: '{service bus resource
23
+ # ID}/authorizationrules/{key name}'.
24
+ attr_accessor :service_bus_rule_id
25
+
26
+ # @return [Array<String>] List of regions for which Activity Log events
27
+ # should be stored or streamed. It is a comma separated list of valid ARM
28
+ # locations including the 'global' location.
29
+ attr_accessor :locations
30
+
31
+ # @return [Array<String>] the categories of the logs. These categories
32
+ # are created as is convenient to the user. Some values are: 'Write',
33
+ # 'Delete', and/or 'Action.'
34
+ attr_accessor :categories
35
+
36
+ # @return [RetentionPolicy] the retention policy for the events in the
37
+ # log.
38
+ attr_accessor :retention_policy
39
+
40
+
41
+ #
42
+ # Mapper for LogProfileResource class as Ruby Hash.
43
+ # This will be used for serialization/deserialization.
44
+ #
45
+ def self.mapper()
46
+ {
47
+ required: false,
48
+ serialized_name: 'LogProfileResource',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'LogProfileResource',
52
+ model_properties: {
53
+ id: {
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'id',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ name: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'name',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ type: {
70
+ required: false,
71
+ read_only: true,
72
+ serialized_name: 'type',
73
+ type: {
74
+ name: 'String'
75
+ }
76
+ },
77
+ location: {
78
+ required: true,
79
+ serialized_name: 'location',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ tags: {
85
+ required: false,
86
+ serialized_name: 'tags',
87
+ type: {
88
+ name: 'Dictionary',
89
+ value: {
90
+ required: false,
91
+ serialized_name: 'StringElementType',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ }
96
+ }
97
+ },
98
+ storage_account_id: {
99
+ required: false,
100
+ serialized_name: 'properties.storageAccountId',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ service_bus_rule_id: {
106
+ required: false,
107
+ serialized_name: 'properties.serviceBusRuleId',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ locations: {
113
+ required: true,
114
+ serialized_name: 'properties.locations',
115
+ type: {
116
+ name: 'Sequence',
117
+ element: {
118
+ required: false,
119
+ serialized_name: 'StringElementType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ },
126
+ categories: {
127
+ required: true,
128
+ serialized_name: 'properties.categories',
129
+ type: {
130
+ name: 'Sequence',
131
+ element: {
132
+ required: false,
133
+ serialized_name: 'StringElementType',
134
+ type: {
135
+ name: 'String'
136
+ }
137
+ }
138
+ }
139
+ },
140
+ retention_policy: {
141
+ required: true,
142
+ serialized_name: 'properties.retentionPolicy',
143
+ type: {
144
+ name: 'Composite',
145
+ class_name: 'RetentionPolicy'
146
+ }
147
+ }
148
+ }
149
+ }
150
+ }
151
+ end
152
+ end
153
+ end
154
+ end