diff --git a/api_names_out.yaml b/api_names_out.yaml index 4fad859ee..4b37c9818 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -27545,7 +27545,14 @@ "/cloudtasks:v2beta2/Queue/rateLimits": rate_limits "/cloudtasks:v2beta2/Queue/retryConfig": retry_config "/cloudtasks:v2beta2/Queue/state": state +"/cloudtasks:v2beta2/Queue/stats": stats "/cloudtasks:v2beta2/Queue/throttleConfig": throttle_config +"/cloudtasks:v2beta2/QueueStats": queue_stats +"/cloudtasks:v2beta2/QueueStats/concurrentDispatchesCount": concurrent_dispatches_count +"/cloudtasks:v2beta2/QueueStats/effectiveExecutionRate": effective_execution_rate +"/cloudtasks:v2beta2/QueueStats/executedLastMinuteCount": executed_last_minute_count +"/cloudtasks:v2beta2/QueueStats/oldestEstimatedArrivalTime": oldest_estimated_arrival_time +"/cloudtasks:v2beta2/QueueStats/tasksCount": tasks_count "/cloudtasks:v2beta2/RateLimits": rate_limits "/cloudtasks:v2beta2/RateLimits/maxBurstSize": max_burst_size "/cloudtasks:v2beta2/RateLimits/maxConcurrentTasks": max_concurrent_tasks diff --git a/generated/google/apis/cloudtasks_v2beta2.rb b/generated/google/apis/cloudtasks_v2beta2.rb index a706442dd..77969dcb8 100644 --- a/generated/google/apis/cloudtasks_v2beta2.rb +++ b/generated/google/apis/cloudtasks_v2beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/tasks/ module CloudtasksV2beta2 VERSION = 'V2beta2' - REVISION = '20201111' + REVISION = '20201202' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/cloudtasks_v2beta2/classes.rb b/generated/google/apis/cloudtasks_v2beta2/classes.rb index 536742722..b037d5ae6 100644 --- a/generated/google/apis/cloudtasks_v2beta2/classes.rb +++ b/generated/google/apis/cloudtasks_v2beta2/classes.rb @@ -1013,6 +1013,11 @@ module Google # @return [String] attr_accessor :state + # Statistics for a queue. + # Corresponds to the JSON property `stats` + # @return [Google::Apis::CloudtasksV2beta2::QueueStats] + attr_accessor :stats + def initialize(**args) update!(**args) end @@ -1026,6 +1031,60 @@ module Google @rate_limits = args[:rate_limits] if args.key?(:rate_limits) @retry_config = args[:retry_config] if args.key?(:retry_config) @state = args[:state] if args.key?(:state) + @stats = args[:stats] if args.key?(:stats) + end + end + + # Statistics for a queue. + class QueueStats + include Google::Apis::Core::Hashable + + # Output only. The number of requests that the queue has dispatched but has not + # received a reply for yet. + # Corresponds to the JSON property `concurrentDispatchesCount` + # @return [Fixnum] + attr_accessor :concurrent_dispatches_count + + # 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. + # Corresponds to the JSON property `effectiveExecutionRate` + # @return [Float] + attr_accessor :effective_execution_rate + + # 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. + # Corresponds to the JSON property `executedLastMinuteCount` + # @return [Fixnum] + attr_accessor :executed_last_minute_count + + # Output only. An estimation of the nearest time in the future where a task in + # the queue is scheduled to be executed. + # Corresponds to the JSON property `oldestEstimatedArrivalTime` + # @return [String] + attr_accessor :oldest_estimated_arrival_time + + # 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. + # Corresponds to the JSON property `tasksCount` + # @return [Fixnum] + attr_accessor :tasks_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @concurrent_dispatches_count = args[:concurrent_dispatches_count] if args.key?(:concurrent_dispatches_count) + @effective_execution_rate = args[:effective_execution_rate] if args.key?(:effective_execution_rate) + @executed_last_minute_count = args[:executed_last_minute_count] if args.key?(:executed_last_minute_count) + @oldest_estimated_arrival_time = args[:oldest_estimated_arrival_time] if args.key?(:oldest_estimated_arrival_time) + @tasks_count = args[:tasks_count] if args.key?(:tasks_count) end end diff --git a/generated/google/apis/cloudtasks_v2beta2/representations.rb b/generated/google/apis/cloudtasks_v2beta2/representations.rb index f83775d00..66551be87 100644 --- a/generated/google/apis/cloudtasks_v2beta2/representations.rb +++ b/generated/google/apis/cloudtasks_v2beta2/representations.rb @@ -166,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class QueueStats + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class RateLimits class Representation < Google::Apis::Core::JsonRepresentation; end @@ -444,6 +450,19 @@ module Google property :retry_config, as: 'retryConfig', class: Google::Apis::CloudtasksV2beta2::RetryConfig, decorator: Google::Apis::CloudtasksV2beta2::RetryConfig::Representation property :state, as: 'state' + property :stats, as: 'stats', class: Google::Apis::CloudtasksV2beta2::QueueStats, decorator: Google::Apis::CloudtasksV2beta2::QueueStats::Representation + + end + end + + class QueueStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :concurrent_dispatches_count, :numeric_string => true, as: 'concurrentDispatchesCount' + property :effective_execution_rate, as: 'effectiveExecutionRate' + property :executed_last_minute_count, :numeric_string => true, as: 'executedLastMinuteCount' + property :oldest_estimated_arrival_time, as: 'oldestEstimatedArrivalTime' + property :tasks_count, :numeric_string => true, as: 'tasksCount' end end diff --git a/generated/google/apis/cloudtasks_v2beta2/synth.metadata b/generated/google/apis/cloudtasks_v2beta2/synth.metadata index de594db1a..2dbcf5316 100644 --- a/generated/google/apis/cloudtasks_v2beta2/synth.metadata +++ b/generated/google/apis/cloudtasks_v2beta2/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "68c128a0d3480caeabaeaa3a073946818a3f35d5" + "sha": "0492accc8a44d0f28a484a67f7940d74246ab88d" } } ]