Class: Google::Apis::AppengineV1beta5::NetworkUtilization

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1beta5/classes.rb,
generated/google/apis/appengine_v1beta5/representations.rb,
generated/google/apis/appengine_v1beta5/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



1153
1154
1155
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1153

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

Instance Attribute Details

#target_received_bytes_per_secFixnum

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

Returns:

  • (Fixnum)


1136
1137
1138
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1136

def target_received_bytes_per_sec
  @target_received_bytes_per_sec
end

#target_received_packets_per_secFixnum

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

Returns:

  • (Fixnum)


1141
1142
1143
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1141

def target_received_packets_per_sec
  @target_received_packets_per_sec
end

#target_sent_bytes_per_secFixnum

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

Returns:

  • (Fixnum)


1146
1147
1148
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1146

def target_sent_bytes_per_sec
  @target_sent_bytes_per_sec
end

#target_sent_packets_per_secFixnum

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

Returns:

  • (Fixnum)


1151
1152
1153
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1151

def target_sent_packets_per_sec
  @target_sent_packets_per_sec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1158
1159
1160
1161
1162
1163
# File 'generated/google/apis/appengine_v1beta5/classes.rb', line 1158

def update!(**args)
  @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)
  @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)
end