Class: Google::Apis::MigrationcenterV1::PerformanceSample

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

Performance data sample.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PerformanceSample

Returns a new instance of PerformanceSample.



3295
3296
3297
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3295

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

Instance Attribute Details

#cpuGoogle::Apis::MigrationcenterV1::CpuUsageSample

CPU usage sample. Corresponds to the JSON property cpu



3273
3274
3275
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3273

def cpu
  @cpu
end

#diskGoogle::Apis::MigrationcenterV1::DiskUsageSample

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



3278
3279
3280
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3278

def disk
  @disk
end

#memoryGoogle::Apis::MigrationcenterV1::MemoryUsageSample

Memory usage sample. Corresponds to the JSON property memory



3283
3284
3285
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3283

def memory
  @memory
end

#networkGoogle::Apis::MigrationcenterV1::NetworkUsageSample

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



3288
3289
3290
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3288

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)


3293
3294
3295
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3293

def sample_time
  @sample_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3300
3301
3302
3303
3304
3305
3306
# File 'lib/google/apis/migrationcenter_v1/classes.rb', line 3300

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