Class: Google::Apis::AppengineV1beta4::RequestUtilization

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

Overview

Target scaling by request utilization. Only applicable for VM runtimes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RequestUtilization

Returns a new instance of RequestUtilization.



1591
1592
1593
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1591

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)


1584
1585
1586
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1584

def target_concurrent_requests
  @target_concurrent_requests
end

#target_request_count_per_secFixnum

Target requests per second. Corresponds to the JSON property targetRequestCountPerSec

Returns:

  • (Fixnum)


1589
1590
1591
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1589

def target_request_count_per_sec
  @target_request_count_per_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1596
1597
1598
1599
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 1596

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