Sha256: 9477302c1c8aa57d0b58f033555c62294f66da37d10402ae57c9696a458f9963

Contents?: true

Size: 1.62 KB

Versions: 29

Compression:

Stored size: 1.62 KB

Contents

module Fog
  module AWS
    class Elasticache
      class Real

        require 'fog/aws/parsers/elasticache/event_list'

        # Returns a list of service events
        #
        # === Parameters (optional)
        # * options <~Hash> (optional):
        # *  :start_time <~DateTime> - starting time for event records
        # *  :end_time <~DateTime> - ending time for event records
        # *  :duration <~DateTime> - time span for event records
        # *  :marker <~String> - marker provided in the previous request
        # *  :max_records <~Integer> - the maximum number of records to include
        # *  :source_identifier <~DateTime> - identifier of the event source
        # *  :source_type <~DateTime> - event type, one of:
        #      (cache-cluster | cache-parameter-group | cache-security-group)
        # === Returns
        # * response <~Excon::Response>:
        #   * body <~Hash>
        def describe_events(options = {})
          request(
            'Action'            => 'DescribeEvents',
            'StartTime'         => options[:sart_time],
            'EndTime'           => options[:end_time],
            'Duration'          => options[:duration],
            'Marker'            => options[:marker],
            'MaxRecords'        => options[:max_records],
            'SourceIdentifier'  => options[:source_identifier],
            'SourceType'        => options[:source_type],
            :parser => Fog::Parsers::AWS::Elasticache::EventListParser.new
          )
        end

      end

      class Mock
        def describe_events
          Fog::Mock.not_implemented
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 9 rubygems

Version Path
fog-parser-fix-1.6.1 lib/fog/aws/requests/elasticache/describe_events.rb
fog-test-again-1.6.0 lib/fog/aws/requests/elasticache/describe_events.rb
fog-parser-fix-1.6.0 lib/fog/aws/requests/elasticache/describe_events.rb
fog-1.6.0 lib/fog/aws/requests/elasticache/describe_events.rb
fog-1.5.0 lib/fog/aws/requests/elasticache/describe_events.rb
fog-1.4.0 lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
michiels-fog-1.3.1 lib/fog/aws/requests/elasticache/describe_events.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
fog-1.3.1 lib/fog/aws/requests/elasticache/describe_events.rb
fog-1.3.0 lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
fog-1.2.0 lib/fog/aws/requests/elasticache/describe_events.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/elasticache/describe_events.rb