Class: Google::Apis::TaskqueueV1beta1::TaskQueue::Stats

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

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



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

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#leased_last_hourFixnum

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

Returns:

  • (Fixnum)


160
161
162
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 160

def leased_last_hour
  @leased_last_hour
end

#leased_last_minuteFixnum

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

Returns:

  • (Fixnum)


165
166
167
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 165

def leased_last_minute
  @leased_last_minute
end

#oldest_taskFixnum

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

Returns:

  • (Fixnum)


170
171
172
# File 'generated/google/apis/taskqueue_v1beta1/classes.rb', line 170

def oldest_task
  @oldest_task
end

#total_tasksFixnum

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

Returns:

  • (Fixnum)


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