Class: Google::Apis::TaskqueueV1beta2::TaskQueue::Stats
- Inherits:
-
Object
- Object
- Google::Apis::TaskqueueV1beta2::TaskQueue::Stats
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/taskqueue_v1beta2/classes.rb,
generated/google/apis/taskqueue_v1beta2/representations.rb,
generated/google/apis/taskqueue_v1beta2/representations.rb
Overview
Statistics for the TaskQueue object in question.
Instance Attribute Summary collapse
-
#leased_last_hour ⇒ String
Number of tasks leased in the last hour.
-
#leased_last_minute ⇒ String
Number of tasks leased in the last minute.
-
#oldest_task ⇒ String
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.
189 190 191 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 189 def initialize(**args) update!(**args) end |
Instance Attribute Details
#leased_last_hour ⇒ String
Number of tasks leased in the last hour.
Corresponds to the JSON property leasedLastHour
172 173 174 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 172 def leased_last_hour @leased_last_hour end |
#leased_last_minute ⇒ String
Number of tasks leased in the last minute.
Corresponds to the JSON property leasedLastMinute
177 178 179 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 177 def leased_last_minute @leased_last_minute end |
#oldest_task ⇒ String
The timestamp (in seconds since the epoch) of the oldest unfinished task.
Corresponds to the JSON property oldestTask
182 183 184 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 182 def oldest_task @oldest_task end |
#total_tasks ⇒ Fixnum
Number of tasks in the queue.
Corresponds to the JSON property totalTasks
187 188 189 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 187 def total_tasks @total_tasks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
194 195 196 197 198 199 |
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 194 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 |