Class: Google::Apis::AppengineV1::NetworkUtilization

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 network usage. Only applicable for VM runtimes.

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

Returns a new instance of NetworkUtilization



467
468
469
# File 'generated/google/apis/appengine_v1/classes.rb', line 467

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

Instance Attribute Details

#target_received_bytes_per_secondFixnum

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

Returns:

  • (Fixnum)


455
456
457
# File 'generated/google/apis/appengine_v1/classes.rb', line 455

def target_received_bytes_per_second
  @target_received_bytes_per_second
end

#target_received_packets_per_secondFixnum

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

Returns:

  • (Fixnum)


460
461
462
# File 'generated/google/apis/appengine_v1/classes.rb', line 460

def target_received_packets_per_second
  @target_received_packets_per_second
end

#target_sent_bytes_per_secondFixnum

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

Returns:

  • (Fixnum)


465
466
467
# File 'generated/google/apis/appengine_v1/classes.rb', line 465

def target_sent_bytes_per_second
  @target_sent_bytes_per_second
end

#target_sent_packets_per_secondFixnum

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

Returns:

  • (Fixnum)


450
451
452
# File 'generated/google/apis/appengine_v1/classes.rb', line 450

def target_sent_packets_per_second
  @target_sent_packets_per_second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



472
473
474
475
476
477
# File 'generated/google/apis/appengine_v1/classes.rb', line 472

def update!(**args)
  @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second)
  @target_received_bytes_per_second = args[:target_received_bytes_per_second] if args.key?(:target_received_bytes_per_second)
  @target_received_packets_per_second = args[:target_received_packets_per_second] if args.key?(:target_received_packets_per_second)
  @target_sent_bytes_per_second = args[:target_sent_bytes_per_second] if args.key?(:target_sent_bytes_per_second)
end