Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsage

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

Overview

ResourceUsage is the system resource usage of the host machine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildbotResourceUsage

Returns a new instance of GoogleDevtoolsRemotebuildbotResourceUsage.



2367
2368
2369
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2367

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

Instance Attribute Details

#cpu_used_percentFloat

Corresponds to the JSON property cpuUsedPercent

Returns:

  • (Float)


2350
2351
2352
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2350

def cpu_used_percent
  @cpu_used_percent
end

#disk_usageGoogle::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat

Corresponds to the JSON property diskUsage



2355
2356
2357
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2355

def disk_usage
  @disk_usage
end

#memory_usageGoogle::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageStat

Corresponds to the JSON property memoryUsage



2360
2361
2362
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2360

def memory_usage
  @memory_usage
end

#total_disk_io_statsGoogle::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildbotResourceUsageIoStats

Corresponds to the JSON property totalDiskIoStats



2365
2366
2367
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2365

def total_disk_io_stats
  @total_disk_io_stats
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2372
2373
2374
2375
2376
2377
# File 'lib/google/apis/remotebuildexecution_v2/classes.rb', line 2372

def update!(**args)
  @cpu_used_percent = args[:cpu_used_percent] if args.key?(:cpu_used_percent)
  @disk_usage = args[:disk_usage] if args.key?(:disk_usage)
  @memory_usage = args[:memory_usage] if args.key?(:memory_usage)
  @total_disk_io_stats = args[:total_disk_io_stats] if args.key?(:total_disk_io_stats)
end