Sha256: fc80b4f492f8d79e35c791e8bc0da7f0ec5d0be38fdfc0b3eee673be80974f84

Contents?: true

Size: 658 Bytes

Versions: 1

Compression:

Stored size: 658 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Generates usage records. This will generate records only if there any records to be generated, i.e if the scheduled usage job was not run or failed
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/generateUsageRecords.html]
        def generate_usage_records(enddate, startdate, options={})
          options.merge!(
            'command' => 'generateUsageRecords', 
            'enddate' => enddate, 
            'startdate' => startdate  
          )
          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/generate_usage_records.rb