Reference documentation and code samples for the Google Cloud Migration Center V1 Client class DailyResourceUsageAggregation.
Usage data aggregation for a single day.
Generated from protobuf message google.cloud.migrationcenter.v1.DailyResourceUsageAggregation
Namespace
Google \ Cloud \ MigrationCenter \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ date |
Google\Type\Date
Aggregation date. Day boundaries are at midnight UTC. |
↳ cpu |
DailyResourceUsageAggregation\CPU
CPU usage. |
↳ memory |
DailyResourceUsageAggregation\Memory
Memory usage. |
↳ network |
DailyResourceUsageAggregation\Network
Network usage. |
↳ disk |
DailyResourceUsageAggregation\Disk
Disk usage. |
getDate
Aggregation date. Day boundaries are at midnight UTC.
Returns | |
---|---|
Type | Description |
Google\Type\Date|null |
hasDate
clearDate
setDate
Aggregation date. Day boundaries are at midnight UTC.
Parameter | |
---|---|
Name | Description |
var |
Google\Type\Date
|
Returns | |
---|---|
Type | Description |
$this |
getCpu
CPU usage.
Returns | |
---|---|
Type | Description |
DailyResourceUsageAggregation\CPU|null |
hasCpu
clearCpu
setCpu
CPU usage.
Parameter | |
---|---|
Name | Description |
var |
DailyResourceUsageAggregation\CPU
|
Returns | |
---|---|
Type | Description |
$this |
getMemory
Memory usage.
Returns | |
---|---|
Type | Description |
DailyResourceUsageAggregation\Memory|null |
hasMemory
clearMemory
setMemory
Memory usage.
Parameter | |
---|---|
Name | Description |
var |
DailyResourceUsageAggregation\Memory
|
Returns | |
---|---|
Type | Description |
$this |
getNetwork
Network usage.
Returns | |
---|---|
Type | Description |
DailyResourceUsageAggregation\Network|null |
hasNetwork
clearNetwork
setNetwork
Network usage.
Parameter | |
---|---|
Name | Description |
var |
DailyResourceUsageAggregation\Network
|
Returns | |
---|---|
Type | Description |
$this |
getDisk
Disk usage.
Returns | |
---|---|
Type | Description |
DailyResourceUsageAggregation\Disk|null |
hasDisk
clearDisk
setDisk
Disk usage.
Parameter | |
---|---|
Name | Description |
var |
DailyResourceUsageAggregation\Disk
|
Returns | |
---|---|
Type | Description |
$this |