Class: Google::Apis::AppengineV1::RequestUtilization
- Inherits:
-
Object
- Object
- Google::Apis::AppengineV1::RequestUtilization
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/appengine_v1/classes.rb,
lib/google/apis/appengine_v1/representations.rb,
lib/google/apis/appengine_v1/representations.rb
Overview
Target scaling by request utilization. Only applicable in the App Engine flexible environment.
Instance Attribute Summary collapse
-
#target_concurrent_requests ⇒ Fixnum
Target number of concurrent requests.
-
#target_request_count_per_second ⇒ Fixnum
Target requests per second.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestUtilization
constructor
A new instance of RequestUtilization.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RequestUtilization
Returns a new instance of RequestUtilization.
2553 2554 2555 |
# File 'lib/google/apis/appengine_v1/classes.rb', line 2553 def initialize(**args) update!(**args) end |
Instance Attribute Details
#target_concurrent_requests ⇒ Fixnum
Target number of concurrent requests.
Corresponds to the JSON property targetConcurrentRequests
2546 2547 2548 |
# File 'lib/google/apis/appengine_v1/classes.rb', line 2546 def target_concurrent_requests @target_concurrent_requests end |
#target_request_count_per_second ⇒ Fixnum
Target requests per second.
Corresponds to the JSON property targetRequestCountPerSecond
2551 2552 2553 |
# File 'lib/google/apis/appengine_v1/classes.rb', line 2551 def target_request_count_per_second @target_request_count_per_second end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2558 2559 2560 2561 |
# File 'lib/google/apis/appengine_v1/classes.rb', line 2558 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 |