Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::QueryStats.
QueryStats contains the stats for a particular combination of query_hash, query_string and resource_type.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#inefficient_query_info
def inefficient_query_info() -> ::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo
Returns
- (::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo) — Information about inefficient query.
#inefficient_query_info=
def inefficient_query_info=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo
Parameter
- value (::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo) — Information about inefficient query.
Returns
- (::Google::Cloud::DatabaseCenter::V1beta::InefficientQueryInfo) — Information about inefficient query.
#normalized_query
def normalized_query() -> ::String
Returns
- (::String) — The query string is normalized query without any PII data.
#normalized_query=
def normalized_query=(value) -> ::String
Parameter
- value (::String) — The query string is normalized query without any PII data.
Returns
- (::String) — The query string is normalized query without any PII data.
#query_hash
def query_hash() -> ::String
Returns
- (::String) — The query hash of the query.
#query_hash=
def query_hash=(value) -> ::String
Parameter
- value (::String) — The query hash of the query.
Returns
- (::String) — The query hash of the query.
#query_metrics
def query_metrics() -> ::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics
Returns
- (::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics) — Metrics related to the query performance.
#query_metrics=
def query_metrics=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics
Parameter
- value (::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics) — Metrics related to the query performance.
Returns
- (::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics) — Metrics related to the query performance.
#resource_ids
def resource_ids() -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>
Returns
- (::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>) — The resource ids for which the query stats are collected.
#resource_ids=
def resource_ids=(value) -> ::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>
Parameter
- value (::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>) — The resource ids for which the query stats are collected.
Returns
- (::Array<::Google::Cloud::DatabaseCenter::V1beta::ResourceId>) — The resource ids for which the query stats are collected.
#resource_type
def resource_type() -> ::String
Returns
- (::String) — The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
#resource_type=
def resource_type=(value) -> ::String
Parameter
- value (::String) — The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance
Returns
- (::String) — The type of the resource. sqladmin.googleapis.com/Instance alloydb.googleapis.com/Cluster alloydb.googleapis.com/Instance