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 \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ execution_count
int|string
The number of times the query was executed.
↳ avg_cpu_time
↳ total_cpu_time
↳ 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.
int|string
setExecutionCount
The number of times the query was executed.
var
int|string
$this
getAvgCpuTime
The average execution period of the query across all runs.
hasAvgCpuTime
clearAvgCpuTime
setAvgCpuTime
The average execution period of the query across all runs.
$this
getTotalCpuTime
The total CPU time consumed by the query across all runs.
hasTotalCpuTime
clearTotalCpuTime
setTotalCpuTime
The total CPU time consumed by the query across all runs.
$this
getRowsProcessed
The average number of rows processed by the query across all runs.
int|string
setRowsProcessed
The average number of rows processed by the query across all runs.
var
int|string
$this
getMetricsWindow
The window over which the metrics are aggregated.
setMetricsWindow
The window over which the metrics are aggregated.
$this

