/* 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. */ // May contain unused imports in some cases // @ts-ignore import type { PostgresqlSQLFingerprint } from './postgresql-sqlfingerprint'; /** * * @export * @interface PostgresqlSQLAnalysis */ export interface PostgresqlSQLAnalysis { /** * Data source. M1 uses pg_stat_statements only. * @type {string} * @memberof PostgresqlSQLAnalysis */ 'source': string; /** * Source status. Expected values are available or unavailable. * @type {string} * @memberof PostgresqlSQLAnalysis */ 'status': string; /** * Reason when status is unavailable, such as extension_disabled, permission_denied, or query_failed. * @type {string} * @memberof PostgresqlSQLAnalysis */ 'unavailableReason'?: string; /** * UTC timestamp reported by pg_stat_statements_info.stats_reset when available. Empty means the source did not expose this timestamp. * @type {string} * @memberof PostgresqlSQLAnalysis */ 'statsReset'?: string; /** * Backend collection timestamp in UTC. It is not a sampling-window end time. * @type {string} * @memberof PostgresqlSQLAnalysis */ 'collectedAt': string; /** * Effective row limit after backend normalization. * @type {number} * @memberof PostgresqlSQLAnalysis */ 'limit': number; /** * Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls. * @type {string} * @memberof PostgresqlSQLAnalysis */ 'orderBy': string; /** * Total execution time in milliseconds across all visible pg_stat_statements rows, not limited to the returned top-N items. Present only when the source is available. * @type {number} * @memberof PostgresqlSQLAnalysis */ 'totalTimeMsAll'?: number | null; /** * Total execution count across all visible pg_stat_statements rows, not limited to the returned top-N items. Present only when the source is available. * @type {number} * @memberof PostgresqlSQLAnalysis */ 'callsAll'?: number | null; /** * SQL fingerprint ranking rows from pg_stat_statements. The list may be empty when no statement statistics exist. * @type {Array} * @memberof PostgresqlSQLAnalysis */ 'items': Array; }