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

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 disk 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) ⇒ DiskUtilization

Returns a new instance of DiskUtilization



1946
1947
1948
# File 'generated/google/apis/appengine_v1/classes.rb', line 1946

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)


1934
1935
1936
# File 'generated/google/apis/appengine_v1/classes.rb', line 1934

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)


1939
1940
1941
# File 'generated/google/apis/appengine_v1/classes.rb', line 1939

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)


1929
1930
1931
# File 'generated/google/apis/appengine_v1/classes.rb', line 1929

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)


1944
1945
1946
# File 'generated/google/apis/appengine_v1/classes.rb', line 1944

def target_write_ops_per_second
  @target_write_ops_per_second
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1951
1952
1953
1954
1955
1956
# File 'generated/google/apis/appengine_v1/classes.rb', line 1951

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