Class: Google::Apis::AppengineV1::RequestUtilization

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/google/apis/appengine_v1/representations.rb

Overview

Target scaling by request utilization. Only applicable in the App Engine flexible environment.

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) ⇒ RequestUtilization

Returns a new instance of RequestUtilization.



2129
2130
2131
# File 'generated/google/apis/appengine_v1/classes.rb', line 2129

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

Instance Attribute Details

#target_concurrent_requestsFixnum

Target number of concurrent requests. Corresponds to the JSON property targetConcurrentRequests

Returns:

  • (Fixnum)


2122
2123
2124
# File 'generated/google/apis/appengine_v1/classes.rb', line 2122

def target_concurrent_requests
  @target_concurrent_requests
end

#target_request_count_per_secondFixnum

Target requests per second. Corresponds to the JSON property targetRequestCountPerSecond

Returns:

  • (Fixnum)


2127
2128
2129
# File 'generated/google/apis/appengine_v1/classes.rb', line 2127

def target_request_count_per_second
  @target_request_count_per_second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2134
2135
2136
2137
# File 'generated/google/apis/appengine_v1/classes.rb', line 2134

def update!(**args)
  @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests)
  @target_request_count_per_second = args[:target_request_count_per_second] if args.key?(:target_request_count_per_second)
end