Class: Aws::SQS::QueuePoller::PollerStats
- Inherits:
-
Object
- Object
- Aws::SQS::QueuePoller::PollerStats
- Defined in:
- lib/aws-sdk-sqs/queue_poller.rb
Overview
Statistics tracked client-side by the Aws::SQS::QueuePoller.
Instance Attribute Summary collapse
- #last_message_received_at ⇒ Time?
- #polling_started_at ⇒ Time
- #polling_stopped_at ⇒ Time?
- #received_message_count ⇒ Integer
- #request_count ⇒ Integer
Instance Method Summary collapse
-
#initialize ⇒ PollerStats
constructor
A new instance of PollerStats.
Constructor Details
#initialize ⇒ PollerStats
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_at ⇒ Time?
468 469 470 |
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 468 def @last_message_received_at end |
#polling_started_at ⇒ Time
471 472 473 |
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 471 def polling_started_at @polling_started_at end |
#polling_stopped_at ⇒ Time?
474 475 476 |
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 474 def polling_stopped_at @polling_stopped_at end |
#received_message_count ⇒ Integer
465 466 467 |
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 465 def @received_message_count end |
#request_count ⇒ Integer
462 463 464 |
# File 'lib/aws-sdk-sqs/queue_poller.rb', line 462 def request_count @request_count end |