# Class QueryMetrics (0.9.0)

0.9.0 (latest) 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0

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

QueryMetrics contains the metrics related to the query
execution.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `execution_count` | `int` The number of times the query was executed. |
| `avg_cpu_time` | `google.protobuf.duration_pb2.Duration` The average execution period of the query across all runs. |
| `total_cpu_time` | `google.protobuf.duration_pb2.Duration` The total CPU time consumed by the query across all runs. |
| `rows_processed` | `int` The average number of rows processed by the query across all runs. |
| `metrics_window` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-databasecenter/latest/google.cloud.databasecenter_v1beta.types.QueryMetrics.MetricsWindow` The window over which the metrics are aggregated. |

## Classes

### MetricsWindow

    MetricsWindow(value)

Enum to represent the window over which the metrics are
aggregated.