Google Cloud Database Center V1beta Client - Class QueryMetrics (0.7.0)

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

QueryMetrics contains the metrics related to the query execution.

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

Namespace

Google \ Cloud \ DatabaseCenter \ V1beta

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ execution_count
int|string

The number of times the query was executed.

↳ avg_cpu_time
Google\Protobuf\Duration

The average execution period of the query across all runs.

↳ total_cpu_time
Google\Protobuf\Duration

The total CPU time consumed by the query across all runs.

↳ rows_processed
int|string

The average number of rows processed by the query across all runs.

↳ metrics_window
int

The window over which the metrics are aggregated.

getExecutionCount

The number of times the query was executed.

Returns
Type
Description
int|string

setExecutionCount

The number of times the query was executed.

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

getAvgCpuTime

The average execution period of the query across all runs.

Returns
Type
Description

hasAvgCpuTime

clearAvgCpuTime

setAvgCpuTime

The average execution period of the query across all runs.

Parameter
Name
Description
Returns
Type
Description
$this

getTotalCpuTime

The total CPU time consumed by the query across all runs.

Returns
Type
Description

hasTotalCpuTime

clearTotalCpuTime

setTotalCpuTime

The total CPU time consumed by the query across all runs.

Parameter
Name
Description
Returns
Type
Description
$this

getRowsProcessed

The average number of rows processed by the query across all runs.

Returns
Type
Description
int|string

setRowsProcessed

The average number of rows processed by the query across all runs.

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

getMetricsWindow

The window over which the metrics are aggregated.

Returns
Type
Description
int
Enum of type MetricsWindow .

setMetricsWindow

The window over which the metrics are aggregated.

Parameter
Name
Description
var
int

Enum of type MetricsWindow .

Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: