Class: Google::Apis::TaskqueueV1beta2::TaskQueue::Stats

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_hourString

Number of tasks leased in the last hour. Corresponds to the JSON property leasedLastHour

Returns:

  • (String)


172
173
174
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 172

def leased_last_hour
  @leased_last_hour
end

#leased_last_minuteString

Number of tasks leased in the last minute. Corresponds to the JSON property leasedLastMinute

Returns:

  • (String)


177
178
179
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 177

def leased_last_minute
  @leased_last_minute
end

#oldest_taskString

The timestamp (in seconds since the epoch) of the oldest unfinished task. Corresponds to the JSON property oldestTask

Returns:

  • (String)


182
183
184
# File 'generated/google/apis/taskqueue_v1beta2/classes.rb', line 182

def oldest_task
  @oldest_task
end

#total_tasksFixnum

Number of tasks in the queue. Corresponds to the JSON property totalTasks

Returns:

  • (Fixnum)


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