Class QueryStats (0.9.0)

QueryStats(mapping=None, *, ignore_unknown_fields=False, **kwargs)

QueryStats contains the stats for a particular combination of query_hash, query_string and resource_type.

Attributes

Name Description
query_hash str
The query hash of the query.
normalized_query str
The query string is normalized query without any PII data.
resource_type str
The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
resource_ids MutableSequence[google.cloud.databasecenter_v1beta.types.ResourceId]
The resource ids for which the query stats are collected.
query_metrics google.cloud.databasecenter_v1beta.types.QueryMetrics
Metrics related to the query performance.
inefficient_query_info google.cloud.databasecenter_v1beta.types.InefficientQueryInfo
Information about inefficient query.