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

Inherits:
Object
  • Object
show all
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 network usage. Only applicable in the App Engine flexible environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NetworkUtilization

Returns a new instance of NetworkUtilization.



2002
2003
2004
# File 'lib/google/apis/appengine_v1/classes.rb', line 2002

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)


1985
1986
1987
# File 'lib/google/apis/appengine_v1/classes.rb', line 1985

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)


1990
1991
1992
# File 'lib/google/apis/appengine_v1/classes.rb', line 1990

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)


1995
1996
1997
# File 'lib/google/apis/appengine_v1/classes.rb', line 1995

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)


2000
2001
2002
# File 'lib/google/apis/appengine_v1/classes.rb', line 2000

def target_sent_packets_per_second
  @target_sent_packets_per_second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2007
2008
2009
2010
2011
2012
# File 'lib/google/apis/appengine_v1/classes.rb', line 2007

def update!(**args)
  @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)
  @target_sent_packets_per_second = args[:target_sent_packets_per_second] if args.key?(:target_sent_packets_per_second)
end