Class: Google::Apis::TaskqueueV1beta1::TaskQueue::Stats
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta1::TaskQueue::Stats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/taskqueue_v1beta1/classes.rb,
generated/google/apis/taskqueue_v1beta1/representations.rb,
generated/google/apis/taskqueue_v1beta1/representations.rb
Overview
Statistics for the TaskQueue object in question.
Instance Attribute Summary collapse
-
#leased_last_hour ⇒ Fixnum
Number of tasks leased in the last hour.
-
#leased_last_minute ⇒ Fixnum
Number of tasks leased in the last minute.
-
#oldest_task ⇒ Fixnum
The timestamp (in seconds since the epoch) of the oldest unfinished task.
-
#total_tasks ⇒ Fixnum
Number of tasks in the queue.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Stats
constructor
A new instance of Stats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Stats
Returns a new instance of Stats
177 178 179 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 177 def initialize(**args) update!(**args) end |
Instance Attribute Details
#leased_last_hour ⇒ Fixnum
Number of tasks leased in the last hour.
Corresponds to the JSON property leasedLastHour
160 161 162 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 160 def leased_last_hour @leased_last_hour end |
#leased_last_minute ⇒ Fixnum
Number of tasks leased in the last minute.
Corresponds to the JSON property leasedLastMinute
165 166 167 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 165 def leased_last_minute @leased_last_minute end |
#oldest_task ⇒ Fixnum
The timestamp (in seconds since the epoch) of the oldest unfinished task.
Corresponds to the JSON property oldestTask
170 171 172 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 170 def oldest_task @oldest_task end |
#total_tasks ⇒ Fixnum
Number of tasks in the queue.
Corresponds to the JSON property totalTasks
175 176 177 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 175 def total_tasks @total_tasks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
182 183 184 185 186 187 |
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 182 def update!(**args) @leased_last_hour = args[:leased_last_hour] if args.key?(:leased_last_hour) @leased_last_minute = args[:leased_last_minute] if args.key?(:leased_last_minute) @oldest_task = args[:oldest_task] if args.key?(:oldest_task) @total_tasks = args[:total_tasks] if args.key?(:total_tasks) end |