Class: Google::Apis::MigrationcenterV1alpha1::DiskUsageSample
- Inherits:
-
Object
- Object
- Google::Apis::MigrationcenterV1alpha1::DiskUsageSample
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/migrationcenter_v1alpha1/classes.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb,
lib/google/apis/migrationcenter_v1alpha1/representations.rb
Overview
Disk usage sample. Values are across all disks.
Instance Attribute Summary collapse
-
#average_iops ⇒ Float
Average IOPS sampled over a short window.
-
#average_read_iops ⇒ Float
Average read IOPS sampled over a short window.
-
#average_write_iops ⇒ Float
Average write IOPS sampled over a short window.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskUsageSample
constructor
A new instance of DiskUsageSample.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DiskUsageSample
Returns a new instance of DiskUsageSample.
3647 3648 3649 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3647 def initialize(**args) update!(**args) end |
Instance Attribute Details
#average_iops ⇒ Float
Average IOPS sampled over a short window. Must be non-negative. If read or
write are set, the sum of read and write will override the value of the
average_iops.
Corresponds to the JSON property averageIops
3633 3634 3635 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3633 def average_iops @average_iops end |
#average_read_iops ⇒ Float
Average read IOPS sampled over a short window. Must be non-negative. If both
read and write are zero they are ignored.
Corresponds to the JSON property averageReadIops
3639 3640 3641 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3639 def average_read_iops @average_read_iops end |
#average_write_iops ⇒ Float
Average write IOPS sampled over a short window. Must be non-negative. If both
read and write are zero they are ignored.
Corresponds to the JSON property averageWriteIops
3645 3646 3647 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3645 def average_write_iops @average_write_iops end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3652 3653 3654 3655 3656 |
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 3652 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 |