You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SQS::QueuePoller::PollerStats

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb

Overview

Statistics tracked client-side by the Aws::SQS::QueuePoller.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePollerStats

Returns a new instance of PollerStats



423
424
425
426
427
428
429
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb', line 423

def initialize
  @request_count = 0
  @received_message_count = 0
  @last_message_received_at = nil
  @polling_started_at = Time.now
  @polling_stopped_at = nil
end

Instance Attribute Details

#last_message_received_atTime?

Returns:

  • (Time, nil)


438
439
440
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb', line 438

def last_message_received_at
  @last_message_received_at
end

#polling_started_atTime

Returns:

  • (Time)


441
442
443
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb', line 441

def polling_started_at
  @polling_started_at
end

#polling_stopped_atTime?

Returns:

  • (Time, nil)


444
445
446
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb', line 444

def polling_stopped_at
  @polling_stopped_at
end

#received_message_countInteger

Returns:

  • (Integer)


435
436
437
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb', line 435

def received_message_count
  @received_message_count
end

#request_countInteger

Returns:

  • (Integer)


432
433
434
# File 'gems/aws-sdk-sqs/lib/aws-sdk-sqs/queue_poller.rb', line 432

def request_count
  @request_count
end