azure_mgmt_monitor 0.17.6 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +11 -8
- data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +24 -19
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/metric_trigger.rb +35 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence.rb +9 -9
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension.rb +80 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/scale_rule_metric_dimension_operation_type.rb +16 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +1 -0
- data/lib/2015-04-01/generated/azure_mgmt_monitor/models/time_window.rb +1 -1
- data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2015-05-01/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
- data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +14 -14
- data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +21 -21
- data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
- data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +16 -11
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/diagnostic_settings_resource.rb +19 -5
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +1 -1
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource.rb +150 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_diagnostic_settings_resource_collection.rb +57 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_log_settings.rb +59 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/subscription_proxy_only_resource.rb +82 -0
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +10 -5
- data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/subscription_diagnostic_settings_operations.rb +405 -0
- data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +1 -1
- data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/metric_namespaces.rb +1 -1
- data/lib/2017-12-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +2 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +3 -2
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +3 -4
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +1 -1
- data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +4 -0
- data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +25 -17
- data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +10 -10
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_metric_criteria.rb +175 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_failing_periods.rb +61 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_operator.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_sensitivity.rb +17 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +3 -3
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +2 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_multiple_resource_multiple_metric_criteria.rb +90 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +27 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +27 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +56 -31
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +2 -1
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/multi_metric_criteria.rb +142 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/operator.rb +20 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb +98 -0
- data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -5
- data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +8 -5
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +1 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +2 -2
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +1 -1
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/criteria.rb +66 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/dimension.rb +79 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +4 -3
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_to_metric_action.rb +71 -0
- data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +3 -2
- data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +1 -1
- data/lib/2018-06-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-06-17-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb +1 -1
- data/lib/2018-09-01/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +1 -1
- data/lib/2018-11-27-preview/generated/azure_mgmt_monitor/vminsights.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_monitor.rb +18 -9
- data/lib/2019-03-01/generated/azure_mgmt_monitor/action_groups.rb +1 -1
- data/lib/2019-03-01/generated/azure_mgmt_monitor/baselines.rb +186 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_metadata.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/baseline_sensitivity.rb +17 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_baselines_response.rb +55 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/metric_single_dimension.rb +57 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_baseline.rb +85 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/single_metric_baseline.rb +129 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/models/time_series_baseline.rb +127 -0
- data/lib/2019-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +5 -1
- data/lib/2019-06-01/generated/azure_mgmt_monitor.rb +45 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/action_groups.rb +707 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +326 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/arm_role_receiver.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +113 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +91 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/email_receiver.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +80 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/resource.rb +110 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +115 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-06-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor.rb +49 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope.rb +123 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/azure_monitor_private_link_scope_list_result.rb +102 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_additional_info.rb +59 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/error_response_common.rb +93 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/operation_status.rb +102 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_connection_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_endpoint_property.rb +46 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource.rb +95 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_resource_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_scopes_resource.rb +101 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/private_link_service_connection_state_property.rb +71 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/proxy_resource.rb +71 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource.rb +85 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/scoped_resource_list_result.rb +100 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/models/tags_resource.rb +55 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +148 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_endpoint_connections.rb +641 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_resources.rb +346 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scope_operation_status.rb +122 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scoped_resources.rb +638 -0
- data/lib/2019-10-17-preview/generated/azure_mgmt_monitor/private_link_scopes.rb +889 -0
- data/lib/azure_mgmt_monitor.rb +13 -11
- data/lib/profiles/latest/modules/monitor_profile_module.rb +322 -132
- data/lib/profiles/v2019_03_01_hybrid/modules/monitor_profile_module.rb +65 -35
- data/lib/version.rb +1 -1
- metadata +77 -3
data/lib/2017-10-01-preview/generated/azure_mgmt_monitor/application_insights_management_client.rb
CHANGED
@@ -139,7 +139,7 @@ module Azure::Monitor::Mgmt::V2017_10_01_preview
|
|
139
139
|
#
|
140
140
|
def add_telemetry
|
141
141
|
sdk_information = 'azure_mgmt_monitor'
|
142
|
-
sdk_information = "#{sdk_information}/0.
|
142
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
143
143
|
add_user_agent_information(sdk_information)
|
144
144
|
end
|
145
145
|
end
|
@@ -23,7 +23,7 @@ module Azure::Monitor::Mgmt::V2017_11_01_preview
|
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
25
|
# @return [String] The timespan for which the data was retrieved. Its
|
26
|
-
# value consists of two
|
26
|
+
# value consists of two datetimes concatenated, separated by '/'. This
|
27
27
|
# may be adjusted in the future and returned back from what was
|
28
28
|
# originally requested.
|
29
29
|
attr_accessor :timespan
|
@@ -121,7 +121,7 @@ module Azure::Monitor::Mgmt::V2017_11_01_preview
|
|
121
121
|
#
|
122
122
|
def add_telemetry
|
123
123
|
sdk_information = 'azure_mgmt_monitor'
|
124
|
-
sdk_information = "#{sdk_information}/0.
|
124
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
125
125
|
add_user_agent_information(sdk_information)
|
126
126
|
end
|
127
127
|
end
|
@@ -121,7 +121,7 @@ module Azure::Monitor::Mgmt::V2017_12_01_preview
|
|
121
121
|
#
|
122
122
|
def add_telemetry
|
123
123
|
sdk_information = 'azure_mgmt_monitor'
|
124
|
-
sdk_information = "#{sdk_information}/0.
|
124
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
125
125
|
add_user_agent_information(sdk_information)
|
126
126
|
end
|
127
127
|
end
|
@@ -24,7 +24,8 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
24
24
|
|
25
25
|
# @return [Unit] the unit of the metric. Possible values include:
|
26
26
|
# 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond',
|
27
|
-
# 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified'
|
27
|
+
# 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores',
|
28
|
+
# 'MilliCores', 'NanoCores', 'BitsPerSecond'
|
28
29
|
attr_accessor :unit
|
29
30
|
|
30
31
|
# @return [Array<TimeSeriesElement>] the time series returned when a data
|
@@ -19,7 +19,7 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
19
19
|
# the metric.
|
20
20
|
attr_accessor :resource_id
|
21
21
|
|
22
|
-
# @return [String] the namespace the metric
|
22
|
+
# @return [String] the namespace the metric belongs to.
|
23
23
|
attr_accessor :namespace
|
24
24
|
|
25
25
|
# @return [LocalizableString] the name and the display name of the
|
@@ -28,7 +28,8 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
28
28
|
|
29
29
|
# @return [Unit] the unit of the metric. Possible values include:
|
30
30
|
# 'Count', 'Bytes', 'Seconds', 'CountPerSecond', 'BytesPerSecond',
|
31
|
-
# 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified'
|
31
|
+
# 'Percent', 'MilliSeconds', 'ByteSeconds', 'Unspecified', 'Cores',
|
32
|
+
# 'MilliCores', 'NanoCores', 'BitsPerSecond'
|
32
33
|
attr_accessor :unit
|
33
34
|
|
34
35
|
# @return [AggregationType] the primary aggregation type value defining
|
@@ -28,9 +28,8 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
28
28
|
# @return [Float] the sum of all of the values in the time range.
|
29
29
|
attr_accessor :total
|
30
30
|
|
31
|
-
# @return [
|
32
|
-
#
|
33
|
-
# value.
|
31
|
+
# @return [Float] the number of samples in the time range. Can be used to
|
32
|
+
# determine the number of values that contributed to the average value.
|
34
33
|
attr_accessor :count
|
35
34
|
|
36
35
|
|
@@ -92,7 +91,7 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
92
91
|
required: false,
|
93
92
|
serialized_name: 'count',
|
94
93
|
type: {
|
95
|
-
name: '
|
94
|
+
name: 'Double'
|
96
95
|
}
|
97
96
|
}
|
98
97
|
}
|
@@ -17,7 +17,7 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
17
17
|
attr_accessor :cost
|
18
18
|
|
19
19
|
# @return [String] The timespan for which the data was retrieved. Its
|
20
|
-
# value consists of two
|
20
|
+
# value consists of two datetimes concatenated, separated by '/'. This
|
21
21
|
# may be adjusted in the future and returned back from what was
|
22
22
|
# originally requested.
|
23
23
|
attr_accessor :timespan
|
@@ -18,6 +18,10 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
18
18
|
MilliSeconds = "MilliSeconds"
|
19
19
|
ByteSeconds = "ByteSeconds"
|
20
20
|
Unspecified = "Unspecified"
|
21
|
+
Cores = "Cores"
|
22
|
+
MilliCores = "MilliCores"
|
23
|
+
NanoCores = "NanoCores"
|
24
|
+
BitsPerSecond = "BitsPerSecond"
|
21
25
|
end
|
22
26
|
end
|
23
27
|
end
|
@@ -125,7 +125,7 @@ module Azure::Monitor::Mgmt::V2018_01_01
|
|
125
125
|
#
|
126
126
|
def add_telemetry
|
127
127
|
sdk_information = 'azure_mgmt_monitor'
|
128
|
-
sdk_information = "#{sdk_information}/0.
|
128
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
129
129
|
add_user_agent_information(sdk_information)
|
130
130
|
end
|
131
131
|
end
|
@@ -20,38 +20,46 @@ require '2018-03-01/generated/azure_mgmt_monitor/module_definition'
|
|
20
20
|
require 'ms_rest_azure'
|
21
21
|
|
22
22
|
module Azure::Monitor::Mgmt::V2018_03_01
|
23
|
+
autoload :ActionGroups, '2018-03-01/generated/azure_mgmt_monitor/action_groups.rb'
|
23
24
|
autoload :MetricAlerts, '2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb'
|
24
25
|
autoload :MetricAlertsStatus, '2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb'
|
25
|
-
autoload :ActionGroups, '2018-03-01/generated/azure_mgmt_monitor/action_groups.rb'
|
26
26
|
autoload :MonitorManagementClient, '2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb'
|
27
27
|
|
28
28
|
module Models
|
29
|
+
autoload :MetricAlertAction, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb'
|
30
|
+
autoload :MetricAlertCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb'
|
29
31
|
autoload :EmailReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb'
|
32
|
+
autoload :ActionGroupPatchBody, '2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb'
|
33
|
+
autoload :WebhookReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb'
|
30
34
|
autoload :Resource, '2018-03-01/generated/azure_mgmt_monitor/models/resource.rb'
|
35
|
+
autoload :AzureAppPushReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb'
|
31
36
|
autoload :SmsReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb'
|
32
|
-
autoload :
|
33
|
-
autoload :
|
37
|
+
autoload :VoiceReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb'
|
38
|
+
autoload :AzureFunctionReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb'
|
34
39
|
autoload :MetricAlertResourcePatch, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb'
|
35
|
-
autoload :
|
40
|
+
autoload :ActionGroupList, '2018-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb'
|
41
|
+
autoload :MetricAlertResourceCollection, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb'
|
42
|
+
autoload :ErrorResponse, '2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb'
|
36
43
|
autoload :MetricAlertStatusProperties, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb'
|
37
|
-
autoload :AzureAppPushReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb'
|
38
|
-
autoload :MetricAlertStatusCollection, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb'
|
39
44
|
autoload :AutomationRunbookReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb'
|
40
|
-
autoload :MetricCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb'
|
41
|
-
autoload :VoiceReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb'
|
42
|
-
autoload :ErrorResponse, '2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb'
|
43
|
-
autoload :LogicAppReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb'
|
44
|
-
autoload :MetricAlertAction, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb'
|
45
|
-
autoload :MetricAlertResourceCollection, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb'
|
46
|
-
autoload :ActionGroupPatchBody, '2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb'
|
47
|
-
autoload :MetricDimension, '2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb'
|
48
|
-
autoload :AzureFunctionReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb'
|
49
45
|
autoload :MetricAlertStatus, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status.rb'
|
46
|
+
autoload :MetricDimension, '2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb'
|
50
47
|
autoload :EnableRequest, '2018-03-01/generated/azure_mgmt_monitor/models/enable_request.rb'
|
51
|
-
autoload :
|
48
|
+
autoload :MetricAlertStatusCollection, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb'
|
49
|
+
autoload :LogicAppReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb'
|
50
|
+
autoload :DynamicThresholdFailingPeriods, '2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_failing_periods.rb'
|
51
|
+
autoload :ItsmReceiver, '2018-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb'
|
52
|
+
autoload :MultiMetricCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/multi_metric_criteria.rb'
|
53
|
+
autoload :ActionGroupResource, '2018-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb'
|
52
54
|
autoload :MetricAlertResource, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb'
|
55
|
+
autoload :MetricCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb'
|
53
56
|
autoload :MetricAlertSingleResourceMultipleMetricCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_single_resource_multiple_metric_criteria.rb'
|
54
|
-
autoload :
|
57
|
+
autoload :WebtestLocationAvailabilityCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb'
|
58
|
+
autoload :MetricAlertMultipleResourceMultipleMetricCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_multiple_resource_multiple_metric_criteria.rb'
|
59
|
+
autoload :DynamicMetricCriteria, '2018-03-01/generated/azure_mgmt_monitor/models/dynamic_metric_criteria.rb'
|
55
60
|
autoload :ReceiverStatus, '2018-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb'
|
61
|
+
autoload :Operator, '2018-03-01/generated/azure_mgmt_monitor/models/operator.rb'
|
62
|
+
autoload :DynamicThresholdOperator, '2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_operator.rb'
|
63
|
+
autoload :DynamicThresholdSensitivity, '2018-03-01/generated/azure_mgmt_monitor/models/dynamic_threshold_sensitivity.rb'
|
56
64
|
end
|
57
65
|
end
|
@@ -108,7 +108,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
108
108
|
end
|
109
109
|
|
110
110
|
#
|
111
|
-
# Retrieve alert rule
|
111
|
+
# Retrieve alert rule definitions in a resource group.
|
112
112
|
#
|
113
113
|
# @param resource_group_name [String] The name of the resource group.
|
114
114
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -122,7 +122,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
122
122
|
end
|
123
123
|
|
124
124
|
#
|
125
|
-
# Retrieve alert rule
|
125
|
+
# Retrieve alert rule definitions in a resource group.
|
126
126
|
#
|
127
127
|
# @param resource_group_name [String] The name of the resource group.
|
128
128
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
@@ -135,7 +135,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
135
135
|
end
|
136
136
|
|
137
137
|
#
|
138
|
-
# Retrieve alert rule
|
138
|
+
# Retrieve alert rule definitions in a resource group.
|
139
139
|
#
|
140
140
|
# @param resource_group_name [String] The name of the resource group.
|
141
141
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
@@ -198,7 +198,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
198
198
|
end
|
199
199
|
|
200
200
|
#
|
201
|
-
# Retrieve an alert rule
|
201
|
+
# Retrieve an alert rule definition.
|
202
202
|
#
|
203
203
|
# @param resource_group_name [String] The name of the resource group.
|
204
204
|
# @param rule_name [String] The name of the rule.
|
@@ -213,7 +213,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
213
213
|
end
|
214
214
|
|
215
215
|
#
|
216
|
-
# Retrieve an alert rule
|
216
|
+
# Retrieve an alert rule definition.
|
217
217
|
#
|
218
218
|
# @param resource_group_name [String] The name of the resource group.
|
219
219
|
# @param rule_name [String] The name of the rule.
|
@@ -227,7 +227,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
227
227
|
end
|
228
228
|
|
229
229
|
#
|
230
|
-
# Retrieve an alert rule
|
230
|
+
# Retrieve an alert rule definition.
|
231
231
|
#
|
232
232
|
# @param resource_group_name [String] The name of the resource group.
|
233
233
|
# @param rule_name [String] The name of the rule.
|
@@ -508,7 +508,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
508
508
|
end
|
509
509
|
|
510
510
|
#
|
511
|
-
# Delete an alert rule
|
511
|
+
# Delete an alert rule definition.
|
512
512
|
#
|
513
513
|
# @param resource_group_name [String] The name of the resource group.
|
514
514
|
# @param rule_name [String] The name of the rule.
|
@@ -522,7 +522,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
522
522
|
end
|
523
523
|
|
524
524
|
#
|
525
|
-
# Delete an alert rule
|
525
|
+
# Delete an alert rule definition.
|
526
526
|
#
|
527
527
|
# @param resource_group_name [String] The name of the resource group.
|
528
528
|
# @param rule_name [String] The name of the rule.
|
@@ -536,7 +536,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
536
536
|
end
|
537
537
|
|
538
538
|
#
|
539
|
-
# Delete an alert rule
|
539
|
+
# Delete an alert rule definition.
|
540
540
|
#
|
541
541
|
# @param resource_group_name [String] The name of the resource group.
|
542
542
|
# @param rule_name [String] The name of the rule.
|
@@ -575,7 +575,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
575
575
|
http_response = result.response
|
576
576
|
status_code = http_response.status
|
577
577
|
response_content = http_response.body
|
578
|
-
unless status_code ==
|
578
|
+
unless status_code == 200 || status_code == 204
|
579
579
|
error_model = JSON.load(response_content)
|
580
580
|
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
581
581
|
end
|
@@ -0,0 +1,175 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::Monitor::Mgmt::V2018_03_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Criterion for dynamic threshold.
|
10
|
+
#
|
11
|
+
class DynamicMetricCriteria < MultiMetricCriteria
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@criterionType = "DynamicThresholdCriterion"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :criterionType
|
21
|
+
|
22
|
+
# @return [DynamicThresholdOperator] The operator used to compare the
|
23
|
+
# metric value against the threshold. Possible values include:
|
24
|
+
# 'GreaterThan', 'LessThan', 'GreaterOrLessThan'
|
25
|
+
attr_accessor :operator
|
26
|
+
|
27
|
+
# @return [DynamicThresholdSensitivity] The extent of deviation required
|
28
|
+
# to trigger an alert. This will affect how tight the threshold is to the
|
29
|
+
# metric series pattern. Possible values include: 'Low', 'Medium', 'High'
|
30
|
+
attr_accessor :alert_sensitivity
|
31
|
+
|
32
|
+
# @return [DynamicThresholdFailingPeriods] The minimum number of
|
33
|
+
# violations required within the selected lookback time window required
|
34
|
+
# to raise an alert.
|
35
|
+
attr_accessor :failing_periods
|
36
|
+
|
37
|
+
# @return [DateTime] Use this option to set the date from which to start
|
38
|
+
# learning the metric historical data and calculate the dynamic
|
39
|
+
# thresholds (in ISO8601 format)
|
40
|
+
attr_accessor :ignore_data_before
|
41
|
+
|
42
|
+
|
43
|
+
#
|
44
|
+
# Mapper for DynamicMetricCriteria class as Ruby Hash.
|
45
|
+
# This will be used for serialization/deserialization.
|
46
|
+
#
|
47
|
+
def self.mapper()
|
48
|
+
{
|
49
|
+
client_side_validation: true,
|
50
|
+
required: false,
|
51
|
+
serialized_name: 'DynamicThresholdCriterion',
|
52
|
+
type: {
|
53
|
+
name: 'Composite',
|
54
|
+
class_name: 'DynamicMetricCriteria',
|
55
|
+
model_properties: {
|
56
|
+
additional_properties: {
|
57
|
+
client_side_validation: true,
|
58
|
+
required: false,
|
59
|
+
type: {
|
60
|
+
name: 'Dictionary',
|
61
|
+
value: {
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'ObjectElementType',
|
65
|
+
type: {
|
66
|
+
name: 'Object'
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
},
|
71
|
+
name: {
|
72
|
+
client_side_validation: true,
|
73
|
+
required: true,
|
74
|
+
serialized_name: 'name',
|
75
|
+
type: {
|
76
|
+
name: 'String'
|
77
|
+
}
|
78
|
+
},
|
79
|
+
metric_name: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: true,
|
82
|
+
serialized_name: 'metricName',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
metric_namespace: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: false,
|
90
|
+
serialized_name: 'metricNamespace',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
time_aggregation: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: true,
|
98
|
+
serialized_name: 'timeAggregation',
|
99
|
+
type: {
|
100
|
+
name: 'Object'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
dimensions: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: false,
|
106
|
+
serialized_name: 'dimensions',
|
107
|
+
type: {
|
108
|
+
name: 'Sequence',
|
109
|
+
element: {
|
110
|
+
client_side_validation: true,
|
111
|
+
required: false,
|
112
|
+
serialized_name: 'MetricDimensionElementType',
|
113
|
+
type: {
|
114
|
+
name: 'Composite',
|
115
|
+
class_name: 'MetricDimension'
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
},
|
120
|
+
skip_metric_validation: {
|
121
|
+
client_side_validation: true,
|
122
|
+
required: false,
|
123
|
+
serialized_name: 'skipMetricValidation',
|
124
|
+
type: {
|
125
|
+
name: 'Boolean'
|
126
|
+
}
|
127
|
+
},
|
128
|
+
criterionType: {
|
129
|
+
client_side_validation: true,
|
130
|
+
required: true,
|
131
|
+
serialized_name: 'criterionType',
|
132
|
+
type: {
|
133
|
+
name: 'String'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
operator: {
|
137
|
+
client_side_validation: true,
|
138
|
+
required: true,
|
139
|
+
serialized_name: 'operator',
|
140
|
+
type: {
|
141
|
+
name: 'String'
|
142
|
+
}
|
143
|
+
},
|
144
|
+
alert_sensitivity: {
|
145
|
+
client_side_validation: true,
|
146
|
+
required: true,
|
147
|
+
serialized_name: 'alertSensitivity',
|
148
|
+
type: {
|
149
|
+
name: 'String'
|
150
|
+
}
|
151
|
+
},
|
152
|
+
failing_periods: {
|
153
|
+
client_side_validation: true,
|
154
|
+
required: true,
|
155
|
+
serialized_name: 'failingPeriods',
|
156
|
+
type: {
|
157
|
+
name: 'Composite',
|
158
|
+
class_name: 'DynamicThresholdFailingPeriods'
|
159
|
+
}
|
160
|
+
},
|
161
|
+
ignore_data_before: {
|
162
|
+
client_side_validation: true,
|
163
|
+
required: false,
|
164
|
+
serialized_name: 'ignoreDataBefore',
|
165
|
+
type: {
|
166
|
+
name: 'DateTime'
|
167
|
+
}
|
168
|
+
}
|
169
|
+
}
|
170
|
+
}
|
171
|
+
}
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|