class Ey::Core::Client::TargetAutoScalingPolicy

Public Instance Methods

policy_params() click to toggle source
# File lib/ey-core/models/target_auto_scaling_policy.rb, line 11
def policy_params
  {
    "estimated_warmup" => estimated_warmup,
    "target_value"     => target_value,
    "disable_scale_in" => disable_scale_in,
    "metric_type"      => metric_type,
    "type"             => type
  }
end
policy_requires() click to toggle source
# File lib/ey-core/models/target_auto_scaling_policy.rb, line 21
def policy_requires
  requires :target_value, :metric_type, :estimated_warmup
end