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
@@ -15,7 +15,8 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
15
15
|
# @return [String] Name of the dimension.
|
16
16
|
attr_accessor :name
|
17
17
|
|
18
|
-
# @return [String] the dimension operator.
|
18
|
+
# @return [String] the dimension operator. Only 'Include' and 'Exclude'
|
19
|
+
# are supported
|
19
20
|
attr_accessor :operator
|
20
21
|
|
21
22
|
# @return [Array<String>] list of dimension values.
|
@@ -0,0 +1,142 @@
|
|
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
|
+
# The types of conditions for a multi resource alert.
|
10
|
+
#
|
11
|
+
class MultiMetricCriteria
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
@@discriminatorMap = Hash.new
|
16
|
+
@@discriminatorMap["StaticThresholdCriterion"] = "MetricCriteria"
|
17
|
+
@@discriminatorMap["DynamicThresholdCriterion"] = "DynamicMetricCriteria"
|
18
|
+
|
19
|
+
def initialize
|
20
|
+
@criterionType = "MultiMetricCriteria"
|
21
|
+
end
|
22
|
+
|
23
|
+
attr_accessor :criterionType
|
24
|
+
|
25
|
+
# @return Unmatched properties from the message are deserialized this
|
26
|
+
# collection
|
27
|
+
attr_accessor :additional_properties
|
28
|
+
|
29
|
+
# @return [String] Name of the criteria.
|
30
|
+
attr_accessor :name
|
31
|
+
|
32
|
+
# @return [String] Name of the metric.
|
33
|
+
attr_accessor :metric_name
|
34
|
+
|
35
|
+
# @return [String] Namespace of the metric.
|
36
|
+
attr_accessor :metric_namespace
|
37
|
+
|
38
|
+
# @return the criteria time aggregation types.
|
39
|
+
attr_accessor :time_aggregation
|
40
|
+
|
41
|
+
# @return [Array<MetricDimension>] List of dimension conditions.
|
42
|
+
attr_accessor :dimensions
|
43
|
+
|
44
|
+
# @return [Boolean] Allows creating an alert rule on a custom metric that
|
45
|
+
# isn't yet emitted, by causing the metric validation to be skipped.
|
46
|
+
attr_accessor :skip_metric_validation
|
47
|
+
|
48
|
+
|
49
|
+
#
|
50
|
+
# Mapper for MultiMetricCriteria class as Ruby Hash.
|
51
|
+
# This will be used for serialization/deserialization.
|
52
|
+
#
|
53
|
+
def self.mapper()
|
54
|
+
{
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'MultiMetricCriteria',
|
58
|
+
type: {
|
59
|
+
name: 'Composite',
|
60
|
+
polymorphic_discriminator: 'criterionType',
|
61
|
+
uber_parent: 'MultiMetricCriteria',
|
62
|
+
class_name: 'MultiMetricCriteria',
|
63
|
+
model_properties: {
|
64
|
+
additional_properties: {
|
65
|
+
client_side_validation: true,
|
66
|
+
required: false,
|
67
|
+
type: {
|
68
|
+
name: 'Dictionary',
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: false,
|
72
|
+
serialized_name: 'ObjectElementType',
|
73
|
+
type: {
|
74
|
+
name: 'Object'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
},
|
79
|
+
name: {
|
80
|
+
client_side_validation: true,
|
81
|
+
required: true,
|
82
|
+
serialized_name: 'name',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
metric_name: {
|
88
|
+
client_side_validation: true,
|
89
|
+
required: true,
|
90
|
+
serialized_name: 'metricName',
|
91
|
+
type: {
|
92
|
+
name: 'String'
|
93
|
+
}
|
94
|
+
},
|
95
|
+
metric_namespace: {
|
96
|
+
client_side_validation: true,
|
97
|
+
required: false,
|
98
|
+
serialized_name: 'metricNamespace',
|
99
|
+
type: {
|
100
|
+
name: 'String'
|
101
|
+
}
|
102
|
+
},
|
103
|
+
time_aggregation: {
|
104
|
+
client_side_validation: true,
|
105
|
+
required: true,
|
106
|
+
serialized_name: 'timeAggregation',
|
107
|
+
type: {
|
108
|
+
name: 'Object'
|
109
|
+
}
|
110
|
+
},
|
111
|
+
dimensions: {
|
112
|
+
client_side_validation: true,
|
113
|
+
required: false,
|
114
|
+
serialized_name: 'dimensions',
|
115
|
+
type: {
|
116
|
+
name: 'Sequence',
|
117
|
+
element: {
|
118
|
+
client_side_validation: true,
|
119
|
+
required: false,
|
120
|
+
serialized_name: 'MetricDimensionElementType',
|
121
|
+
type: {
|
122
|
+
name: 'Composite',
|
123
|
+
class_name: 'MetricDimension'
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
},
|
128
|
+
skip_metric_validation: {
|
129
|
+
client_side_validation: true,
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'skipMetricValidation',
|
132
|
+
type: {
|
133
|
+
name: 'Boolean'
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
@@ -0,0 +1,20 @@
|
|
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
|
+
# Defines values for Operator
|
10
|
+
#
|
11
|
+
module Operator
|
12
|
+
Equals = "Equals"
|
13
|
+
NotEquals = "NotEquals"
|
14
|
+
GreaterThan = "GreaterThan"
|
15
|
+
GreaterThanOrEqual = "GreaterThanOrEqual"
|
16
|
+
LessThan = "LessThan"
|
17
|
+
LessThanOrEqual = "LessThanOrEqual"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webtest_location_availability_criteria.rb
ADDED
@@ -0,0 +1,98 @@
|
|
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
|
+
# Specifies the metric alert rule criteria for a web test resource.
|
10
|
+
#
|
11
|
+
class WebtestLocationAvailabilityCriteria < MetricAlertCriteria
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
|
16
|
+
def initialize
|
17
|
+
@odatatype = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"
|
18
|
+
end
|
19
|
+
|
20
|
+
attr_accessor :odatatype
|
21
|
+
|
22
|
+
# @return [String] The Application Insights web test Id.
|
23
|
+
attr_accessor :web_test_id
|
24
|
+
|
25
|
+
# @return [String] The Application Insights resource Id.
|
26
|
+
attr_accessor :component_id
|
27
|
+
|
28
|
+
# @return [Float] The number of failed locations.
|
29
|
+
attr_accessor :failed_location_count
|
30
|
+
|
31
|
+
|
32
|
+
#
|
33
|
+
# Mapper for WebtestLocationAvailabilityCriteria class as Ruby Hash.
|
34
|
+
# This will be used for serialization/deserialization.
|
35
|
+
#
|
36
|
+
def self.mapper()
|
37
|
+
{
|
38
|
+
client_side_validation: true,
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'WebtestLocationAvailabilityCriteria',
|
44
|
+
model_properties: {
|
45
|
+
additional_properties: {
|
46
|
+
client_side_validation: true,
|
47
|
+
required: false,
|
48
|
+
type: {
|
49
|
+
name: 'Dictionary',
|
50
|
+
value: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
serialized_name: 'ObjectElementType',
|
54
|
+
type: {
|
55
|
+
name: 'Object'
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
},
|
60
|
+
odatatype: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: true,
|
63
|
+
serialized_name: 'odata\\.type',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
web_test_id: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: true,
|
71
|
+
serialized_name: 'webTestId',
|
72
|
+
type: {
|
73
|
+
name: 'String'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
component_id: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: true,
|
79
|
+
serialized_name: 'componentId',
|
80
|
+
type: {
|
81
|
+
name: 'String'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
failed_location_count: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: true,
|
87
|
+
serialized_name: 'failedLocationCount',
|
88
|
+
type: {
|
89
|
+
name: 'Double'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -35,15 +35,15 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
35
35
|
# generated and included in each request. Default is true.
|
36
36
|
attr_accessor :generate_client_request_id
|
37
37
|
|
38
|
+
# @return [ActionGroups] action_groups
|
39
|
+
attr_reader :action_groups
|
40
|
+
|
38
41
|
# @return [MetricAlerts] metric_alerts
|
39
42
|
attr_reader :metric_alerts
|
40
43
|
|
41
44
|
# @return [MetricAlertsStatus] metric_alerts_status
|
42
45
|
attr_reader :metric_alerts_status
|
43
46
|
|
44
|
-
# @return [ActionGroups] action_groups
|
45
|
-
attr_reader :action_groups
|
46
|
-
|
47
47
|
#
|
48
48
|
# Creates initializes a new instance of the MonitorManagementClient class.
|
49
49
|
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
@@ -57,9 +57,9 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
57
57
|
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
58
58
|
@credentials = credentials
|
59
59
|
|
60
|
+
@action_groups = ActionGroups.new(self)
|
60
61
|
@metric_alerts = MetricAlerts.new(self)
|
61
62
|
@metric_alerts_status = MetricAlertsStatus.new(self)
|
62
|
-
@action_groups = ActionGroups.new(self)
|
63
63
|
@api_version = '2018-03-01'
|
64
64
|
@accept_language = 'en-US'
|
65
65
|
@long_running_operation_retry_timeout = 30
|
@@ -132,7 +132,7 @@ module Azure::Monitor::Mgmt::V2018_03_01
|
|
132
132
|
#
|
133
133
|
def add_telemetry
|
134
134
|
sdk_information = 'azure_mgmt_monitor'
|
135
|
-
sdk_information = "#{sdk_information}/0.
|
135
|
+
sdk_information = "#{sdk_information}/0.18.0"
|
136
136
|
add_user_agent_information(sdk_information)
|
137
137
|
end
|
138
138
|
end
|
@@ -24,18 +24,21 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
24
24
|
autoload :MonitorClient, '2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb'
|
25
25
|
|
26
26
|
module Models
|
27
|
-
autoload :LogSearchRuleResourceCollection, '2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb'
|
28
|
-
autoload :Resource, '2018-04-16/generated/azure_mgmt_monitor/models/resource.rb'
|
29
27
|
autoload :LogMetricTrigger, '2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb'
|
30
|
-
autoload :Schedule, '2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb'
|
31
28
|
autoload :TriggerCondition, '2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb'
|
32
|
-
autoload :Action, '2018-04-16/generated/azure_mgmt_monitor/models/action.rb'
|
33
29
|
autoload :Source, '2018-04-16/generated/azure_mgmt_monitor/models/source.rb'
|
34
30
|
autoload :AzNsActionGroup, '2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb'
|
35
|
-
autoload :
|
31
|
+
autoload :Action, '2018-04-16/generated/azure_mgmt_monitor/models/action.rb'
|
32
|
+
autoload :Schedule, '2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb'
|
36
33
|
autoload :ErrorResponse, '2018-04-16/generated/azure_mgmt_monitor/models/error_response.rb'
|
34
|
+
autoload :LogSearchRuleResourceCollection, '2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb'
|
35
|
+
autoload :LogSearchRuleResourcePatch, '2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_patch.rb'
|
36
|
+
autoload :Dimension, '2018-04-16/generated/azure_mgmt_monitor/models/dimension.rb'
|
37
|
+
autoload :Resource, '2018-04-16/generated/azure_mgmt_monitor/models/resource.rb'
|
38
|
+
autoload :Criteria, '2018-04-16/generated/azure_mgmt_monitor/models/criteria.rb'
|
37
39
|
autoload :LogSearchRuleResource, '2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb'
|
38
40
|
autoload :AlertingAction, '2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb'
|
41
|
+
autoload :LogToMetricAction, '2018-04-16/generated/azure_mgmt_monitor/models/log_to_metric_action.rb'
|
39
42
|
autoload :Enabled, '2018-04-16/generated/azure_mgmt_monitor/models/enabled.rb'
|
40
43
|
autoload :ProvisioningState, '2018-04-16/generated/azure_mgmt_monitor/models/provisioning_state.rb'
|
41
44
|
autoload :QueryType, '2018-04-16/generated/azure_mgmt_monitor/models/query_type.rb'
|
@@ -14,6 +14,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
14
14
|
|
15
15
|
@@discriminatorMap = Hash.new
|
16
16
|
@@discriminatorMap["Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction"] = "AlertingAction"
|
17
|
+
@@discriminatorMap["Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.LogToMetricAction"] = "LogToMetricAction"
|
17
18
|
|
18
19
|
def initialize
|
19
20
|
@odatatype = "Action"
|
@@ -6,7 +6,7 @@
|
|
6
6
|
module Azure::Monitor::Mgmt::V2018_04_16
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
#
|
9
|
+
# Specify action need to be taken when rule type is Alert
|
10
10
|
#
|
11
11
|
class AlertingAction < Action
|
12
12
|
|
@@ -66,7 +66,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
66
66
|
},
|
67
67
|
azns_action: {
|
68
68
|
client_side_validation: true,
|
69
|
-
required:
|
69
|
+
required: false,
|
70
70
|
serialized_name: 'aznsAction',
|
71
71
|
type: {
|
72
72
|
name: 'Composite',
|
@@ -19,7 +19,7 @@ module Azure::Monitor::Mgmt::V2018_04_16
|
|
19
19
|
# action group
|
20
20
|
attr_accessor :email_subject
|
21
21
|
|
22
|
-
# @return [String] Custom payload to be sent for all
|
22
|
+
# @return [String] Custom payload to be sent for all webhook URI in Azure
|
23
23
|
# action group
|
24
24
|
attr_accessor :custom_webhook_payload
|
25
25
|
|
@@ -0,0 +1,66 @@
|
|
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_04_16
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Specifies the criteria for converting log to metric.
|
10
|
+
#
|
11
|
+
class Criteria
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the metric
|
16
|
+
attr_accessor :metric_name
|
17
|
+
|
18
|
+
# @return [Array<Dimension>] List of Dimensions for creating metric
|
19
|
+
attr_accessor :dimensions
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for Criteria class as Ruby Hash.
|
24
|
+
# This will be used for serialization/deserialization.
|
25
|
+
#
|
26
|
+
def self.mapper()
|
27
|
+
{
|
28
|
+
client_side_validation: true,
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'Criteria',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'Criteria',
|
34
|
+
model_properties: {
|
35
|
+
metric_name: {
|
36
|
+
client_side_validation: true,
|
37
|
+
required: true,
|
38
|
+
serialized_name: 'metricName',
|
39
|
+
type: {
|
40
|
+
name: 'String'
|
41
|
+
}
|
42
|
+
},
|
43
|
+
dimensions: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'dimensions',
|
47
|
+
type: {
|
48
|
+
name: 'Sequence',
|
49
|
+
element: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'DimensionElementType',
|
53
|
+
type: {
|
54
|
+
name: 'Composite',
|
55
|
+
class_name: 'Dimension'
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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_04_16
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Specifies the criteria for converting log to metric.
|
10
|
+
#
|
11
|
+
class Dimension
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Name of the dimension
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Operator for dimension values. Default value:
|
19
|
+
# 'Include' .
|
20
|
+
attr_accessor :operator
|
21
|
+
|
22
|
+
# @return [Array<String>] List of dimension values
|
23
|
+
attr_accessor :values
|
24
|
+
|
25
|
+
|
26
|
+
#
|
27
|
+
# Mapper for Dimension class as Ruby Hash.
|
28
|
+
# This will be used for serialization/deserialization.
|
29
|
+
#
|
30
|
+
def self.mapper()
|
31
|
+
{
|
32
|
+
client_side_validation: true,
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'Dimension',
|
35
|
+
type: {
|
36
|
+
name: 'Composite',
|
37
|
+
class_name: 'Dimension',
|
38
|
+
model_properties: {
|
39
|
+
name: {
|
40
|
+
client_side_validation: true,
|
41
|
+
required: true,
|
42
|
+
serialized_name: 'name',
|
43
|
+
type: {
|
44
|
+
name: 'String'
|
45
|
+
}
|
46
|
+
},
|
47
|
+
operator: {
|
48
|
+
client_side_validation: true,
|
49
|
+
required: true,
|
50
|
+
is_constant: true,
|
51
|
+
serialized_name: 'operator',
|
52
|
+
default_value: 'Include',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
values: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: true,
|
60
|
+
serialized_name: 'values',
|
61
|
+
type: {
|
62
|
+
name: 'Sequence',
|
63
|
+
element: {
|
64
|
+
client_side_validation: true,
|
65
|
+
required: false,
|
66
|
+
serialized_name: 'StringElementType',
|
67
|
+
type: {
|
68
|
+
name: 'String'
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|