Google Cloud Vm Migration V1 Client - Class VmUtilizationMetrics (1.0.2)

Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class VmUtilizationMetrics.

Utilization metrics values for a single VM.

Generated from protobuf message google.cloud.vmmigration.v1.VmUtilizationMetrics

Namespace

Google \ Cloud \ VMMigration \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cpu_max_percent int

Max CPU usage, percent.

↳ cpu_average_percent int

Average CPU usage, percent.

↳ memory_max_percent int

Max memory usage, percent.

↳ memory_average_percent int

Average memory usage, percent.

↳ disk_io_rate_max_kbps int|string

Max disk IO rate, in kilobytes per second.

↳ disk_io_rate_average_kbps int|string

Average disk IO rate, in kilobytes per second.

↳ network_throughput_max_kbps int|string

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

↳ network_throughput_average_kbps int|string

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

getCpuMaxPercent

Max CPU usage, percent.

Returns
Type Description
int

setCpuMaxPercent

Max CPU usage, percent.

Parameter
Name Description
var int
Returns
Type Description
$this

getCpuAveragePercent

Average CPU usage, percent.

Returns
Type Description
int

setCpuAveragePercent

Average CPU usage, percent.

Parameter
Name Description
var int
Returns
Type Description
$this

getMemoryMaxPercent

Max memory usage, percent.

Returns
Type Description
int

setMemoryMaxPercent

Max memory usage, percent.

Parameter
Name Description
var int
Returns
Type Description
$this

getMemoryAveragePercent

Average memory usage, percent.

Returns
Type Description
int

setMemoryAveragePercent

Average memory usage, percent.

Parameter
Name Description
var int
Returns
Type Description
$this

getDiskIoRateMaxKbps

Max disk IO rate, in kilobytes per second.

Returns
Type Description
int|string

setDiskIoRateMaxKbps

Max disk IO rate, in kilobytes per second.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getDiskIoRateAverageKbps

Average disk IO rate, in kilobytes per second.

Returns
Type Description
int|string

setDiskIoRateAverageKbps

Average disk IO rate, in kilobytes per second.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getNetworkThroughputMaxKbps

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

Returns
Type Description
int|string

setNetworkThroughputMaxKbps

Max network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getNetworkThroughputAverageKbps

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

Returns
Type Description
int|string

setNetworkThroughputAverageKbps

Average network throughput (combined transmit-rates and receive-rates), in kilobytes per second.

Parameter
Name Description
var int|string
Returns
Type Description
$this