system.quotas_usage
Querying in ClickHouse Cloud
このシステムテーブルのデータは、ClickHouse Cloudの各ノードにローカルで保管されています。そのため、すべてのデータの完全なビューを取得するには、clusterAllReplicas
関数が必要です。詳細については こちら をご覧ください。
所有用户的配额使用情况。
列:
quota_name
(String) — 配额名称。quota_key
(String) — 键值。is_current
(UInt8) — 当前用户的配额使用情况。start_time
(Nullable(DateTime))) — 计算资源消耗的开始时间。end_time
(Nullable(DateTime))) — 计算资源消耗的结束时间。duration
(Nullable(UInt32)) — 计算资源消耗的时间区间长度,以秒为单位。queries
(Nullable(UInt64)) — 此时间区间内的请求总数。max_queries
(Nullable(UInt64)) — 最大请求数。query_selects
(Nullable(UInt64)) — 此时间区间内的 SELECT 请求总数。max_query_selects
(Nullable(UInt64)) — 最大 SELECT 请求数。query_inserts
(Nullable(UInt64)) — 此时间区间内的 INSERT 请求总数。max_query_inserts
(Nullable(UInt64)) — 最大 INSERT 请求数。errors
(Nullable(UInt64)) — 抛出异常的查询数量。max_errors
(Nullable(UInt64)) — 最大错误数。result_rows
(Nullable(UInt64)) — 作为结果返回的总行数。max_result_rows
(Nullable(UInt64)) — 从表中读取的源行最大数。result_bytes
(Nullable(UInt64)) — 用于存储查询结果的内存量(以字节为单位)。max_result_bytes
(Nullable(UInt64)) — 用于存储查询结果的最大内存量(以字节为单位)。read_rows
(Nullable(UInt64))) — 在所有远程服务器上运行查询时,从表中读取的源行总数。max_read_rows
(Nullable(UInt64)) — 从所有表和参与查询的表函数中读取的最大行数。read_bytes
(Nullable(UInt64)) — 从所有参与查询的表和表函数中读取的字节总数。max_read_bytes
(Nullable(UInt64)) — 从所有表和表函数中读取的最大字节数。failed_sequential_authentications
(Nullable(Float64)) — 连续身份验证失败的总次数。如果用户在超过failed_sequential_authentications
阈值之前输入了正确的密码,则计数器将重置。max_failed_sequential_authentications
(Nullable(Float64)) — 最大连续身份验证失败次数。execution_time
(Nullable(UInt64)) — 查询的总执行时间,以秒为单位(墙钟时间)。max_execution_time
(Nullable(UInt64)) — 查询执行时间的最大值。