Reference documentation and code samples for the Google Cloud Migration Center V1 Client class PerformanceSample.
Performance data sample.
Generated from protobuf message google.cloud.migrationcenter.v1.PerformanceSample
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ sample_time |
Google\Protobuf\Timestamp
Time the sample was collected. If omitted, the frame report time will be used. |
↳ memory |
MemoryUsageSample
Memory usage sample. |
↳ cpu |
CpuUsageSample
CPU usage sample. |
↳ network |
NetworkUsageSample
Network usage sample. |
↳ disk |
DiskUsageSample
Disk usage sample. |
getSampleTime
Time the sample was collected.
If omitted, the frame report time will be used.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Timestamp|null |
hasSampleTime
clearSampleTime
setSampleTime
Time the sample was collected.
If omitted, the frame report time will be used.
Parameter | |
---|---|
Name | Description |
var |
Google\Protobuf\Timestamp
|
Returns | |
---|---|
Type | Description |
$this |
getMemory
Memory usage sample.
Returns | |
---|---|
Type | Description |
MemoryUsageSample|null |
hasMemory
clearMemory
setMemory
Memory usage sample.
Parameter | |
---|---|
Name | Description |
var |
MemoryUsageSample
|
Returns | |
---|---|
Type | Description |
$this |
getCpu
CPU usage sample.
Returns | |
---|---|
Type | Description |
CpuUsageSample|null |
hasCpu
clearCpu
setCpu
CPU usage sample.
Parameter | |
---|---|
Name | Description |
var |
CpuUsageSample
|
Returns | |
---|---|
Type | Description |
$this |
getNetwork
Network usage sample.
Returns | |
---|---|
Type | Description |
NetworkUsageSample|null |
hasNetwork
clearNetwork
setNetwork
Network usage sample.
Parameter | |
---|---|
Name | Description |
var |
NetworkUsageSample
|
Returns | |
---|---|
Type | Description |
$this |
getDisk
Disk usage sample.
Returns | |
---|---|
Type | Description |
DiskUsageSample|null |
hasDisk
clearDisk
setDisk
Disk usage sample.
Parameter | |
---|---|
Name | Description |
var |
DiskUsageSample
|
Returns | |
---|---|
Type | Description |
$this |