Google Cloud Migration Center V1 Client - Class CpuUsageSample (1.2.3)Stay organized with collectionsSave and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Migration Center V1 Client class CpuUsageSample.
CPU usage sample.
Generated from protobuf messagegoogle.cloud.migrationcenter.v1.CpuUsageSample
Namespace
Google \ Cloud \ MigrationCenter \ V1
Methods
__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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-18 UTC."],[],[]]