Class: Ey::Core::Client::SimpleAutoScalingPolicy
- Inherits:
-
BaseAutoScalingPolicy
- Object
- Cistern::Model
- Model
- BaseAutoScalingPolicy
- Ey::Core::Client::SimpleAutoScalingPolicy
- Defined in:
- lib/ey-core/models/simple_auto_scaling_policy.rb
Instance Method Summary collapse
Methods inherited from BaseAutoScalingPolicy
Methods included from Associations
#assoc_accessor, #assoc_coverage, #assoc_reader, #assoc_writer, #associations, #collection_reader
Methods inherited from Model
#destroy, range_parser, #save, #to_s, #update!, #url
Instance Method Details
#policy_params ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/ey-core/models/simple_auto_scaling_policy.rb', line 11 def policy_params { "cooldown" => cooldown, "action_unit" => action_unit, "action_type" => action_type, "action_value" => action_value, "type" => type } end |
#policy_requires ⇒ Object
21 22 23 |
# File 'lib/ey-core/models/simple_auto_scaling_policy.rb', line 21 def policy_requires requires :action_value, :action_type, :action_unit end |