Class: Ansible::Ruby::Modules::Rax_scaling_policy
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Rax_scaling_policy
- Defined in:
- lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb
Overview
Manipulate Rackspace Cloud Autoscale Scaling Policy
Instance Method Summary collapse
-
#at ⇒ Object?
The UTC time when this policy will be executed.
-
#change ⇒ Object?
The change, either as a number of servers or as a percentage, to make in the scaling group.
-
#cooldown ⇒ Object?
The period of time, in seconds, that must pass before any scaling can occur after the previous scaling.
-
#cron ⇒ Object?
The time when the policy will be executed, as a cron entry.
-
#desired_capacity ⇒ Object?
The desired server capacity of the scaling the group; that is, how many servers should be in the scaling group.
-
#is_percent ⇒ Boolean?
Whether the value in I(change) is a percent value.
-
#name ⇒ Object
Name to give the policy.
-
#policy_type ⇒ :webhook, :schedule
The type of policy that will be executed for the current release.
-
#scaling_group ⇒ Object
Name of the scaling group that this policy will be added to.
-
#state ⇒ :present, ...
Indicate desired state of the resource.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#at ⇒ Object?
Returns The UTC time when this policy will be executed. The time must be formatted according to C(yyyy-MM-dd’T’HH:mm:ss.SSS) such as C(2013-05-19T08:07:08Z).
12 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 12 attribute :at |
#change ⇒ Object?
Returns The change, either as a number of servers or as a percentage, to make in the scaling group. If this is a percentage, you must set I(is_percent) to C(true) also.
15 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 15 attribute :change |
#cooldown ⇒ Object?
Returns The period of time, in seconds, that must pass before any scaling can occur after the previous scaling. Must be an integer between 0 and 86400 (24 hrs).
21 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 21 attribute :cooldown |
#cron ⇒ Object?
Returns The time when the policy will be executed, as a cron entry. For example, if this is parameter is set to C(1 0 * * *).
18 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 18 attribute :cron |
#desired_capacity ⇒ Object?
Returns The desired server capacity of the scaling the group; that is, how many servers should be in the scaling group.
24 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 24 attribute :desired_capacity |
#is_percent ⇒ Boolean?
Returns Whether the value in I(change) is a percent value.
27 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 27 attribute :is_percent |
#name ⇒ Object
Returns Name to give the policy.
31 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 31 attribute :name |
#policy_type ⇒ :webhook, :schedule
Returns The type of policy that will be executed for the current release.
35 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 35 attribute :policy_type |
#scaling_group ⇒ Object
Returns Name of the scaling group that this policy will be added to.
39 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 39 attribute :scaling_group |
#state ⇒ :present, ...
Returns Indicate desired state of the resource.
43 |
# File 'lib/ansible/ruby/modules/generated/cloud/rackspace/rax_scaling_policy.rb', line 43 attribute :state |