Reference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::QueueStats.
Statistics for a queue.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#concurrent_dispatches_count
defconcurrent_dispatches_count()->::Integer
Returns
(::Integer) — Output only. The number of requests that the queue has dispatched but has
not received a reply for yet.
#effective_execution_rate
defeffective_execution_rate()->::Float
Returns
(::Float) — Output only. The current maximum number of tasks per second executed by the
queue. The maximum value of this variable is controlled by the RateLimits
of the Queue. However, this value could be less to avoid overloading the
endpoints tasks in the queue are targeting.
#executed_last_minute_count
defexecuted_last_minute_count()->::Integer
Returns
(::Integer) — Output only. The number of tasks that the queue has dispatched and received
a reply for during the last minute. This variable counts both successful
and non-successful executions.
(::Google::Protobuf::Timestamp) — Output only. An estimation of the nearest time in the future where a task
in the queue is scheduled to be executed.
#tasks_count
deftasks_count()->::Integer
Returns
(::Integer) — Output only. An estimation of the number of tasks in the queue, that is,
the tasks in the queue that haven't been executed, the tasks in the queue
which the queue has dispatched but has not yet received a reply for, and
the failed tasks that the queue is retrying.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Tasks V2beta2 API - Class Google::Cloud::Tasks::V2beta2::QueueStats (v0.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.0 (latest)](/ruby/docs/reference/google-cloud-tasks-v2beta2/latest/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.14.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.14.1/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.13.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.13.0/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.12.1](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.12.1/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.11.3](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.11.3/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.10.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.10.0/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.9.2](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.9.2/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.8.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.8.0/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.7.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.7.0/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.6.0](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.6.0/Google-Cloud-Tasks-V2beta2-QueueStats)\n- [0.5.5](/ruby/docs/reference/google-cloud-tasks-v2beta2/0.5.5/Google-Cloud-Tasks-V2beta2-QueueStats) \nReference documentation and code samples for the Cloud Tasks V2beta2 API class Google::Cloud::Tasks::V2beta2::QueueStats.\n\nStatistics for a queue. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #concurrent_dispatches_count\n\n def concurrent_dispatches_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The number of requests that the queue has dispatched but has not received a reply for yet.\n\n### #effective_execution_rate\n\n def effective_execution_rate() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Output only. The current maximum number of tasks per second executed by the queue. The maximum value of this variable is controlled by the RateLimits of the Queue. However, this value could be less to avoid overloading the endpoints tasks in the queue are targeting.\n\n### #executed_last_minute_count\n\n def executed_last_minute_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The number of tasks that the queue has dispatched and received a reply for during the last minute. This variable counts both successful and non-successful executions.\n\n### #oldest_estimated_arrival_time\n\n def oldest_estimated_arrival_time() -\u003e ::Google::Protobuf::Timestamp\n\n**Returns**\n\n- ([::Google::Protobuf::Timestamp](./Google-Protobuf-Timestamp)) --- Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.\n\n### #tasks_count\n\n def tasks_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. An estimation of the number of tasks in the queue, that is, the tasks in the queue that haven't been executed, the tasks in the queue which the queue has dispatched but has not yet received a reply for, and the failed tasks that the queue is retrying."]]