Google Cloud Database Center V1beta Client - Class Metrics (0.3.1)

Reference documentation and code samples for the Google Cloud Database Center V1beta Client class Metrics.

Metrics represents the metrics for a database resource.

Generated from protobuf message google.cloud.databasecenter.v1beta.Metrics

Namespace

Google \ Cloud \ DatabaseCenter \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ p99_cpu_utilization MetricData

P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

↳ p95_cpu_utilization MetricData

P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

↳ current_storage_used_bytes MetricData

Current storage used by the resource in bytes.

↳ peak_storage_utilization MetricData

Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

↳ peak_memory_utilization MetricData

Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

↳ peak_number_connections MetricData

Peak number of connections observed for the resource. The value is a positive integer.

↳ node_count MetricData

Number of nodes in instance for spanner or bigtable.

↳ processing_unit_count MetricData

Number of processing units in spanner.

↳ current_memory_used_bytes MetricData

Current memory used by the resource in bytes.

getP99CpuUtilization

P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Returns
Type Description
MetricData|null

hasP99CpuUtilization

clearP99CpuUtilization

setP99CpuUtilization

P99 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getP95CpuUtilization

P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Returns
Type Description
MetricData|null

hasP95CpuUtilization

clearP95CpuUtilization

setP95CpuUtilization

P95 CPU utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getCurrentStorageUsedBytes

Current storage used by the resource in bytes.

Returns
Type Description
MetricData|null

hasCurrentStorageUsedBytes

clearCurrentStorageUsedBytes

setCurrentStorageUsedBytes

Current storage used by the resource in bytes.

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getPeakStorageUtilization

Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Returns
Type Description
MetricData|null

hasPeakStorageUtilization

clearPeakStorageUtilization

setPeakStorageUtilization

Peak storage utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getPeakMemoryUtilization

Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Returns
Type Description
MetricData|null

hasPeakMemoryUtilization

clearPeakMemoryUtilization

setPeakMemoryUtilization

Peak memory utilization observed for the resource. The value is a fraction between 0.0 and 1.0 (may momentarily exceed 1.0 in some cases).

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getPeakNumberConnections

Peak number of connections observed for the resource. The value is a positive integer.

Returns
Type Description
MetricData|null

hasPeakNumberConnections

clearPeakNumberConnections

setPeakNumberConnections

Peak number of connections observed for the resource. The value is a positive integer.

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getNodeCount

Number of nodes in instance for spanner or bigtable.

Returns
Type Description
MetricData|null

hasNodeCount

clearNodeCount

setNodeCount

Number of nodes in instance for spanner or bigtable.

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getProcessingUnitCount

Number of processing units in spanner.

Returns
Type Description
MetricData|null

hasProcessingUnitCount

clearProcessingUnitCount

setProcessingUnitCount

Number of processing units in spanner.

Parameter
Name Description
var MetricData
Returns
Type Description
$this

getCurrentMemoryUsedBytes

Current memory used by the resource in bytes.

Returns
Type Description
MetricData|null

hasCurrentMemoryUsedBytes

clearCurrentMemoryUsedBytes

setCurrentMemoryUsedBytes

Current memory used by the resource in bytes.

Parameter
Name Description
var MetricData
Returns
Type Description
$this