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.



453
454
455
456
457
458
459
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 453

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)


468
469
470
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 468

def last_message_received_at
  @last_message_received_at
end

#polling_started_atTime

Returns:

  • (Time)


471
472
473
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 471

def polling_started_at
  @polling_started_at
end

#polling_stopped_atTime?

Returns:

  • (Time, nil)


474
475
476
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 474

def polling_stopped_at
  @polling_stopped_at
end

#received_message_countInteger

Returns:

  • (Integer)


465
466
467
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 465

def received_message_count
  @received_message_count
end

#request_countInteger

Returns:

  • (Integer)


462
463
464
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 462

def request_count
  @request_count
end