Class: Google::Apis::AppengineV1beta4::NetworkUtilization

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable
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 network usage (for VM runtimes only).

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ NetworkUtilization

Returns a new instance of NetworkUtilization.


528
529
530
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 528

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

Instance Attribute Details

#target_received_bytes_per_secFixnum

Target bytes per second received. Corresponds to the JSON property targetReceivedBytesPerSec

Returns:

  • (Fixnum)

521
522
523
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 521

def target_received_bytes_per_sec
  @target_received_bytes_per_sec
end

#target_received_packets_per_secFixnum

Target packets per second received. Corresponds to the JSON property targetReceivedPacketsPerSec

Returns:

  • (Fixnum)

526
527
528
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 526

def target_received_packets_per_sec
  @target_received_packets_per_sec
end

#target_sent_bytes_per_secFixnum

Target bytes per second sent. Corresponds to the JSON property targetSentBytesPerSec

Returns:

  • (Fixnum)

511
512
513
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 511

def target_sent_bytes_per_sec
  @target_sent_bytes_per_sec
end

#target_sent_packets_per_secFixnum

Target packets per second sent. Corresponds to the JSON property targetSentPacketsPerSec

Returns:

  • (Fixnum)

516
517
518
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 516

def target_sent_packets_per_sec
  @target_sent_packets_per_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


533
534
535
536
537
538
# File 'generated/google/apis/appengine_v1beta4/classes.rb', line 533

def update!(**args)
  @target_sent_bytes_per_sec = args[:target_sent_bytes_per_sec] if args.key?(:target_sent_bytes_per_sec)
  @target_sent_packets_per_sec = args[:target_sent_packets_per_sec] if args.key?(:target_sent_packets_per_sec)
  @target_received_bytes_per_sec = args[:target_received_bytes_per_sec] if args.key?(:target_received_bytes_per_sec)
  @target_received_packets_per_sec = args[:target_received_packets_per_sec] if args.key?(:target_received_packets_per_sec)
end