/* tslint:disable */ /* eslint-disable */ /** * KubeBlocks Cloud API * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ /** * * @export * @interface ClickhouseSession */ export interface ClickhouseSession { /** * ClickHouse query_id. Use it with the KILL QUERY endpoint. * @type {string} * @memberof ClickhouseSession */ 'queryId': string; /** * query_id of the initial (distributed) query when this row is a remote sub-query. * @type {string} * @memberof ClickhouseSession */ 'initialQueryId'?: string; /** * User that started the query. * @type {string} * @memberof ClickhouseSession */ 'user'?: string; /** * Client address. * @type {string} * @memberof ClickhouseSession */ 'address'?: string; /** * Client port. * @type {number} * @memberof ClickhouseSession */ 'port'?: number; /** * Current database of the query. * @type {string} * @memberof ClickhouseSession */ 'database'?: string; /** * ClickHouse server host that reported the query. * @type {string} * @memberof ClickhouseSession */ 'hostName'?: string; /** * Seconds elapsed since the query started. * @type {number} * @memberof ClickhouseSession */ 'elapsedSeconds'?: number; /** * Rows read so far. * @type {number} * @memberof ClickhouseSession */ 'readRows'?: number; /** * Bytes read so far. * @type {number} * @memberof ClickhouseSession */ 'readBytes'?: number; /** * Rows written so far. * @type {number} * @memberof ClickhouseSession */ 'writtenRows'?: number; /** * Bytes written so far. * @type {number} * @memberof ClickhouseSession */ 'writtenBytes'?: number; /** * Current memory usage in bytes. * @type {number} * @memberof ClickhouseSession */ 'memoryUsageBytes'?: number; /** * max_memory_usage from the query Settings map (only explicitly modified settings). Zero means the query did not set a limit, so the server default applies. * @type {number} * @memberof ClickhouseSession */ 'memoryLimitBytes'?: number; /** * memory_usage / memoryLimitBytes (0-1). Zero when the query did not explicitly set max_memory_usage. Values close to 1 indicate the query is about to hit its memory limit. * @type {number} * @memberof ClickhouseSession */ 'memoryUsageRatio'?: number; /** * Peak memory usage in bytes. Zero when the server version does not expose peak_memory_usage. * @type {number} * @memberof ClickhouseSession */ 'peakMemoryUsageBytes'?: number; /** * Whether this row is the initial query rather than a remote sub-query. * @type {boolean} * @memberof ClickhouseSession */ 'isInitialQuery'?: boolean; /** * Estimated query start time in RFC3339 UTC, computed from elapsed because system.processes has no start timestamp. * @type {string} * @memberof ClickhouseSession */ 'queryStartTime'?: string; /** * Query text with string and numeric literals and comments masked as ? before returning. * @type {string} * @memberof ClickhouseSession */ 'query'?: string; /** * Single-line masked query summary suitable for list rendering. * @type {string} * @memberof ClickhouseSession */ 'querySummary'?: string; }