azure_mgmt_monitor 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/azure_mgmt_monitor.rb +5 -0
- data/lib/generated/azure_mgmt_monitor.rb +96 -0
- data/lib/generated/azure_mgmt_monitor/action_groups.rb +579 -0
- data/lib/generated/azure_mgmt_monitor/activity_log_alerts.rb +593 -0
- data/lib/generated/azure_mgmt_monitor/alert_rule_incidents.rb +211 -0
- data/lib/generated/azure_mgmt_monitor/alert_rules.rb +510 -0
- data/lib/generated/azure_mgmt_monitor/autoscale_settings.rb +618 -0
- data/lib/generated/azure_mgmt_monitor/log_profiles.rb +477 -0
- data/lib/generated/azure_mgmt_monitor/models/action_group_list.rb +63 -0
- data/lib/generated/azure_mgmt_monitor/models/action_group_resource.rb +164 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_group.rb +65 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_action_list.rb +54 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_all_of_condition.rb +55 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_leaf_condition.rb +61 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_list.rb +64 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_patch_body.rb +65 -0
- data/lib/generated/azure_mgmt_monitor/models/activity_log_alert_resource.rb +147 -0
- data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource.rb +159 -0
- data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_collection.rb +54 -0
- data/lib/generated/azure_mgmt_monitor/models/alert_rule_resource_patch.rb +131 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_notification.rb +78 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_profile.rb +101 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource.rb +155 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_collection.rb +95 -0
- data/lib/generated/azure_mgmt_monitor/models/autoscale_setting_resource_patch.rb +127 -0
- data/lib/generated/azure_mgmt_monitor/models/comparison_operation_type.rb +20 -0
- data/lib/generated/azure_mgmt_monitor/models/condition_operator.rb +18 -0
- data/lib/generated/azure_mgmt_monitor/models/email_notification.rb +75 -0
- data/lib/generated/azure_mgmt_monitor/models/email_receiver.rb +69 -0
- data/lib/generated/azure_mgmt_monitor/models/enable_request.rb +45 -0
- data/lib/generated/azure_mgmt_monitor/models/error_response.rb +55 -0
- data/lib/generated/azure_mgmt_monitor/models/incident.rb +93 -0
- data/lib/generated/azure_mgmt_monitor/models/incident_list_result.rb +53 -0
- data/lib/generated/azure_mgmt_monitor/models/location_threshold_rule_condition.rb +85 -0
- data/lib/generated/azure_mgmt_monitor/models/log_profile_collection.rb +53 -0
- data/lib/generated/azure_mgmt_monitor/models/log_profile_resource.rb +154 -0
- data/lib/generated/azure_mgmt_monitor/models/log_profile_resource_patch.rb +126 -0
- data/lib/generated/azure_mgmt_monitor/models/log_settings.rb +70 -0
- data/lib/generated/azure_mgmt_monitor/models/management_event_aggregation_condition.rb +70 -0
- data/lib/generated/azure_mgmt_monitor/models/management_event_rule_condition.rb +73 -0
- data/lib/generated/azure_mgmt_monitor/models/metric_settings.rb +67 -0
- data/lib/generated/azure_mgmt_monitor/models/metric_statistic_type.rb +18 -0
- data/lib/generated/azure_mgmt_monitor/models/metric_trigger.rb +134 -0
- data/lib/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
- data/lib/generated/azure_mgmt_monitor/models/recurrence.rb +62 -0
- data/lib/generated/azure_mgmt_monitor/models/recurrence_frequency.rb +22 -0
- data/lib/generated/azure_mgmt_monitor/models/recurrent_schedule.rb +139 -0
- data/lib/generated/azure_mgmt_monitor/models/retention_policy.rb +60 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_action.rb +48 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_condition.rb +63 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_data_source.rb +58 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_email_action.rb +80 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_management_event_claims_data_source.rb +45 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_management_event_data_source.rb +150 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_metric_data_source.rb +68 -0
- data/lib/generated/azure_mgmt_monitor/models/rule_webhook_action.rb +80 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_action.rb +86 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_capacity.rb +69 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_direction.rb +17 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_rule.rb +57 -0
- data/lib/generated/azure_mgmt_monitor/models/scale_type.rb +17 -0
- data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource.rb +163 -0
- data/lib/generated/azure_mgmt_monitor/models/service_diagnostic_settings_resource_patch.rb +135 -0
- data/lib/generated/azure_mgmt_monitor/models/sms_receiver.rb +79 -0
- data/lib/generated/azure_mgmt_monitor/models/threshold_rule_condition.rb +108 -0
- data/lib/generated/azure_mgmt_monitor/models/time_aggregation_operator.rb +19 -0
- data/lib/generated/azure_mgmt_monitor/models/time_aggregation_type.rb +19 -0
- data/lib/generated/azure_mgmt_monitor/models/time_window.rb +104 -0
- data/lib/generated/azure_mgmt_monitor/models/webhook_notification.rb +63 -0
- data/lib/generated/azure_mgmt_monitor/models/webhook_receiver.rb +56 -0
- data/lib/generated/azure_mgmt_monitor/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_monitor/monitor_management_client.rb +150 -0
- data/lib/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +330 -0
- data/lib/generated/azure_mgmt_monitor/version.rb +8 -0
- metadata +188 -0
@@ -0,0 +1,80 @@
|
|
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
|
+
# Specifies the action to send email when the rule condition is evaluated.
|
10
|
+
# The discriminator is always RuleEmailAction in this case.
|
11
|
+
#
|
12
|
+
class RuleEmailAction < RuleAction
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
|
18
|
+
def initialize
|
19
|
+
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleEmailAction"
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_accessor :odata.type
|
23
|
+
|
24
|
+
# @return [Boolean] Whether the administrators (service and
|
25
|
+
# co-adiminstrators) of the service should be notified when the alert is
|
26
|
+
# activated.
|
27
|
+
attr_accessor :send_to_service_owners
|
28
|
+
|
29
|
+
# @return [Array<String>] the list of administrator's custom email
|
30
|
+
# addresses notifiy of the activation of the alert.
|
31
|
+
attr_accessor :custom_emails
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for RuleEmailAction class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleEmailAction',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'RuleEmailAction',
|
45
|
+
model_properties: {
|
46
|
+
odata.type: {
|
47
|
+
required: true,
|
48
|
+
serialized_name: 'odata\\.type',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
send_to_service_owners: {
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'sendToServiceOwners',
|
56
|
+
type: {
|
57
|
+
name: 'Boolean'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
custom_emails: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'customEmails',
|
63
|
+
type: {
|
64
|
+
name: 'Sequence',
|
65
|
+
element: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'StringElementType',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,45 @@
|
|
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 claims for a rule management event data source.
|
10
|
+
#
|
11
|
+
class RuleManagementEventClaimsDataSource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [String] the email address.
|
17
|
+
attr_accessor :email_address
|
18
|
+
|
19
|
+
|
20
|
+
#
|
21
|
+
# Mapper for RuleManagementEventClaimsDataSource class as Ruby Hash.
|
22
|
+
# This will be used for serialization/deserialization.
|
23
|
+
#
|
24
|
+
def self.mapper()
|
25
|
+
{
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'RuleManagementEventClaimsDataSource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'RuleManagementEventClaimsDataSource',
|
31
|
+
model_properties: {
|
32
|
+
email_address: {
|
33
|
+
required: false,
|
34
|
+
serialized_name: 'emailAddress',
|
35
|
+
type: {
|
36
|
+
name: 'String'
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,150 @@
|
|
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 management event data source. The discriminator fields is always
|
10
|
+
# RuleManagementEventDataSource in this case.
|
11
|
+
#
|
12
|
+
class RuleManagementEventDataSource < RuleDataSource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
|
18
|
+
def initialize
|
19
|
+
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource"
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_accessor :odata.type
|
23
|
+
|
24
|
+
# @return [String] the event name.
|
25
|
+
attr_accessor :event_name
|
26
|
+
|
27
|
+
# @return [String] the event source.
|
28
|
+
attr_accessor :event_source
|
29
|
+
|
30
|
+
# @return [String] the level.
|
31
|
+
attr_accessor :level
|
32
|
+
|
33
|
+
# @return [String] The name of the operation that should be checked for.
|
34
|
+
# If no name is provided, any operation will match.
|
35
|
+
attr_accessor :operation_name
|
36
|
+
|
37
|
+
# @return [String] the resource group name.
|
38
|
+
attr_accessor :resource_group_name
|
39
|
+
|
40
|
+
# @return [String] the resource provider name.
|
41
|
+
attr_accessor :resource_provider_name
|
42
|
+
|
43
|
+
# @return [String] The status of the operation that should be checked
|
44
|
+
# for. If no status is provided, any status will match.
|
45
|
+
attr_accessor :status
|
46
|
+
|
47
|
+
# @return [String] the substatus.
|
48
|
+
attr_accessor :sub_status
|
49
|
+
|
50
|
+
# @return [RuleManagementEventClaimsDataSource] the claims.
|
51
|
+
attr_accessor :claims
|
52
|
+
|
53
|
+
|
54
|
+
#
|
55
|
+
# Mapper for RuleManagementEventDataSource class as Ruby Hash.
|
56
|
+
# This will be used for serialization/deserialization.
|
57
|
+
#
|
58
|
+
def self.mapper()
|
59
|
+
{
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleManagementEventDataSource',
|
62
|
+
type: {
|
63
|
+
name: 'Composite',
|
64
|
+
class_name: 'RuleManagementEventDataSource',
|
65
|
+
model_properties: {
|
66
|
+
resource_uri: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'resourceUri',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
odata.type: {
|
74
|
+
required: true,
|
75
|
+
serialized_name: 'odata\\.type',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
event_name: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'eventName',
|
83
|
+
type: {
|
84
|
+
name: 'String'
|
85
|
+
}
|
86
|
+
},
|
87
|
+
event_source: {
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'eventSource',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
},
|
94
|
+
level: {
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'level',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
operation_name: {
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'operationName',
|
104
|
+
type: {
|
105
|
+
name: 'String'
|
106
|
+
}
|
107
|
+
},
|
108
|
+
resource_group_name: {
|
109
|
+
required: false,
|
110
|
+
serialized_name: 'resourceGroupName',
|
111
|
+
type: {
|
112
|
+
name: 'String'
|
113
|
+
}
|
114
|
+
},
|
115
|
+
resource_provider_name: {
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'resourceProviderName',
|
118
|
+
type: {
|
119
|
+
name: 'String'
|
120
|
+
}
|
121
|
+
},
|
122
|
+
status: {
|
123
|
+
required: false,
|
124
|
+
serialized_name: 'status',
|
125
|
+
type: {
|
126
|
+
name: 'String'
|
127
|
+
}
|
128
|
+
},
|
129
|
+
sub_status: {
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'subStatus',
|
132
|
+
type: {
|
133
|
+
name: 'String'
|
134
|
+
}
|
135
|
+
},
|
136
|
+
claims: {
|
137
|
+
required: false,
|
138
|
+
serialized_name: 'claims',
|
139
|
+
type: {
|
140
|
+
name: 'Composite',
|
141
|
+
class_name: 'RuleManagementEventClaimsDataSource'
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
end
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
@@ -0,0 +1,68 @@
|
|
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 metric data source. The discriminator value is always
|
10
|
+
# RuleMetricDataSource in this case.
|
11
|
+
#
|
12
|
+
class RuleMetricDataSource < RuleDataSource
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
|
18
|
+
def initialize
|
19
|
+
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource"
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_accessor :odata.type
|
23
|
+
|
24
|
+
# @return [String] the name of the metric that defines what the rule
|
25
|
+
# monitors.
|
26
|
+
attr_accessor :metric_name
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for RuleMetricDataSource class as Ruby Hash.
|
31
|
+
# This will be used for serialization/deserialization.
|
32
|
+
#
|
33
|
+
def self.mapper()
|
34
|
+
{
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleMetricDataSource',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'RuleMetricDataSource',
|
40
|
+
model_properties: {
|
41
|
+
resource_uri: {
|
42
|
+
required: false,
|
43
|
+
serialized_name: 'resourceUri',
|
44
|
+
type: {
|
45
|
+
name: 'String'
|
46
|
+
}
|
47
|
+
},
|
48
|
+
odata.type: {
|
49
|
+
required: true,
|
50
|
+
serialized_name: 'odata\\.type',
|
51
|
+
type: {
|
52
|
+
name: 'String'
|
53
|
+
}
|
54
|
+
},
|
55
|
+
metric_name: {
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'metricName',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
}
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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
|
+
# Specifies the action to post to service when the rule condition is
|
10
|
+
# evaluated. The discriminator is always RuleWebhookAction in this case.
|
11
|
+
#
|
12
|
+
class RuleWebhookAction < RuleAction
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
include MsRest::JSONable
|
17
|
+
|
18
|
+
def initialize
|
19
|
+
@odata.type = "Microsoft.Azure.Management.Insights.Models.RuleWebhookAction"
|
20
|
+
end
|
21
|
+
|
22
|
+
attr_accessor :odata.type
|
23
|
+
|
24
|
+
# @return [String] the service uri to Post the notitication when the
|
25
|
+
# alert activates or resolves.
|
26
|
+
attr_accessor :service_uri
|
27
|
+
|
28
|
+
# @return [Hash{String => String}] the dictionary of custom properties to
|
29
|
+
# include with the post operation. These data are appended to the webhook
|
30
|
+
# payload.
|
31
|
+
attr_accessor :properties
|
32
|
+
|
33
|
+
|
34
|
+
#
|
35
|
+
# Mapper for RuleWebhookAction class as Ruby Hash.
|
36
|
+
# This will be used for serialization/deserialization.
|
37
|
+
#
|
38
|
+
def self.mapper()
|
39
|
+
{
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'Microsoft.Azure.Management.Insights.Models.RuleWebhookAction',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'RuleWebhookAction',
|
45
|
+
model_properties: {
|
46
|
+
odata.type: {
|
47
|
+
required: true,
|
48
|
+
serialized_name: 'odata\\.type',
|
49
|
+
type: {
|
50
|
+
name: 'String'
|
51
|
+
}
|
52
|
+
},
|
53
|
+
service_uri: {
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'serviceUri',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
properties: {
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'properties',
|
63
|
+
type: {
|
64
|
+
name: 'Dictionary',
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'StringElementType',
|
68
|
+
type: {
|
69
|
+
name: 'String'
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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 parameters for the scaling action.
|
10
|
+
#
|
11
|
+
class ScaleAction
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [ScaleDirection] the scale direction. Whether the scaling
|
17
|
+
# action increases or decreases the number of instances. Possible values
|
18
|
+
# include: 'None', 'Increase', 'Decrease'
|
19
|
+
attr_accessor :direction
|
20
|
+
|
21
|
+
# @return [ScaleType] the type of action that should occur when the scale
|
22
|
+
# rule fires. Possible values include: 'ChangeCount',
|
23
|
+
# 'PercentChangeCount', 'ExactCount'
|
24
|
+
attr_accessor :type
|
25
|
+
|
26
|
+
# @return [String] the number of instances that are involved in the
|
27
|
+
# scaling action. This value must be 1 or greater. The default value is
|
28
|
+
# 1. Default value: '1' .
|
29
|
+
attr_accessor :value
|
30
|
+
|
31
|
+
# @return [Duration] the amount of time to wait since the last scaling
|
32
|
+
# action before this action occurs. It must be between 1 week and 1
|
33
|
+
# minute in ISO 8601 format.
|
34
|
+
attr_accessor :cooldown
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for ScaleAction class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'ScaleAction',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'ScaleAction',
|
48
|
+
model_properties: {
|
49
|
+
direction: {
|
50
|
+
required: true,
|
51
|
+
serialized_name: 'direction',
|
52
|
+
type: {
|
53
|
+
name: 'Enum',
|
54
|
+
module: 'ScaleDirection'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
type: {
|
58
|
+
required: true,
|
59
|
+
serialized_name: 'type',
|
60
|
+
type: {
|
61
|
+
name: 'Enum',
|
62
|
+
module: 'ScaleType'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
value: {
|
66
|
+
required: false,
|
67
|
+
serialized_name: 'value',
|
68
|
+
default_value: '1',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
cooldown: {
|
74
|
+
required: true,
|
75
|
+
serialized_name: 'cooldown',
|
76
|
+
type: {
|
77
|
+
name: 'TimeSpan'
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|