Class: Google::Apis::MigrationcenterV1alpha1::PerformanceSample

Inherits:
Object
  • Object
show all
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

Performance data sample.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerformanceSample

Returns a new instance of PerformanceSample.



4941
4942
4943
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4941

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

Instance Attribute Details

#cpuGoogle::Apis::MigrationcenterV1alpha1::CpuUsageSample

CPU usage sample. Corresponds to the JSON property cpu



4919
4920
4921
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4919

def cpu
  @cpu
end

#diskGoogle::Apis::MigrationcenterV1alpha1::DiskUsageSample

Disk usage sample. Values are across all disks. Corresponds to the JSON property disk



4924
4925
4926
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4924

def disk
  @disk
end

#memoryGoogle::Apis::MigrationcenterV1alpha1::MemoryUsageSample

Memory usage sample. Corresponds to the JSON property memory



4929
4930
4931
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4929

def memory
  @memory
end

#networkGoogle::Apis::MigrationcenterV1alpha1::NetworkUsageSample

Network usage sample. Values are across all network interfaces. Corresponds to the JSON property network



4934
4935
4936
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4934

def network
  @network
end

#sample_timeString

Time the sample was collected. If omitted, the frame report time will be used. Corresponds to the JSON property sampleTime

Returns:

  • (String)


4939
4940
4941
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4939

def sample_time
  @sample_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4946
4947
4948
4949
4950
4951
4952
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 4946

def update!(**args)
  @cpu = args[:cpu] if args.key?(:cpu)
  @disk = args[:disk] if args.key?(:disk)
  @memory = args[:memory] if args.key?(:memory)
  @network = args[:network] if args.key?(:network)
  @sample_time = args[:sample_time] if args.key?(:sample_time)
end