Class: Google::Apis::AppengineV1::DiskUtilization

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 disk usage. Only applicable in the App Engine flexible environment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskUtilization

Returns a new instance of DiskUtilization.



849
850
851
# File 'lib/google/apis/appengine_v1/classes.rb', line 849

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

Instance Attribute Details

#target_read_bytes_per_secondFixnum

Target bytes read per second. Corresponds to the JSON property targetReadBytesPerSecond

Returns:

  • (Fixnum)


832
833
834
# File 'lib/google/apis/appengine_v1/classes.rb', line 832

def target_read_bytes_per_second
  @target_read_bytes_per_second
end

#target_read_ops_per_secondFixnum

Target ops read per seconds. Corresponds to the JSON property targetReadOpsPerSecond

Returns:

  • (Fixnum)


837
838
839
# File 'lib/google/apis/appengine_v1/classes.rb', line 837

def target_read_ops_per_second
  @target_read_ops_per_second
end

#target_write_bytes_per_secondFixnum

Target bytes written per second. Corresponds to the JSON property targetWriteBytesPerSecond

Returns:

  • (Fixnum)


842
843
844
# File 'lib/google/apis/appengine_v1/classes.rb', line 842

def target_write_bytes_per_second
  @target_write_bytes_per_second
end

#target_write_ops_per_secondFixnum

Target ops written per second. Corresponds to the JSON property targetWriteOpsPerSecond

Returns:

  • (Fixnum)


847
848
849
# File 'lib/google/apis/appengine_v1/classes.rb', line 847

def target_write_ops_per_second
  @target_write_ops_per_second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



854
855
856
857
858
859
# File 'lib/google/apis/appengine_v1/classes.rb', line 854

def update!(**args)
  @target_read_bytes_per_second = args[:target_read_bytes_per_second] if args.key?(:target_read_bytes_per_second)
  @target_read_ops_per_second = args[:target_read_ops_per_second] if args.key?(:target_read_ops_per_second)
  @target_write_bytes_per_second = args[:target_write_bytes_per_second] if args.key?(:target_write_bytes_per_second)
  @target_write_ops_per_second = args[:target_write_ops_per_second] if args.key?(:target_write_ops_per_second)
end