Class: Google::Apis::MigrationcenterV1::DiskUsageSample

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/migrationcenter_v1/classes.rb,
lib/google/apis/migrationcenter_v1/representations.rb,
lib/google/apis/migrationcenter_v1/representations.rb

Overview

Disk usage sample. Values are across all disks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DiskUsageSample

Returns a new instance of DiskUsageSample.



1794
1795
1796
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1794

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

Instance Attribute Details

#average_iopsFloat

Optional. Average IOPS sampled over a short window. Must be non-negative. Must be equal to the sum of read and write if one of them is positive. if both read and write are zero they are ignored. Corresponds to the JSON property averageIops

Returns:

  • (Float)


1782
1783
1784
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1782

def average_iops
  @average_iops
end

#average_read_iopsFloat

Optional. Average read IOPS sampled over a short window. Must be non-negative. Corresponds to the JSON property averageReadIops

Returns:

  • (Float)


1787
1788
1789
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1787

def average_read_iops
  @average_read_iops
end

#average_write_iopsFloat

Optional. Average write IOPS sampled over a short window. Must be non-negative. Corresponds to the JSON property averageWriteIops

Returns:

  • (Float)


1792
1793
1794
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1792

def average_write_iops
  @average_write_iops
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1799
1800
1801
1802
1803
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 1799

def update!(**args)
  @average_iops = args[:average_iops] if args.key?(:average_iops)
  @average_read_iops = args[:average_read_iops] if args.key?(:average_read_iops)
  @average_write_iops = args[:average_write_iops] if args.key?(:average_write_iops)
end