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/core/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, #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).
11 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 11 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.
14 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 14 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).
20 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 20 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 * * *).
17 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 17 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.
23 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 23 attribute :desired_capacity |
#is_percent ⇒ Boolean?
Returns Whether the value in I(change) is a percent value.
26 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 26 attribute :is_percent |
#name ⇒ Object
Returns Name to give the policy.
30 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 30 attribute :name |
#policy_type ⇒ :webhook, :schedule
Returns The type of policy that will be executed for the current release.
34 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 34 attribute :policy_type |
#scaling_group ⇒ Object
Returns Name of the scaling group that this policy will be added to.
38 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 38 attribute :scaling_group |
#state ⇒ :present, ...
Returns Indicate desired state of the resource.
42 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/rackspace/rax_scaling_policy.rb', line 42 attribute :state |