/* tslint:disable */ /* eslint-disable */ /** * 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. */ // May contain unused imports in some cases // @ts-ignore import type { MysqlSQLFingerprint } from './mysql-sqlfingerprint'; /** * * @export * @interface MysqlSQLAnalysis */ export interface MysqlSQLAnalysis { /** * Data source. M1 uses performance_schema.events_statements_summary_by_digest. * @type {string} * @memberof MysqlSQLAnalysis */ 'source': string; /** * Source status. Expected values are available or unavailable. * @type {string} * @memberof MysqlSQLAnalysis */ 'status': string; /** * Reason when status is unavailable, such as performance_schema_disabled, digest_consumer_disabled, permission_denied, or query_failed. * @type {string} * @memberof MysqlSQLAnalysis */ 'unavailableReason'?: string; /** * User-facing recovery guidance when SQL analysis is unavailable. * @type {string} * @memberof MysqlSQLAnalysis */ 'message'?: string; /** * Backend collection timestamp in UTC. It is not a sampling-window end time. * @type {string} * @memberof MysqlSQLAnalysis */ 'collectedAt': string; /** * Earliest FIRST_SEEN timestamp across currently visible digest rows, when available. * @type {string} * @memberof MysqlSQLAnalysis */ 'firstSeen'?: string; /** * Latest LAST_SEEN timestamp across currently visible digest rows, when available. * @type {string} * @memberof MysqlSQLAnalysis */ 'lastSeen'?: string; /** * Effective row limit after backend normalization. * @type {number} * @memberof MysqlSQLAnalysis */ 'limit': number; /** * Effective sort key. Expected values are totalTime, meanTime, maxTime, or calls. * @type {string} * @memberof MysqlSQLAnalysis */ 'orderBy': string; /** * Total execution time in milliseconds across all visible digest rows, not limited to the returned top-N items. * @type {number} * @memberof MysqlSQLAnalysis */ 'totalTimeMsAll'?: number | null; /** * Total execution count across all visible digest rows, not limited to the returned top-N items. * @type {number} * @memberof MysqlSQLAnalysis */ 'callsAll'?: number | null; /** * Number of statement digests not recorded because the digest table was full, when exposed by the server. * @type {number} * @memberof MysqlSQLAnalysis */ 'digestLost'?: number | null; /** * SQL fingerprint ranking rows from Performance Schema. The list may be empty when no statement statistics exist. * @type {Array} * @memberof MysqlSQLAnalysis */ 'items': Array; }