Sha256: 71439c700a6857a8b0d0fc8ed7269cd91c64d4bd1b3347841f8e3bad6c5e2030

Contents?: true

Size: 796 Bytes

Versions: 1

Compression:

Stored size: 796 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale vm group.
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createAutoScalePolicy.html]
        def create_auto_scale_policy(action, duration, conditionids, options={})
          options.merge!(
            'command' => 'createAutoScalePolicy', 
            'action' => action, 
            'duration' => duration, 
            'conditionids' => conditionids  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/create_auto_scale_policy.rb