Class: Google::Apis::AppengineV1beta::RequestUtilization

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestUtilization

Returns a new instance of RequestUtilization.



2238
2239
2240
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2238

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)


2231
2232
2233
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2231

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)


2236
2237
2238
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2236

def target_request_count_per_second
  @target_request_count_per_second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2243
2244
2245
2246
# File 'generated/google/apis/appengine_v1beta/classes.rb', line 2243

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