Reference documentation and code samples for the Database Center V1BETA API class Google::Cloud::DatabaseCenter::V1beta::QueryMetrics.
QueryMetrics contains the metrics related to the query execution.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#avg_cpu_time
def avg_cpu_time() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — The average execution period of the query across all runs.
#avg_cpu_time=
def avg_cpu_time=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — The average execution period of the query across all runs.
Returns
- (::Google::Protobuf::Duration) — The average execution period of the query across all runs.
#execution_count
def execution_count() -> ::Integer
Returns
- (::Integer) — The number of times the query was executed.
#execution_count=
def execution_count=(value) -> ::Integer
Parameter
- value (::Integer) — The number of times the query was executed.
Returns
- (::Integer) — The number of times the query was executed.
#metrics_window
def metrics_window() -> ::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow
Returns
- (::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow) — The window over which the metrics are aggregated.
#metrics_window=
def metrics_window=(value) -> ::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow
Parameter
- value (::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow) — The window over which the metrics are aggregated.
Returns
- (::Google::Cloud::DatabaseCenter::V1beta::QueryMetrics::MetricsWindow) — The window over which the metrics are aggregated.
#rows_processed
def rows_processed() -> ::Integer
Returns
- (::Integer) — The average number of rows processed by the query across all runs.
#rows_processed=
def rows_processed=(value) -> ::Integer
Parameter
- value (::Integer) — The average number of rows processed by the query across all runs.
Returns
- (::Integer) — The average number of rows processed by the query across all runs.
#total_cpu_time
def total_cpu_time() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — The total CPU time consumed by the query across all runs.
#total_cpu_time=
def total_cpu_time=(value) -> ::Google::Protobuf::Duration
Parameter
- value (::Google::Protobuf::Duration) — The total CPU time consumed by the query across all runs.
Returns
- (::Google::Protobuf::Duration) — The total CPU time consumed by the query across all runs.