Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsage
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v1alpha/classes.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb,
generated/google/apis/remotebuildexecution_v1alpha/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::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property
diskUsage
. -
#memory_usage ⇒ Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property
memoryUsage
.
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.
1545 1546 1547 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1545 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cpu_used_percent ⇒ Float
Corresponds to the JSON property cpuUsedPercent
1533 1534 1535 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1533 def cpu_used_percent @cpu_used_percent end |
#disk_usage ⇒ Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property diskUsage
1538 1539 1540 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1538 def disk_usage @disk_usage end |
#memory_usage ⇒ Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildbotResourceUsageStat
Corresponds to the JSON property memoryUsage
1543 1544 1545 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1543 def memory_usage @memory_usage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1550 1551 1552 1553 1554 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1550 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 |