Google Cloud Vm Migration V1 Client - Class VmUtilizationMetrics (0.5.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
NameDescription
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
TypeDescription
int

setCpuMaxPercent

Max CPU usage, percent.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCpuAveragePercent

Average CPU usage, percent.

Returns
TypeDescription
int

setCpuAveragePercent

Average CPU usage, percent.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMemoryMaxPercent

Max memory usage, percent.

Returns
TypeDescription
int

setMemoryMaxPercent

Max memory usage, percent.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getMemoryAveragePercent

Average memory usage, percent.

Returns
TypeDescription
int

setMemoryAveragePercent

Average memory usage, percent.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDiskIoRateMaxKbps

Max disk IO rate, in kilobytes per second.

Returns
TypeDescription
int|string

setDiskIoRateMaxKbps

Max disk IO rate, in kilobytes per second.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDiskIoRateAverageKbps

Average disk IO rate, in kilobytes per second.

Returns
TypeDescription
int|string

setDiskIoRateAverageKbps

Average disk IO rate, in kilobytes per second.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getNetworkThroughputMaxKbps

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

Returns
TypeDescription
int|string

setNetworkThroughputMaxKbps

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

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getNetworkThroughputAverageKbps

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

Returns
TypeDescription
int|string

setNetworkThroughputAverageKbps

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

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this