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,69 @@
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 number of instances that can be used during this profile.
10
+ #
11
+ class ScaleCapacity
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [String] the minimum number of instances for the resource.
17
+ attr_accessor :minimum
18
+
19
+ # @return [String] the maximum number of instances for the resource. The
20
+ # actual maximum number of instances is limited by the cores that are
21
+ # available in the subscription.
22
+ attr_accessor :maximum
23
+
24
+ # @return [String] the number of instances that will be set if metrics
25
+ # are not available for evaluation. The default is only used if the
26
+ # current instance count is lower than the default.
27
+ attr_accessor :default
28
+
29
+
30
+ #
31
+ # Mapper for ScaleCapacity class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ required: false,
37
+ serialized_name: 'ScaleCapacity',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'ScaleCapacity',
41
+ model_properties: {
42
+ minimum: {
43
+ required: true,
44
+ serialized_name: 'minimum',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ maximum: {
50
+ required: true,
51
+ serialized_name: 'maximum',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ default: {
57
+ required: true,
58
+ serialized_name: 'default',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,17 @@
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 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.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 that provide the triggers and parameters for the scaling action.
10
+ #
11
+ class ScaleRule
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [MetricTrigger] the trigger that results in a scaling action.
17
+ attr_accessor :metric_trigger
18
+
19
+ # @return [ScaleAction] the parameters for the scaling action.
20
+ attr_accessor :scale_action
21
+
22
+
23
+ #
24
+ # Mapper for ScaleRule class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'ScaleRule',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'ScaleRule',
34
+ model_properties: {
35
+ metric_trigger: {
36
+ required: true,
37
+ serialized_name: 'metricTrigger',
38
+ type: {
39
+ name: 'Composite',
40
+ class_name: 'MetricTrigger'
41
+ }
42
+ },
43
+ scale_action: {
44
+ required: true,
45
+ serialized_name: 'scaleAction',
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,17 @@
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 ScaleType
10
+ #
11
+ module ScaleType
12
+ ChangeCount = "ChangeCount"
13
+ PercentChangeCount = "PercentChangeCount"
14
+ ExactCount = "ExactCount"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,163 @@
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
+ # Description of a service diagnostic setting
10
+ #
11
+ class ServiceDiagnosticSettingsResource < 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 Diagnostic Logs.
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
22
+ # Diagnostic Logs. 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 [String] The resource Id for the event hub authorization rule.
27
+ attr_accessor :event_hub_authorization_rule_id
28
+
29
+ # @return [Array<MetricSettings>] the list of metric settings.
30
+ attr_accessor :metrics
31
+
32
+ # @return [Array<LogSettings>] the list of logs settings.
33
+ attr_accessor :logs
34
+
35
+ # @return [String] The workspace ID (resource ID of a Log Analytics
36
+ # workspace) for a Log Analytics workspace to which you would like to
37
+ # send Diagnostic Logs. Example:
38
+ # /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
39
+ attr_accessor :workspace_id
40
+
41
+
42
+ #
43
+ # Mapper for ServiceDiagnosticSettingsResource class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ required: false,
49
+ serialized_name: 'ServiceDiagnosticSettingsResource',
50
+ type: {
51
+ name: 'Composite',
52
+ class_name: 'ServiceDiagnosticSettingsResource',
53
+ model_properties: {
54
+ id: {
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ name: {
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'name',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ type: {
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'type',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ location: {
79
+ required: true,
80
+ serialized_name: 'location',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ tags: {
86
+ required: false,
87
+ serialized_name: 'tags',
88
+ type: {
89
+ name: 'Dictionary',
90
+ value: {
91
+ required: false,
92
+ serialized_name: 'StringElementType',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ }
97
+ }
98
+ },
99
+ storage_account_id: {
100
+ required: false,
101
+ serialized_name: 'properties.storageAccountId',
102
+ type: {
103
+ name: 'String'
104
+ }
105
+ },
106
+ service_bus_rule_id: {
107
+ required: false,
108
+ serialized_name: 'properties.serviceBusRuleId',
109
+ type: {
110
+ name: 'String'
111
+ }
112
+ },
113
+ event_hub_authorization_rule_id: {
114
+ required: false,
115
+ serialized_name: 'properties.eventHubAuthorizationRuleId',
116
+ type: {
117
+ name: 'String'
118
+ }
119
+ },
120
+ metrics: {
121
+ required: false,
122
+ serialized_name: 'properties.metrics',
123
+ type: {
124
+ name: 'Sequence',
125
+ element: {
126
+ required: false,
127
+ serialized_name: 'MetricSettingsElementType',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'MetricSettings'
131
+ }
132
+ }
133
+ }
134
+ },
135
+ logs: {
136
+ required: false,
137
+ serialized_name: 'properties.logs',
138
+ type: {
139
+ name: 'Sequence',
140
+ element: {
141
+ required: false,
142
+ serialized_name: 'LogSettingsElementType',
143
+ type: {
144
+ name: 'Composite',
145
+ class_name: 'LogSettings'
146
+ }
147
+ }
148
+ }
149
+ },
150
+ workspace_id: {
151
+ required: false,
152
+ serialized_name: 'properties.workspaceId',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
160
+ end
161
+ end
162
+ end
163
+ end
@@ -0,0 +1,135 @@
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
+ # Service diagnostic setting resource for patch operations
10
+ #
11
+ class ServiceDiagnosticSettingsResourcePatch
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Hash{String => String}] Resource tags
17
+ attr_accessor :tags
18
+
19
+ # @return [String] The resource ID of the storage account to which you
20
+ # would like to send Diagnostic Logs.
21
+ attr_accessor :storage_account_id
22
+
23
+ # @return [String] The service bus rule ID of the service bus namespace
24
+ # in which you would like to have Event Hubs created for streaming
25
+ # Diagnostic Logs. The rule ID is of the format: '{service bus resource
26
+ # ID}/authorizationrules/{key name}'.
27
+ attr_accessor :service_bus_rule_id
28
+
29
+ # @return [String] The resource Id for the event hub authorization rule.
30
+ attr_accessor :event_hub_authorization_rule_id
31
+
32
+ # @return [Array<MetricSettings>] the list of metric settings.
33
+ attr_accessor :metrics
34
+
35
+ # @return [Array<LogSettings>] the list of logs settings.
36
+ attr_accessor :logs
37
+
38
+ # @return [String] The workspace ID (resource ID of a Log Analytics
39
+ # workspace) for a Log Analytics workspace to which you would like to
40
+ # send Diagnostic Logs. Example:
41
+ # /subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2
42
+ attr_accessor :workspace_id
43
+
44
+
45
+ #
46
+ # Mapper for ServiceDiagnosticSettingsResourcePatch class as Ruby Hash.
47
+ # This will be used for serialization/deserialization.
48
+ #
49
+ def self.mapper()
50
+ {
51
+ required: false,
52
+ serialized_name: 'ServiceDiagnosticSettingsResourcePatch',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'ServiceDiagnosticSettingsResourcePatch',
56
+ model_properties: {
57
+ tags: {
58
+ required: false,
59
+ serialized_name: 'tags',
60
+ type: {
61
+ name: 'Dictionary',
62
+ value: {
63
+ required: false,
64
+ serialized_name: 'StringElementType',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ },
71
+ storage_account_id: {
72
+ required: false,
73
+ serialized_name: 'properties.storageAccountId',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ service_bus_rule_id: {
79
+ required: false,
80
+ serialized_name: 'properties.serviceBusRuleId',
81
+ type: {
82
+ name: 'String'
83
+ }
84
+ },
85
+ event_hub_authorization_rule_id: {
86
+ required: false,
87
+ serialized_name: 'properties.eventHubAuthorizationRuleId',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ metrics: {
93
+ required: false,
94
+ serialized_name: 'properties.metrics',
95
+ type: {
96
+ name: 'Sequence',
97
+ element: {
98
+ required: false,
99
+ serialized_name: 'MetricSettingsElementType',
100
+ type: {
101
+ name: 'Composite',
102
+ class_name: 'MetricSettings'
103
+ }
104
+ }
105
+ }
106
+ },
107
+ logs: {
108
+ required: false,
109
+ serialized_name: 'properties.logs',
110
+ type: {
111
+ name: 'Sequence',
112
+ element: {
113
+ required: false,
114
+ serialized_name: 'LogSettingsElementType',
115
+ type: {
116
+ name: 'Composite',
117
+ class_name: 'LogSettings'
118
+ }
119
+ }
120
+ }
121
+ },
122
+ workspace_id: {
123
+ required: false,
124
+ serialized_name: 'properties.workspaceId',
125
+ type: {
126
+ name: 'String'
127
+ }
128
+ }
129
+ }
130
+ }
131
+ }
132
+ end
133
+ end
134
+ end
135
+ end