/** * Admin API * The Admin API is used to manage the ApeCloud platform. * * 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. */ 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; } //# sourceMappingURL=postgresql-sqlanalysis.d.ts.map