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 |
Google\Cloud\MigrationCenter\V1\MemoryUsageSample
Memory usage sample. |
↳ cpu |
Google\Cloud\MigrationCenter\V1\CpuUsageSample
CPU usage sample. |
↳ network |
Google\Cloud\MigrationCenter\V1\NetworkUsageSample
Network usage sample. |
↳ disk |
Google\Cloud\MigrationCenter\V1\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 |
Google\Cloud\MigrationCenter\V1\MemoryUsageSample|null |
|
hasMemory
clearMemory
setMemory
Memory usage sample.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\MigrationCenter\V1\MemoryUsageSample
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCpu
CPU usage sample.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\MigrationCenter\V1\CpuUsageSample|null |
|
hasCpu
clearCpu
setCpu
CPU usage sample.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\MigrationCenter\V1\CpuUsageSample
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getNetwork
Network usage sample.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\MigrationCenter\V1\NetworkUsageSample|null |
|
hasNetwork
clearNetwork
setNetwork
Network usage sample.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\MigrationCenter\V1\NetworkUsageSample
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDisk
Disk usage sample.
| Returns | |
|---|---|
| Type | Description |
Google\Cloud\MigrationCenter\V1\DiskUsageSample|null |
|
hasDisk
clearDisk
setDisk
Disk usage sample.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Cloud\MigrationCenter\V1\DiskUsageSample
|
| Returns | |
|---|---|
| Type | Description |
$this |
|