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

Inherits:
Object
  • Object
show all
Defined in:
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.


425
426
427
428
429
430
431
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 425

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)

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

def last_message_received_at
  @last_message_received_at
end

#polling_started_atTime

Returns:

  • (Time)

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

def polling_started_at
  @polling_started_at
end

#polling_stopped_atTime?

Returns:

  • (Time, nil)

446
447
448
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 446

def polling_stopped_at
  @polling_stopped_at
end

#received_message_countInteger

Returns:

  • (Integer)

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

def received_message_count
  @received_message_count
end

#request_countInteger

Returns:

  • (Integer)

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

def request_count
  @request_count
end