Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsage

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

Overview

ResourceUsage is the system resource usage of the host machine.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildbotResourceUsage

Returns a new instance of GoogleDevtoolsRemotebuildbotResourceUsage.



1772
1773
1774
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1772

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

Instance Attribute Details

#cpu_used_percentFloat

Corresponds to the JSON property cpuUsedPercent

Returns:

  • (Float)


1760
1761
1762
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1760

def cpu_used_percent
  @cpu_used_percent
end

#disk_usageGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat

Corresponds to the JSON property diskUsage



1765
1766
1767
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1765

def disk_usage
  @disk_usage
end

#memory_usageGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat

Corresponds to the JSON property memoryUsage



1770
1771
1772
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1770

def memory_usage
  @memory_usage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1777
1778
1779
1780
1781
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1777

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)
end