Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsage
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/remotebuildexecution_v1/classes.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb,
lib/google/apis/remotebuildexecution_v1/representations.rb
Overview
ResourceUsage is the system resource usage of the host machine.
Instance Attribute Summary collapse
-
#cpu_used_percent ⇒ Float
Corresponds to the JSON property
cpuUsedPercent. -
#disk_usage ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property
diskUsage. -
#memory_usage ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property
memoryUsage. -
#total_disk_io_stats ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageIoStats
Corresponds to the JSON property
totalDiskIoStats.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildbotResourceUsage
constructor
A new instance of GoogleDevtoolsRemotebuildbotResourceUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildbotResourceUsage
Returns a new instance of GoogleDevtoolsRemotebuildbotResourceUsage.
1702 1703 1704 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1702 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_used_percent ⇒ Float
Corresponds to the JSON property cpuUsedPercent
1685 1686 1687 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1685 def cpu_used_percent @cpu_used_percent end |
#disk_usage ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property diskUsage
1690 1691 1692 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1690 def disk_usage @disk_usage end |
#memory_usage ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property memoryUsage
1695 1696 1697 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1695 def memory_usage @memory_usage end |
#total_disk_io_stats ⇒ Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildbotResourceUsageIoStats
Corresponds to the JSON property totalDiskIoStats
1700 1701 1702 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1700 def total_disk_io_stats @total_disk_io_stats end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1707 1708 1709 1710 1711 1712 |
# File 'lib/google/apis/remotebuildexecution_v1/classes.rb', line 1707 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 |