Reference documentation and code samples for the Google Cloud Database Center V1beta Client class QueryStats.
QueryStats contains the stats for a particular combination of query_hash, query_string and resource_type.
Generated from protobuf message google.cloud.databasecenter.v1beta.QueryStats
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ query_hash
string
The query hash of the query.
↳ normalized_query
string
The query string is normalized query without any PII data.
↳ resource_type
string
The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
↳ resource_ids
↳ query_metrics
↳ inefficient_query_info
getQueryHash
The query hash of the query.
string
setQueryHash
The query hash of the query.
var
string
$this
getNormalizedQuery
The query string is normalized query without any PII data.
string
setNormalizedQuery
The query string is normalized query without any PII data.
var
string
$this
getResourceType
The type of the resource.
sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
string
setResourceType
The type of the resource.
sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
var
string
$this
getResourceIds
The resource ids for which the query stats are collected.
setResourceIds
The resource ids for which the query stats are collected.
$this
getQueryMetrics
Metrics related to the query performance.
hasQueryMetrics
clearQueryMetrics
setQueryMetrics
Metrics related to the query performance.
$this
getInefficientQueryInfo
Information about inefficient query.
hasInefficientQueryInfo
clearInefficientQueryInfo
setInefficientQueryInfo
Information about inefficient query.
$this

