Reference documentation and code samples for the Google Cloud Migration Center V1 Client class CpuUsageSample.
CPU usage sample.
Generated from protobuf message google.cloud.migrationcenter.v1.CpuUsageSample
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ utilized_percentage |
float
Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage. |
getUtilizedPercentage
Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.
| Returns | |
|---|---|
| Type | Description |
float |
|
setUtilizedPercentage
Percentage of total CPU capacity utilized. Must be in the interval [0, 100]. On most systems can be calculated using 100 - idle percentage.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|