/* 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. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; // @ts-ignore import type { APIErrorResponse } from '../models'; // @ts-ignore import type { ClickhouseClusterHealth } from '../models'; // @ts-ignore import type { ClickhouseSQLAnalysis } from '../models'; // @ts-ignore import type { ClickhouseSessionList } from '../models'; // @ts-ignore import type { ClickhouseSpaceAnalysis } from '../models'; // @ts-ignore import type { DamengLockAnalysis } from '../models'; // @ts-ignore import type { DamengSQLAnalysis } from '../models'; // @ts-ignore import type { DamengSessionDetail } from '../models'; // @ts-ignore import type { DamengSessionListItem } from '../models'; // @ts-ignore import type { DamengSpaceAnalysis } from '../models'; // @ts-ignore import type { ElasticsearchAllocationExplanation } from '../models'; // @ts-ignore import type { ElasticsearchHotThreadsType } from '../models'; // @ts-ignore import type { ElasticsearchIndexSortBy } from '../models'; // @ts-ignore import type { ElasticsearchRecoveryList } from '../models'; // @ts-ignore import type { ElasticsearchShardList } from '../models'; // @ts-ignore import type { ElasticsearchShardState } from '../models'; // @ts-ignore import type { ElasticsearchSortOrder } from '../models'; // @ts-ignore import type { ElasticsearchStorageAnalysis } from '../models'; // @ts-ignore import type { ElasticsearchTaskAnalysis } from '../models'; // @ts-ignore import type { KingbaseLockAnalysis } from '../models'; // @ts-ignore import type { KingbaseSessionDetail } from '../models'; // @ts-ignore import type { KingbaseSessionList } from '../models'; // @ts-ignore import type { MssqlCachedPlan } from '../models'; // @ts-ignore import type { MssqlLockSnapshot } from '../models'; // @ts-ignore import type { MssqlSQLAnalysis } from '../models'; // @ts-ignore import type { MssqlSQLOrder } from '../models'; // @ts-ignore import type { MssqlSession } from '../models'; // @ts-ignore import type { MssqlSessionSnapshot } from '../models'; // @ts-ignore import type { MssqlSpaceAnalysis } from '../models'; // @ts-ignore import type { MysqlSQLAnalysis } from '../models'; // @ts-ignore import type { MysqlSpaceAnalysis } from '../models'; // @ts-ignore import type { PerformanceTrends } from '../models'; // @ts-ignore import type { PostgresqlLockAnalysis } from '../models'; // @ts-ignore import type { PostgresqlSQLAnalysis } from '../models'; // @ts-ignore import type { PostgresqlSQLFingerprintExplainResponse } from '../models'; // @ts-ignore import type { PostgresqlSession } from '../models'; // @ts-ignore import type { PostgresqlSpaceAnalysis } from '../models'; /** * DiagnosticsApi - axios parameter creator * @export */ export const DiagnosticsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @summary Explain Elasticsearch shard allocation * @param {string} orgName * @param {string} clusterName * @param {string} index * @param {number} shard * @param {boolean} primary * @param {string} [currentNode] * @param {*} [options] Override http request option. * @throws {RequiredError} */ explainDiagnosticsElasticsearchAllocation: async (orgName: string, clusterName: string, index: string, shard: number, primary: boolean, currentNode?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('explainDiagnosticsElasticsearchAllocation', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('explainDiagnosticsElasticsearchAllocation', 'clusterName', clusterName) // verify required parameter 'index' is not null or undefined assertParamExists('explainDiagnosticsElasticsearchAllocation', 'index', index) // verify required parameter 'shard' is not null or undefined assertParamExists('explainDiagnosticsElasticsearchAllocation', 'shard', shard) // verify required parameter 'primary' is not null or undefined assertParamExists('explainDiagnosticsElasticsearchAllocation', 'primary', primary) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/allocationExplain` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (index !== undefined) { localVarQueryParameter['index'] = index; } if (shard !== undefined) { localVarQueryParameter['shard'] = shard; } if (primary !== undefined) { localVarQueryParameter['primary'] = primary; } if (currentNode !== undefined) { localVarQueryParameter['currentNode'] = currentNode; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan. * @summary Explain PostgreSQL SQL fingerprint * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} queryID PostgreSQL pg_stat_statements queryid represented as a string. * @param {string} database Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement. * @param {string} user Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement. * @param {boolean} topLevel Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel. * @param {string} [fingerprint] Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid. * @param {*} [options] Override http request option. * @throws {RequiredError} */ explainDiagnosticsPostgresqlSQLFingerprint: async (orgName: string, clusterName: string, queryID: string, database: string, user: string, topLevel: boolean, fingerprint?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'clusterName', clusterName) // verify required parameter 'queryID' is not null or undefined assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'queryID', queryID) // verify required parameter 'database' is not null or undefined assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'database', database) // verify required parameter 'user' is not null or undefined assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'user', user) // verify required parameter 'topLevel' is not null or undefined assertParamExists('explainDiagnosticsPostgresqlSQLFingerprint', 'topLevel', topLevel) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sqlAnalysis/queries/{queryID}/explain` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"queryID"}}`, encodeURIComponent(String(queryID))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (database !== undefined) { localVarQueryParameter['database'] = database; } if (user !== undefined) { localVarQueryParameter['user'] = user; } if (topLevel !== undefined) { localVarQueryParameter['topLevel'] = topLevel; } if (fingerprint !== undefined) { localVarQueryParameter['fingerprint'] = fingerprint; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Analyze system.replicas and system.clusters. Returns replication delay, Keeper queue backlog, readonly/session-expired replicas and shard/replica topology with per-node connection errors. Replica rows are collected through clusterAllReplicas, while the topology is read from the connected node\'s system.clusters view. * @summary Get ClickHouse replica and cluster health * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsClickhouseClusterHealth: async (orgName: string, clusterName: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsClickhouseClusterHealth', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsClickhouseClusterHealth', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/clusterHealth` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Analyze system.query_log for the selected range. Only initial queries (is_initial_query = 1) are counted so distributed child queries are not double counted. Returns the slowest queries by query_duration_ms, query patterns grouped by normalized_query_hash, and failed queries (ExceptionWhileProcessing) with exception_code. When log_queries is disabled or system.query_log is missing, the endpoint returns status=unavailable together with guidance instead of failing. * @summary Get ClickHouse SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Time range based on query_log event_time. Defaults to 24h. Allowed values: 1h, 6h, 24h, 7d. * @param {number} [limit] Maximum number of entries per list. Defaults to 20 and is capped at 200. * @param {string} [orderBy] Pattern ordering metric. Defaults to totalDuration. Allowed values: totalDuration, meanDuration, maxDuration, calls, memory, readRows, failures. * @param {string} [database] Filter by current_database. Omit or empty = all databases. * @param {string} [user] Filter by ClickHouse user. Omit or empty = all users. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsClickhouseSQLAnalysis: async (orgName: string, clusterName: string, range?: string, limit?: number, orderBy?: string, database?: string, user?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsClickhouseSQLAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsClickhouseSQLAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/sqlAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (range !== undefined) { localVarQueryParameter['range'] = range; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } if (database !== undefined) { localVarQueryParameter['database'] = database; } if (user !== undefined) { localVarQueryParameter['user'] = user; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Analyze system.parts, system.merges and system.mutations across the cluster. Returns table and partition level disk usage, compression efficiency, per-disk and per-host distribution, part explosion risk (parts_to_delay_insert / parts_to_throw_insert), running merges and unfinished mutations. * @summary Get ClickHouse space analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [database] Filter by database. Omit or empty = all databases. * @param {number} [tableLimit] Maximum number of top tables. Defaults to 20 and is capped at 200. * @param {number} [partitionLimit] Maximum number of top partitions. Defaults to 20 and is capped at 200. * @param {number} [mergeLimit] Maximum number of merges and unfinished mutations. Defaults to 20 and is capped at 200. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsClickhouseSpaceAnalysis: async (orgName: string, clusterName: string, database?: string, tableLimit?: number, partitionLimit?: number, mergeLimit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsClickhouseSpaceAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsClickhouseSpaceAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/spaceAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (database !== undefined) { localVarQueryParameter['database'] = database; } if (tableLimit !== undefined) { localVarQueryParameter['tableLimit'] = tableLimit; } if (partitionLimit !== undefined) { localVarQueryParameter['partitionLimit'] = partitionLimit; } if (mergeLimit !== undefined) { localVarQueryParameter['mergeLimit'] = mergeLimit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions. * @summary Get Dameng SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL entries per category. Defaults to 20. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsDamengSQLAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsDamengSQLAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sqlAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details. * @summary Get Dameng session detail * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} sessionId Dameng session ID (SESS_ID) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSession: async (orgName: string, clusterName: string, sessionId: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsDamengSession', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsDamengSession', 'clusterName', clusterName) // verify required parameter 'sessionId' is not null or undefined assertParamExists('getDiagnosticsDamengSession', 'sessionId', sessionId) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details. * @summary Get Dameng session lock analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} sessionId Dameng session ID (SESS_ID) * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSessionLockAnalysis: async (orgName: string, clusterName: string, sessionId: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsDamengSessionLockAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsDamengSessionLockAnalysis', 'clusterName', clusterName) // verify required parameter 'sessionId' is not null or undefined assertParamExists('getDiagnosticsDamengSessionLockAnalysis', 'sessionId', sessionId) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions/{sessionId}/lockAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS. * @summary Get Dameng space analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [tableLimit] Maximum number of top tables to return (0 or omitted = not collected) * @param {number} [indexLimit] Maximum number of top indexes to return (0 or omitted = not collected) * @param {string} [schema] Filter tables and indexes by schema (owner). Omit or empty = all schemas. * @param {boolean} [skipBasic] Set to true to skip tablespace and schema queries, returning only tables and indexes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSpaceAnalysis: async (orgName: string, clusterName: string, tableLimit?: number, indexLimit?: number, schema?: string, skipBasic?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsDamengSpaceAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsDamengSpaceAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/spaceAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (tableLimit !== undefined) { localVarQueryParameter['tableLimit'] = tableLimit; } if (indexLimit !== undefined) { localVarQueryParameter['indexLimit'] = indexLimit; } if (schema !== undefined) { localVarQueryParameter['schema'] = schema; } if (skipBasic !== undefined) { localVarQueryParameter['skipBasic'] = skipBasic; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get Elasticsearch storage and index analysis * @param {string} orgName * @param {string} clusterName * @param {string} [node] * @param {string} [index] * @param {ElasticsearchIndexSortBy} [sortBy] * @param {ElasticsearchSortOrder} [sortOrder] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsElasticsearchStorageAnalysis: async (orgName: string, clusterName: string, node?: string, index?: string, sortBy?: ElasticsearchIndexSortBy, sortOrder?: ElasticsearchSortOrder, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsElasticsearchStorageAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsElasticsearchStorageAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/storageAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (node !== undefined) { localVarQueryParameter['node'] = node; } if (index !== undefined) { localVarQueryParameter['index'] = index; } if (sortBy !== undefined) { localVarQueryParameter['sortBy'] = sortBy; } if (sortOrder !== undefined) { localVarQueryParameter['sortOrder'] = sortOrder; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get Elasticsearch task and hot-thread analysis * @param {string} orgName * @param {string} clusterName * @param {ElasticsearchHotThreadsType} [type] * @param {string} [node] * @param {number} [taskLimit] * @param {number} [threads] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsElasticsearchTaskAnalysis: async (orgName: string, clusterName: string, type?: ElasticsearchHotThreadsType, node?: string, taskLimit?: number, threads?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsElasticsearchTaskAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsElasticsearchTaskAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/taskAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (type !== undefined) { localVarQueryParameter['type'] = type; } if (node !== undefined) { localVarQueryParameter['node'] = node; } if (taskLimit !== undefined) { localVarQueryParameter['taskLimit'] = taskLimit; } if (threads !== undefined) { localVarQueryParameter['threads'] = threads; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get read-only Kingbase performance trends from backend-owned metrics. The response covers resource, connection, workload, database, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. V9 queries.perSecond requires track_sql=on and track_sql_item either empty (all items) or containing the complete sqltime item. Each QPS sample must have matching settings from the same scrape target and timestamp; disabled, missing, stale, or conflicting settings exclude that sample from both series and summaries. V8 QPS does not depend on these V9 settings. Unknown or unverified major versions (including V10) omit QPS without querying it. An absent QPS series means collection availability cannot be confirmed; it does not mean zero load or prove that SQL tracking is disabled. Check the database version, SQL tracking settings, and collection of same-scrape settings metrics. Source success describes queries with displayable results, not the availability of every metric. Empty metrics do not produce query-failure warnings. xid.age, database.sizeBytes, and locks.observedSessionCount cover user databases only, excluding esrep, kingbase, security, template0, template1, and empty or placeholder (-) database names. xid.age is not an instance-wide wraparound safety check: system database ages are not shown. Its 150M/180M warning/critical thresholds are static references, not the cluster\'s freeze settings or database limits. * @summary Get Kingbase performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. For range 7d, step must be at least 5m; the default is 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsKingbasePerformanceTrends: async (orgName: string, clusterName: string, range?: string, step?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsKingbasePerformanceTrends', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsKingbasePerformanceTrends', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/performanceTrends` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (range !== undefined) { localVarQueryParameter['range'] = range; } if (step !== undefined) { localVarQueryParameter['step'] = step; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get Kingbase session diagnostics * @param {string} orgName * @param {string} clusterName * @param {number} pid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsKingbaseSession: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsKingbaseSession', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsKingbaseSession', 'clusterName', clusterName) // verify required parameter 'pid' is not null or undefined assertParamExists('getDiagnosticsKingbaseSession', 'pid', pid) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions/{pid}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"pid"}}`, encodeURIComponent(String(pid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Returns the selected session and its direct lock rows from the current snapshot. * @summary Get Kingbase session lock analysis * @param {string} orgName * @param {string} clusterName * @param {number} pid * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsKingbaseSessionLockAnalysis: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsKingbaseSessionLockAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsKingbaseSessionLockAnalysis', 'clusterName', clusterName) // verify required parameter 'pid' is not null or undefined assertParamExists('getDiagnosticsKingbaseSessionLockAnalysis', 'pid', pid) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions/{pid}/lockAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"pid"}}`, encodeURIComponent(String(pid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get read-only MariaDB performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MariaDB performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMariaDBPerformanceTrends: async (orgName: string, clusterName: string, range?: string, step?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMariaDBPerformanceTrends', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMariaDBPerformanceTrends', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mariadb/performanceTrends` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (range !== undefined) { localVarQueryParameter['range'] = range; } if (step !== undefined) { localVarQueryParameter['step'] = step; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only MariaDB SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MariaDB SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMariaDBSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMariaDBSQLAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMariaDBSQLAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mariadb/sqlAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only MariaDB compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MariaDB space analysis * @param {string} orgName * @param {string} clusterName * @param {string} [databaseName] Optional database name for table and index details. When omitted, the largest non-system database is selected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMariaDBSpaceAnalysis: async (orgName: string, clusterName: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMariaDBSpaceAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMariaDBSpaceAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mariadb/spaceAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (databaseName !== undefined) { localVarQueryParameter['databaseName'] = databaseName; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get read-only MongoDB performance trends from backend-owned metrics. The response covers resource, connection, operation, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. * @summary Get MongoDB performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMongoDBPerformanceTrends: async (orgName: string, clusterName: string, range?: string, step?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMongoDBPerformanceTrends', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMongoDBPerformanceTrends', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mongodb/performanceTrends` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (range !== undefined) { localVarQueryParameter['range'] = range; } if (step !== undefined) { localVarQueryParameter['step'] = step; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List SQL Server TOP SQL from the plan cache * @param {string} orgName * @param {string} clusterName * @param {string} [database] * @param {number} [limit] * @param {MssqlSQLOrder} [orderBy] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSQLAnalysis: async (orgName: string, clusterName: string, database?: string, limit?: number, orderBy?: MssqlSQLOrder, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMssqlSQLAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMssqlSQLAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sqlAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (database !== undefined) { localVarQueryParameter['database'] = database; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Read the cached compiled plan of a ranked SQL statement * @param {string} orgName * @param {string} clusterName * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSQLPlan: async (orgName: string, clusterName: string, id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMssqlSQLPlan', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMssqlSQLPlan', 'clusterName', clusterName) // verify required parameter 'id' is not null or undefined assertParamExists('getDiagnosticsMssqlSQLPlan', 'id', id) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sqlAnalysis/cachedPlan` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (id !== undefined) { localVarQueryParameter['id'] = id; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get a SQL Server session * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSession: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMssqlSession', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMssqlSession', 'clusterName', clusterName) // verify required parameter 'sessionId' is not null or undefined assertParamExists('getDiagnosticsMssqlSession', 'sessionId', sessionId) // verify required parameter 'startedAt' is not null or undefined assertParamExists('getDiagnosticsMssqlSession', 'startedAt', startedAt) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (startedAt !== undefined) { localVarQueryParameter['startedAt'] = startedAt; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Read the cached compiled plan of a live SQL Server request * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {number} requestId * @param {string} requestStart * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSessionCachedPlan: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, requestId: number, requestStart: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'clusterName', clusterName) // verify required parameter 'sessionId' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'sessionId', sessionId) // verify required parameter 'startedAt' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'startedAt', startedAt) // verify required parameter 'requestId' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'requestId', requestId) // verify required parameter 'requestStart' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionCachedPlan', 'requestStart', requestStart) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}/requests/{requestId}/cachedPlan` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))) .replace(`{${"requestId"}}`, encodeURIComponent(String(requestId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (startedAt !== undefined) { localVarQueryParameter['startedAt'] = startedAt; } if (requestStart !== undefined) { localVarQueryParameter['requestStart'] = requestStart; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Get SQL Server blocking and locks * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSessionLockAnalysis: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'clusterName', clusterName) // verify required parameter 'sessionId' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'sessionId', sessionId) // verify required parameter 'startedAt' is not null or undefined assertParamExists('getDiagnosticsMssqlSessionLockAnalysis', 'startedAt', startedAt) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}/lockAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (startedAt !== undefined) { localVarQueryParameter['startedAt'] = startedAt; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary Analyze SQL Server database and table space * @param {string} orgName * @param {string} clusterName * @param {string} [database] * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSpaceAnalysis: async (orgName: string, clusterName: string, database?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMssqlSpaceAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMssqlSpaceAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/spaceAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (database !== undefined) { localVarQueryParameter['database'] = database; } if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MySQL performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMysqlPerformanceTrends: async (orgName: string, clusterName: string, range?: string, step?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMysqlPerformanceTrends', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMysqlPerformanceTrends', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/performanceTrends` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (range !== undefined) { localVarQueryParameter['range'] = range; } if (step !== undefined) { localVarQueryParameter['step'] = step; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MySQL SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMysqlSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMysqlSQLAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMysqlSQLAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/sqlAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MySQL space analysis * @param {string} orgName * @param {string} clusterName * @param {string} [databaseName] Optional database name for table and index details. When omitted, the largest non-system database is selected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMysqlSpaceAnalysis: async (orgName: string, clusterName: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsMysqlSpaceAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsMysqlSpaceAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mysql/spaceAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (databaseName !== undefined) { localVarQueryParameter['databaseName'] = databaseName; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions. * @summary Get PostgreSQL performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. Defaults to 1m for 1h, 5m for 6h, 15m for 24h, and 1h for 7d. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlPerformanceTrends: async (orgName: string, clusterName: string, range?: string, step?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlPerformanceTrends', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlPerformanceTrends', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/performanceTrends` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (range !== undefined) { localVarQueryParameter['range'] = range; } if (step !== undefined) { localVarQueryParameter['step'] = step; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only PostgreSQL SQL fingerprint ranking from pg_stat_statements. The response does not expose full SQL text, time-window aggregation, summary cards, slow-log relation, execution plans, or remediation actions. * @summary Get PostgreSQL SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSQLAnalysis: async (orgName: string, clusterName: string, limit?: number, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSQLAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSQLAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sqlAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get one PostgreSQL session basic diagnostics record by backend pid. * @summary Get PostgreSQL session basic diagnostics * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} pid PostgreSQL backend process id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSession: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSession', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSession', 'clusterName', clusterName) // verify required parameter 'pid' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSession', 'pid', pid) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"pid"}}`, encodeURIComponent(String(pid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot. * @summary Get PostgreSQL session lock analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} pid PostgreSQL backend process id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSessionLockAnalysis: async (orgName: string, clusterName: string, pid: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSessionLockAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSessionLockAnalysis', 'clusterName', clusterName) // verify required parameter 'pid' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSessionLockAnalysis', 'pid', pid) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}/lockAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"pid"}}`, encodeURIComponent(String(pid))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions. * @summary Get PostgreSQL space analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [databaseName] Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSpaceAnalysis: async (orgName: string, clusterName: string, databaseName?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('getDiagnosticsPostgresqlSpaceAnalysis', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/spaceAnalysis` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (databaseName !== undefined) { localVarQueryParameter['databaseName'] = databaseName; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Terminate a running query by query_id. In cluster mode KILL QUERY ON CLUSTER is used so the initial query and its remote sub-queries are terminated together; otherwise KILL QUERY runs on the connected node. * @summary Kill a ClickHouse query * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} queryId ClickHouse query_id to terminate. * @param {*} [options] Override http request option. * @throws {RequiredError} */ killDiagnosticsClickhouseQuery: async (orgName: string, clusterName: string, queryId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('killDiagnosticsClickhouseQuery', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('killDiagnosticsClickhouseQuery', 'clusterName', clusterName) // verify required parameter 'queryId' is not null or undefined assertParamExists('killDiagnosticsClickhouseQuery', 'queryId', queryId) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/sessions/{queryId}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"queryId"}}`, encodeURIComponent(String(queryId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * Rechecks startedAt before issuing KILL. Open transactions may roll back asynchronously. Never retry this operation automatically. * @summary Terminate the selected SQL Server user session * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {*} [options] Override http request option. * @throws {RequiredError} */ killDiagnosticsMssqlSession: async (orgName: string, clusterName: string, sessionId: number, startedAt: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('killDiagnosticsMssqlSession', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('killDiagnosticsMssqlSession', 'clusterName', clusterName) // verify required parameter 'sessionId' is not null or undefined assertParamExists('killDiagnosticsMssqlSession', 'sessionId', sessionId) // verify required parameter 'startedAt' is not null or undefined assertParamExists('killDiagnosticsMssqlSession', 'startedAt', startedAt) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions/{sessionId}` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))) .replace(`{${"sessionId"}}`, encodeURIComponent(String(sessionId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (startedAt !== undefined) { localVarQueryParameter['startedAt'] = startedAt; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List active queries from system.processes across every shard and replica via clusterAllReplicas. Returns elapsed time, current and peak memory usage, read/write progress and the server host for each query so long-running or memory-heavy queries can be located quickly. The diagnostics query itself is excluded from the result. * @summary List active ClickHouse queries * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of queries to return. Defaults to 100 and is capped at 1000. * @param {string} [orderBy] Sort metric. Defaults to elapsed. Allowed values: elapsed, memoryUsage, memoryUsageRatio, peakMemoryUsage, readRows, readBytes. * @param {string} [database] Filter by current database. Omit or empty = all databases. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsClickhouseSessions: async (orgName: string, clusterName: string, limit?: number, orderBy?: string, database?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsClickhouseSessions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsClickhouseSessions', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/clickhouse/sessions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (orderBy !== undefined) { localVarQueryParameter['orderBy'] = orderBy; } if (database !== undefined) { localVarQueryParameter['database'] = database; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more. * @summary List Dameng sessions * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of sessions to return. Defaults to 200. * @param {string} [state] Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsDamengSessions: async (orgName: string, clusterName: string, limit?: number, state?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsDamengSessions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsDamengSessions', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/dameng/sessions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (state !== undefined) { localVarQueryParameter['state'] = state; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List active Elasticsearch shard recoveries * @param {string} orgName * @param {string} clusterName * @param {string} [index] Index name or pattern * @param {string} [node] Exact target node ID or name * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsElasticsearchRecoveries: async (orgName: string, clusterName: string, index?: string, node?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsElasticsearchRecoveries', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsElasticsearchRecoveries', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/recoveries` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (index !== undefined) { localVarQueryParameter['index'] = index; } if (node !== undefined) { localVarQueryParameter['node'] = node; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List Elasticsearch shards * @param {string} orgName * @param {string} clusterName * @param {string} [index] Index name or pattern * @param {string} [node] Exact node ID or name * @param {ElasticsearchShardState} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsElasticsearchShards: async (orgName: string, clusterName: string, index?: string, node?: string, state?: ElasticsearchShardState, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsElasticsearchShards', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsElasticsearchShards', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/elasticsearch/shards` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (index !== undefined) { localVarQueryParameter['index'] = index; } if (node !== undefined) { localVarQueryParameter['node'] = node; } if (state !== undefined) { localVarQueryParameter['state'] = state; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List Kingbase session diagnostics * @param {string} orgName * @param {string} clusterName * @param {number} [limit] Maximum number of sessions to return. Defaults to 200. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsKingbaseSessions: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsKingbaseSessions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsKingbaseSessions', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/kingbase/sessions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @summary List SQL Server sessions * @param {string} orgName * @param {string} clusterName * @param {number} [limit] * @param {boolean} [activeOnly] * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsMssqlSessions: async (orgName: string, clusterName: string, limit?: number, activeOnly?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsMssqlSessions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsMssqlSessions', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/mssql/sessions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } if (activeOnly !== undefined) { localVarQueryParameter['activeOnly'] = activeOnly; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows. * @summary List PostgreSQL session basic diagnostics * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of sessions to return. When omitted, the API returns the complete point-in-time session snapshot. When provided, the value must be positive. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsPostgresqlSessions: async (orgName: string, clusterName: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'orgName' is not null or undefined assertParamExists('listDiagnosticsPostgresqlSessions', 'orgName', orgName) // verify required parameter 'clusterName' is not null or undefined assertParamExists('listDiagnosticsPostgresqlSessions', 'clusterName', clusterName) const localVarPath = `/api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions` .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName))) .replace(`{${"clusterName"}}`, encodeURIComponent(String(clusterName))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication BearerToken required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) // authentication DigestAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (limit !== undefined) { localVarQueryParameter['limit'] = limit; } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * DiagnosticsApi - functional programming interface * @export */ export const DiagnosticsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = DiagnosticsApiAxiosParamCreator(configuration) return { /** * * @summary Explain Elasticsearch shard allocation * @param {string} orgName * @param {string} clusterName * @param {string} index * @param {number} shard * @param {boolean} primary * @param {string} [currentNode] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async explainDiagnosticsElasticsearchAllocation(orgName: string, clusterName: string, index: string, shard: number, primary: boolean, currentNode?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.explainDiagnosticsElasticsearchAllocation(orgName, clusterName, index, shard, primary, currentNode, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.explainDiagnosticsElasticsearchAllocation']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan. * @summary Explain PostgreSQL SQL fingerprint * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} queryID PostgreSQL pg_stat_statements queryid represented as a string. * @param {string} database Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement. * @param {string} user Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement. * @param {boolean} topLevel Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel. * @param {string} [fingerprint] Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async explainDiagnosticsPostgresqlSQLFingerprint(orgName: string, clusterName: string, queryID: string, database: string, user: string, topLevel: boolean, fingerprint?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.explainDiagnosticsPostgresqlSQLFingerprint(orgName, clusterName, queryID, database, user, topLevel, fingerprint, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.explainDiagnosticsPostgresqlSQLFingerprint']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Analyze system.replicas and system.clusters. Returns replication delay, Keeper queue backlog, readonly/session-expired replicas and shard/replica topology with per-node connection errors. Replica rows are collected through clusterAllReplicas, while the topology is read from the connected node\'s system.clusters view. * @summary Get ClickHouse replica and cluster health * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsClickhouseClusterHealth(orgName: string, clusterName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsClickhouseClusterHealth(orgName, clusterName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsClickhouseClusterHealth']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Analyze system.query_log for the selected range. Only initial queries (is_initial_query = 1) are counted so distributed child queries are not double counted. Returns the slowest queries by query_duration_ms, query patterns grouped by normalized_query_hash, and failed queries (ExceptionWhileProcessing) with exception_code. When log_queries is disabled or system.query_log is missing, the endpoint returns status=unavailable together with guidance instead of failing. * @summary Get ClickHouse SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Time range based on query_log event_time. Defaults to 24h. Allowed values: 1h, 6h, 24h, 7d. * @param {number} [limit] Maximum number of entries per list. Defaults to 20 and is capped at 200. * @param {string} [orderBy] Pattern ordering metric. Defaults to totalDuration. Allowed values: totalDuration, meanDuration, maxDuration, calls, memory, readRows, failures. * @param {string} [database] Filter by current_database. Omit or empty = all databases. * @param {string} [user] Filter by ClickHouse user. Omit or empty = all users. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsClickhouseSQLAnalysis(orgName: string, clusterName: string, range?: string, limit?: number, orderBy?: string, database?: string, user?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsClickhouseSQLAnalysis(orgName, clusterName, range, limit, orderBy, database, user, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsClickhouseSQLAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Analyze system.parts, system.merges and system.mutations across the cluster. Returns table and partition level disk usage, compression efficiency, per-disk and per-host distribution, part explosion risk (parts_to_delay_insert / parts_to_throw_insert), running merges and unfinished mutations. * @summary Get ClickHouse space analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [database] Filter by database. Omit or empty = all databases. * @param {number} [tableLimit] Maximum number of top tables. Defaults to 20 and is capped at 200. * @param {number} [partitionLimit] Maximum number of top partitions. Defaults to 20 and is capped at 200. * @param {number} [mergeLimit] Maximum number of merges and unfinished mutations. Defaults to 20 and is capped at 200. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsClickhouseSpaceAnalysis(orgName: string, clusterName: string, database?: string, tableLimit?: number, partitionLimit?: number, mergeLimit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsClickhouseSpaceAnalysis(orgName, clusterName, database, tableLimit, partitionLimit, mergeLimit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsClickhouseSpaceAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions. * @summary Get Dameng SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL entries per category. Defaults to 20. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsDamengSQLAnalysis(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSQLAnalysis(orgName, clusterName, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSQLAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details. * @summary Get Dameng session detail * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} sessionId Dameng session ID (SESS_ID) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsDamengSession(orgName: string, clusterName: string, sessionId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSession(orgName, clusterName, sessionId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details. * @summary Get Dameng session lock analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} sessionId Dameng session ID (SESS_ID) * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsDamengSessionLockAnalysis(orgName: string, clusterName: string, sessionId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSessionLockAnalysis(orgName, clusterName, sessionId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSessionLockAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS. * @summary Get Dameng space analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [tableLimit] Maximum number of top tables to return (0 or omitted = not collected) * @param {number} [indexLimit] Maximum number of top indexes to return (0 or omitted = not collected) * @param {string} [schema] Filter tables and indexes by schema (owner). Omit or empty = all schemas. * @param {boolean} [skipBasic] Set to true to skip tablespace and schema queries, returning only tables and indexes. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsDamengSpaceAnalysis(orgName: string, clusterName: string, tableLimit?: number, indexLimit?: number, schema?: string, skipBasic?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsDamengSpaceAnalysis(orgName, clusterName, tableLimit, indexLimit, schema, skipBasic, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsDamengSpaceAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get Elasticsearch storage and index analysis * @param {string} orgName * @param {string} clusterName * @param {string} [node] * @param {string} [index] * @param {ElasticsearchIndexSortBy} [sortBy] * @param {ElasticsearchSortOrder} [sortOrder] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsElasticsearchStorageAnalysis(orgName: string, clusterName: string, node?: string, index?: string, sortBy?: ElasticsearchIndexSortBy, sortOrder?: ElasticsearchSortOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsElasticsearchStorageAnalysis(orgName, clusterName, node, index, sortBy, sortOrder, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsElasticsearchStorageAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get Elasticsearch task and hot-thread analysis * @param {string} orgName * @param {string} clusterName * @param {ElasticsearchHotThreadsType} [type] * @param {string} [node] * @param {number} [taskLimit] * @param {number} [threads] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsElasticsearchTaskAnalysis(orgName: string, clusterName: string, type?: ElasticsearchHotThreadsType, node?: string, taskLimit?: number, threads?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsElasticsearchTaskAnalysis(orgName, clusterName, type, node, taskLimit, threads, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsElasticsearchTaskAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get read-only Kingbase performance trends from backend-owned metrics. The response covers resource, connection, workload, database, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. V9 queries.perSecond requires track_sql=on and track_sql_item either empty (all items) or containing the complete sqltime item. Each QPS sample must have matching settings from the same scrape target and timestamp; disabled, missing, stale, or conflicting settings exclude that sample from both series and summaries. V8 QPS does not depend on these V9 settings. Unknown or unverified major versions (including V10) omit QPS without querying it. An absent QPS series means collection availability cannot be confirmed; it does not mean zero load or prove that SQL tracking is disabled. Check the database version, SQL tracking settings, and collection of same-scrape settings metrics. Source success describes queries with displayable results, not the availability of every metric. Empty metrics do not produce query-failure warnings. xid.age, database.sizeBytes, and locks.observedSessionCount cover user databases only, excluding esrep, kingbase, security, template0, template1, and empty or placeholder (-) database names. xid.age is not an instance-wide wraparound safety check: system database ages are not shown. Its 150M/180M warning/critical thresholds are static references, not the cluster\'s freeze settings or database limits. * @summary Get Kingbase performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. For range 7d, step must be at least 5m; the default is 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsKingbasePerformanceTrends(orgName: string, clusterName: string, range?: string, step?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsKingbasePerformanceTrends(orgName, clusterName, range, step, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsKingbasePerformanceTrends']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get Kingbase session diagnostics * @param {string} orgName * @param {string} clusterName * @param {number} pid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsKingbaseSession(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsKingbaseSession(orgName, clusterName, pid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsKingbaseSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Returns the selected session and its direct lock rows from the current snapshot. * @summary Get Kingbase session lock analysis * @param {string} orgName * @param {string} clusterName * @param {number} pid * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsKingbaseSessionLockAnalysis(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsKingbaseSessionLockAnalysis(orgName, clusterName, pid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsKingbaseSessionLockAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get read-only MariaDB performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MariaDB performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMariaDBPerformanceTrends(orgName: string, clusterName: string, range?: string, step?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMariaDBPerformanceTrends(orgName, clusterName, range, step, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMariaDBPerformanceTrends']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only MariaDB SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MariaDB SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMariaDBSQLAnalysis(orgName: string, clusterName: string, limit?: number, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMariaDBSQLAnalysis(orgName, clusterName, limit, orderBy, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMariaDBSQLAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only MariaDB compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MariaDB space analysis * @param {string} orgName * @param {string} clusterName * @param {string} [databaseName] Optional database name for table and index details. When omitted, the largest non-system database is selected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMariaDBSpaceAnalysis(orgName: string, clusterName: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMariaDBSpaceAnalysis(orgName, clusterName, databaseName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMariaDBSpaceAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get read-only MongoDB performance trends from backend-owned metrics. The response covers resource, connection, operation, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. * @summary Get MongoDB performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMongoDBPerformanceTrends(orgName: string, clusterName: string, range?: string, step?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMongoDBPerformanceTrends(orgName, clusterName, range, step, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMongoDBPerformanceTrends']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List SQL Server TOP SQL from the plan cache * @param {string} orgName * @param {string} clusterName * @param {string} [database] * @param {number} [limit] * @param {MssqlSQLOrder} [orderBy] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMssqlSQLAnalysis(orgName: string, clusterName: string, database?: string, limit?: number, orderBy?: MssqlSQLOrder, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSQLAnalysis(orgName, clusterName, database, limit, orderBy, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSQLAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Read the cached compiled plan of a ranked SQL statement * @param {string} orgName * @param {string} clusterName * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMssqlSQLPlan(orgName: string, clusterName: string, id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSQLPlan(orgName, clusterName, id, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSQLPlan']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get a SQL Server session * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMssqlSession(orgName: string, clusterName: string, sessionId: number, startedAt: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSession(orgName, clusterName, sessionId, startedAt, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Read the cached compiled plan of a live SQL Server request * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {number} requestId * @param {string} requestStart * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMssqlSessionCachedPlan(orgName: string, clusterName: string, sessionId: number, startedAt: string, requestId: number, requestStart: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSessionCachedPlan(orgName, clusterName, sessionId, startedAt, requestId, requestStart, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSessionCachedPlan']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Get SQL Server blocking and locks * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMssqlSessionLockAnalysis(orgName: string, clusterName: string, sessionId: number, startedAt: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSessionLockAnalysis(orgName, clusterName, sessionId, startedAt, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary Analyze SQL Server database and table space * @param {string} orgName * @param {string} clusterName * @param {string} [database] * @param {number} [limit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMssqlSpaceAnalysis(orgName: string, clusterName: string, database?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMssqlSpaceAnalysis(orgName, clusterName, database, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMssqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MySQL performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMysqlPerformanceTrends(orgName: string, clusterName: string, range?: string, step?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlPerformanceTrends(orgName, clusterName, range, step, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlPerformanceTrends']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MySQL SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMysqlSQLAnalysis(orgName: string, clusterName: string, limit?: number, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlSQLAnalysis(orgName, clusterName, limit, orderBy, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlSQLAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MySQL space analysis * @param {string} orgName * @param {string} clusterName * @param {string} [databaseName] Optional database name for table and index details. When omitted, the largest non-system database is selected. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsMysqlSpaceAnalysis(orgName: string, clusterName: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsMysqlSpaceAnalysis(orgName, clusterName, databaseName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsMysqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions. * @summary Get PostgreSQL performance trends * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [range] Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @param {string} [step] Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. Defaults to 1m for 1h, 5m for 6h, 15m for 24h, and 1h for 7d. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsPostgresqlPerformanceTrends(orgName: string, clusterName: string, range?: string, step?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlPerformanceTrends(orgName, clusterName, range, step, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlPerformanceTrends']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only PostgreSQL SQL fingerprint ranking from pg_stat_statements. The response does not expose full SQL text, time-window aggregation, summary cards, slow-log relation, execution plans, or remediation actions. * @summary Get PostgreSQL SQL analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @param {string} [orderBy] Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsPostgresqlSQLAnalysis(orgName: string, clusterName: string, limit?: number, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSQLAnalysis(orgName, clusterName, limit, orderBy, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSQLAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get one PostgreSQL session basic diagnostics record by backend pid. * @summary Get PostgreSQL session basic diagnostics * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} pid PostgreSQL backend process id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsPostgresqlSession(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSession(orgName, clusterName, pid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot. * @summary Get PostgreSQL session lock analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} pid PostgreSQL backend process id. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsPostgresqlSessionLockAnalysis(orgName: string, clusterName: string, pid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSessionLockAnalysis(orgName, clusterName, pid, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSessionLockAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions. * @summary Get PostgreSQL space analysis * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} [databaseName] Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async getDiagnosticsPostgresqlSpaceAnalysis(orgName: string, clusterName: string, databaseName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getDiagnosticsPostgresqlSpaceAnalysis(orgName, clusterName, databaseName, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.getDiagnosticsPostgresqlSpaceAnalysis']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Terminate a running query by query_id. In cluster mode KILL QUERY ON CLUSTER is used so the initial query and its remote sub-queries are terminated together; otherwise KILL QUERY runs on the connected node. * @summary Kill a ClickHouse query * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {string} queryId ClickHouse query_id to terminate. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async killDiagnosticsClickhouseQuery(orgName: string, clusterName: string, queryId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.killDiagnosticsClickhouseQuery(orgName, clusterName, queryId, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.killDiagnosticsClickhouseQuery']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * Rechecks startedAt before issuing KILL. Open transactions may roll back asynchronously. Never retry this operation automatically. * @summary Terminate the selected SQL Server user session * @param {string} orgName * @param {string} clusterName * @param {number} sessionId * @param {string} startedAt * @param {*} [options] Override http request option. * @throws {RequiredError} */ async killDiagnosticsMssqlSession(orgName: string, clusterName: string, sessionId: number, startedAt: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.killDiagnosticsMssqlSession(orgName, clusterName, sessionId, startedAt, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.killDiagnosticsMssqlSession']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List active queries from system.processes across every shard and replica via clusterAllReplicas. Returns elapsed time, current and peak memory usage, read/write progress and the server host for each query so long-running or memory-heavy queries can be located quickly. The diagnostics query itself is excluded from the result. * @summary List active ClickHouse queries * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of queries to return. Defaults to 100 and is capped at 1000. * @param {string} [orderBy] Sort metric. Defaults to elapsed. Allowed values: elapsed, memoryUsage, memoryUsageRatio, peakMemoryUsage, readRows, readBytes. * @param {string} [database] Filter by current database. Omit or empty = all databases. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsClickhouseSessions(orgName: string, clusterName: string, limit?: number, orderBy?: string, database?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsClickhouseSessions(orgName, clusterName, limit, orderBy, database, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsClickhouseSessions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more. * @summary List Dameng sessions * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of sessions to return. Defaults to 200. * @param {string} [state] Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsDamengSessions(orgName: string, clusterName: string, limit?: number, state?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsDamengSessions(orgName, clusterName, limit, state, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsDamengSessions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List active Elasticsearch shard recoveries * @param {string} orgName * @param {string} clusterName * @param {string} [index] Index name or pattern * @param {string} [node] Exact target node ID or name * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsElasticsearchRecoveries(orgName: string, clusterName: string, index?: string, node?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsElasticsearchRecoveries(orgName, clusterName, index, node, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsElasticsearchRecoveries']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List Elasticsearch shards * @param {string} orgName * @param {string} clusterName * @param {string} [index] Index name or pattern * @param {string} [node] Exact node ID or name * @param {ElasticsearchShardState} [state] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsElasticsearchShards(orgName: string, clusterName: string, index?: string, node?: string, state?: ElasticsearchShardState, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsElasticsearchShards(orgName, clusterName, index, node, state, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsElasticsearchShards']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List Kingbase session diagnostics * @param {string} orgName * @param {string} clusterName * @param {number} [limit] Maximum number of sessions to return. Defaults to 200. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsKingbaseSessions(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsKingbaseSessions(orgName, clusterName, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsKingbaseSessions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * * @summary List SQL Server sessions * @param {string} orgName * @param {string} clusterName * @param {number} [limit] * @param {boolean} [activeOnly] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsMssqlSessions(orgName: string, clusterName: string, limit?: number, activeOnly?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsMssqlSessions(orgName, clusterName, limit, activeOnly, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsMssqlSessions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, /** * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows. * @summary List PostgreSQL session basic diagnostics * @param {string} orgName Organization name * @param {string} clusterName Cluster name * @param {number} [limit] Maximum number of sessions to return. When omitted, the API returns the complete point-in-time session snapshot. When provided, the value must be positive. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listDiagnosticsPostgresqlSessions(orgName: string, clusterName: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listDiagnosticsPostgresqlSessions(orgName, clusterName, limit, options); const localVarOperationServerIndex = configuration?.serverIndex ?? 0; const localVarOperationServerBasePath = operationServerMap['DiagnosticsApi.listDiagnosticsPostgresqlSessions']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, } }; /** * DiagnosticsApi - factory interface * @export */ export const DiagnosticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = DiagnosticsApiFp(configuration) return { /** * * @summary Explain Elasticsearch shard allocation * @param {DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ explainDiagnosticsElasticsearchAllocation(requestParameters: DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.explainDiagnosticsElasticsearchAllocation(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.shard, requestParameters.primary, requestParameters.currentNode, options).then((request) => request(axios, basePath)); }, /** * Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan. * @summary Explain PostgreSQL SQL fingerprint * @param {DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ explainDiagnosticsPostgresqlSQLFingerprint(requestParameters: DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.explainDiagnosticsPostgresqlSQLFingerprint(requestParameters.orgName, requestParameters.clusterName, requestParameters.queryID, requestParameters.database, requestParameters.user, requestParameters.topLevel, requestParameters.fingerprint, options).then((request) => request(axios, basePath)); }, /** * Analyze system.replicas and system.clusters. Returns replication delay, Keeper queue backlog, readonly/session-expired replicas and shard/replica topology with per-node connection errors. Replica rows are collected through clusterAllReplicas, while the topology is read from the connected node\'s system.clusters view. * @summary Get ClickHouse replica and cluster health * @param {DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsClickhouseClusterHealth(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsClickhouseClusterHealth(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(axios, basePath)); }, /** * Analyze system.query_log for the selected range. Only initial queries (is_initial_query = 1) are counted so distributed child queries are not double counted. Returns the slowest queries by query_duration_ms, query patterns grouped by normalized_query_hash, and failed queries (ExceptionWhileProcessing) with exception_code. When log_queries is disabled or system.query_log is missing, the endpoint returns status=unavailable together with guidance instead of failing. * @summary Get ClickHouse SQL analysis * @param {DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsClickhouseSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsClickhouseSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.limit, requestParameters.orderBy, requestParameters.database, requestParameters.user, options).then((request) => request(axios, basePath)); }, /** * Analyze system.parts, system.merges and system.mutations across the cluster. Returns table and partition level disk usage, compression efficiency, per-disk and per-host distribution, part explosion risk (parts_to_delay_insert / parts_to_throw_insert), running merges and unfinished mutations. * @summary Get ClickHouse space analysis * @param {DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsClickhouseSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsClickhouseSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.tableLimit, requestParameters.partitionLimit, requestParameters.mergeLimit, options).then((request) => request(axios, basePath)); }, /** * Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions. * @summary Get Dameng SQL analysis * @param {DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsDamengSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath)); }, /** * Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details. * @summary Get Dameng session detail * @param {DiagnosticsApiGetDiagnosticsDamengSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSession(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsDamengSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(axios, basePath)); }, /** * Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details. * @summary Get Dameng session lock analysis * @param {DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsDamengSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(axios, basePath)); }, /** * Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS. * @summary Get Dameng space analysis * @param {DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(axios, basePath)); }, /** * * @summary Get Elasticsearch storage and index analysis * @param {DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsElasticsearchStorageAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsElasticsearchStorageAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.node, requestParameters.index, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(axios, basePath)); }, /** * * @summary Get Elasticsearch task and hot-thread analysis * @param {DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsElasticsearchTaskAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsElasticsearchTaskAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.type, requestParameters.node, requestParameters.taskLimit, requestParameters.threads, options).then((request) => request(axios, basePath)); }, /** * Get read-only Kingbase performance trends from backend-owned metrics. The response covers resource, connection, workload, database, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. V9 queries.perSecond requires track_sql=on and track_sql_item either empty (all items) or containing the complete sqltime item. Each QPS sample must have matching settings from the same scrape target and timestamp; disabled, missing, stale, or conflicting settings exclude that sample from both series and summaries. V8 QPS does not depend on these V9 settings. Unknown or unverified major versions (including V10) omit QPS without querying it. An absent QPS series means collection availability cannot be confirmed; it does not mean zero load or prove that SQL tracking is disabled. Check the database version, SQL tracking settings, and collection of same-scrape settings metrics. Source success describes queries with displayable results, not the availability of every metric. Empty metrics do not produce query-failure warnings. xid.age, database.sizeBytes, and locks.observedSessionCount cover user databases only, excluding esrep, kingbase, security, template0, template1, and empty or placeholder (-) database names. xid.age is not an instance-wide wraparound safety check: system database ages are not shown. Its 150M/180M warning/critical thresholds are static references, not the cluster\'s freeze settings or database limits. * @summary Get Kingbase performance trends * @param {DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsKingbasePerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsKingbasePerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(axios, basePath)); }, /** * * @summary Get Kingbase session diagnostics * @param {DiagnosticsApiGetDiagnosticsKingbaseSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsKingbaseSession(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsKingbaseSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath)); }, /** * Returns the selected session and its direct lock rows from the current snapshot. * @summary Get Kingbase session lock analysis * @param {DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsKingbaseSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath)); }, /** * Get read-only MariaDB performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MariaDB performance trends * @param {DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMariaDBPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMariaDBPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(axios, basePath)); }, /** * Get a read-only MariaDB SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MariaDB SQL analysis * @param {DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMariaDBSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMariaDBSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath)); }, /** * Get a read-only MariaDB compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MariaDB space analysis * @param {DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMariaDBSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMariaDBSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath)); }, /** * Get read-only MongoDB performance trends from backend-owned metrics. The response covers resource, connection, operation, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. * @summary Get MongoDB performance trends * @param {DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMongoDBPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMongoDBPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(axios, basePath)); }, /** * * @summary List SQL Server TOP SQL from the plan cache * @param {DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMssqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath)); }, /** * * @summary Read the cached compiled plan of a ranked SQL statement * @param {DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSQLPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMssqlSQLPlan(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * * @summary Get a SQL Server session * @param {DiagnosticsApiGetDiagnosticsMssqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSession(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMssqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(axios, basePath)); }, /** * * @summary Read the cached compiled plan of a live SQL Server request * @param {DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSessionCachedPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMssqlSessionCachedPlan(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, requestParameters.requestId, requestParameters.requestStart, options).then((request) => request(axios, basePath)); }, /** * * @summary Get SQL Server blocking and locks * @param {DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMssqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(axios, basePath)); }, /** * * @summary Analyze SQL Server database and table space * @param {DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMssqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMssqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.limit, options).then((request) => request(axios, basePath)); }, /** * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MySQL performance trends * @param {DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMysqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMysqlPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(axios, basePath)); }, /** * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MySQL SQL analysis * @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath)); }, /** * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MySQL space analysis * @param {DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsMysqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsMysqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath)); }, /** * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions. * @summary Get PostgreSQL performance trends * @param {DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsPostgresqlPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(axios, basePath)); }, /** * Get a read-only PostgreSQL SQL fingerprint ranking from pg_stat_statements. The response does not expose full SQL text, time-window aggregation, summary cards, slow-log relation, execution plans, or remediation actions. * @summary Get PostgreSQL SQL analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsPostgresqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(axios, basePath)); }, /** * Get one PostgreSQL session basic diagnostics record by backend pid. * @summary Get PostgreSQL session basic diagnostics * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath)); }, /** * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot. * @summary Get PostgreSQL session lock analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(axios, basePath)); }, /** * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions. * @summary Get PostgreSQL space analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(axios, basePath)); }, /** * Terminate a running query by query_id. In cluster mode KILL QUERY ON CLUSTER is used so the initial query and its remote sub-queries are terminated together; otherwise KILL QUERY runs on the connected node. * @summary Kill a ClickHouse query * @param {DiagnosticsApiKillDiagnosticsClickhouseQueryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ killDiagnosticsClickhouseQuery(requestParameters: DiagnosticsApiKillDiagnosticsClickhouseQueryRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.killDiagnosticsClickhouseQuery(requestParameters.orgName, requestParameters.clusterName, requestParameters.queryId, options).then((request) => request(axios, basePath)); }, /** * Rechecks startedAt before issuing KILL. Open transactions may roll back asynchronously. Never retry this operation automatically. * @summary Terminate the selected SQL Server user session * @param {DiagnosticsApiKillDiagnosticsMssqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ killDiagnosticsMssqlSession(requestParameters: DiagnosticsApiKillDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.killDiagnosticsMssqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(axios, basePath)); }, /** * List active queries from system.processes across every shard and replica via clusterAllReplicas. Returns elapsed time, current and peak memory usage, read/write progress and the server host for each query so long-running or memory-heavy queries can be located quickly. The diagnostics query itself is excluded from the result. * @summary List active ClickHouse queries * @param {DiagnosticsApiListDiagnosticsClickhouseSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsClickhouseSessions(requestParameters: DiagnosticsApiListDiagnosticsClickhouseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listDiagnosticsClickhouseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, requestParameters.database, options).then((request) => request(axios, basePath)); }, /** * List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more. * @summary List Dameng sessions * @param {DiagnosticsApiListDiagnosticsDamengSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listDiagnosticsDamengSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.state, options).then((request) => request(axios, basePath)); }, /** * * @summary List active Elasticsearch shard recoveries * @param {DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsElasticsearchRecoveries(requestParameters: DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listDiagnosticsElasticsearchRecoveries(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.node, options).then((request) => request(axios, basePath)); }, /** * * @summary List Elasticsearch shards * @param {DiagnosticsApiListDiagnosticsElasticsearchShardsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsElasticsearchShards(requestParameters: DiagnosticsApiListDiagnosticsElasticsearchShardsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listDiagnosticsElasticsearchShards(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.node, requestParameters.state, options).then((request) => request(axios, basePath)); }, /** * * @summary List Kingbase session diagnostics * @param {DiagnosticsApiListDiagnosticsKingbaseSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listDiagnosticsKingbaseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath)); }, /** * * @summary List SQL Server sessions * @param {DiagnosticsApiListDiagnosticsMssqlSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsMssqlSessions(requestParameters: DiagnosticsApiListDiagnosticsMssqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listDiagnosticsMssqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.activeOnly, options).then((request) => request(axios, basePath)); }, /** * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows. * @summary List PostgreSQL session basic diagnostics * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listDiagnosticsPostgresqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(axios, basePath)); }, }; }; /** * DiagnosticsApi - interface * @export * @interface DiagnosticsApi */ export interface DiagnosticsApiInterface { /** * * @summary Explain Elasticsearch shard allocation * @param {DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ explainDiagnosticsElasticsearchAllocation(requestParameters: DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan. * @summary Explain PostgreSQL SQL fingerprint * @param {DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ explainDiagnosticsPostgresqlSQLFingerprint(requestParameters: DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Analyze system.replicas and system.clusters. Returns replication delay, Keeper queue backlog, readonly/session-expired replicas and shard/replica topology with per-node connection errors. Replica rows are collected through clusterAllReplicas, while the topology is read from the connected node\'s system.clusters view. * @summary Get ClickHouse replica and cluster health * @param {DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsClickhouseClusterHealth(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Analyze system.query_log for the selected range. Only initial queries (is_initial_query = 1) are counted so distributed child queries are not double counted. Returns the slowest queries by query_duration_ms, query patterns grouped by normalized_query_hash, and failed queries (ExceptionWhileProcessing) with exception_code. When log_queries is disabled or system.query_log is missing, the endpoint returns status=unavailable together with guidance instead of failing. * @summary Get ClickHouse SQL analysis * @param {DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsClickhouseSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Analyze system.parts, system.merges and system.mutations across the cluster. Returns table and partition level disk usage, compression efficiency, per-disk and per-host distribution, part explosion risk (parts_to_delay_insert / parts_to_throw_insert), running merges and unfinished mutations. * @summary Get ClickHouse space analysis * @param {DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsClickhouseSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions. * @summary Get Dameng SQL analysis * @param {DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsDamengSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details. * @summary Get Dameng session detail * @param {DiagnosticsApiGetDiagnosticsDamengSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsDamengSession(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details. * @summary Get Dameng session lock analysis * @param {DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsDamengSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS. * @summary Get Dameng space analysis * @param {DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get Elasticsearch storage and index analysis * @param {DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsElasticsearchStorageAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get Elasticsearch task and hot-thread analysis * @param {DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsElasticsearchTaskAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get read-only Kingbase performance trends from backend-owned metrics. The response covers resource, connection, workload, database, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. V9 queries.perSecond requires track_sql=on and track_sql_item either empty (all items) or containing the complete sqltime item. Each QPS sample must have matching settings from the same scrape target and timestamp; disabled, missing, stale, or conflicting settings exclude that sample from both series and summaries. V8 QPS does not depend on these V9 settings. Unknown or unverified major versions (including V10) omit QPS without querying it. An absent QPS series means collection availability cannot be confirmed; it does not mean zero load or prove that SQL tracking is disabled. Check the database version, SQL tracking settings, and collection of same-scrape settings metrics. Source success describes queries with displayable results, not the availability of every metric. Empty metrics do not produce query-failure warnings. xid.age, database.sizeBytes, and locks.observedSessionCount cover user databases only, excluding esrep, kingbase, security, template0, template1, and empty or placeholder (-) database names. xid.age is not an instance-wide wraparound safety check: system database ages are not shown. Its 150M/180M warning/critical thresholds are static references, not the cluster\'s freeze settings or database limits. * @summary Get Kingbase performance trends * @param {DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsKingbasePerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get Kingbase session diagnostics * @param {DiagnosticsApiGetDiagnosticsKingbaseSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsKingbaseSession(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Returns the selected session and its direct lock rows from the current snapshot. * @summary Get Kingbase session lock analysis * @param {DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get read-only MariaDB performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MariaDB performance trends * @param {DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMariaDBPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only MariaDB SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MariaDB SQL analysis * @param {DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMariaDBSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only MariaDB compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MariaDB space analysis * @param {DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMariaDBSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get read-only MongoDB performance trends from backend-owned metrics. The response covers resource, connection, operation, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. * @summary Get MongoDB performance trends * @param {DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMongoDBPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List SQL Server TOP SQL from the plan cache * @param {DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMssqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Read the cached compiled plan of a ranked SQL statement * @param {DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMssqlSQLPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get a SQL Server session * @param {DiagnosticsApiGetDiagnosticsMssqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMssqlSession(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Read the cached compiled plan of a live SQL Server request * @param {DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMssqlSessionCachedPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Get SQL Server blocking and locks * @param {DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMssqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Analyze SQL Server database and table space * @param {DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMssqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MySQL performance trends * @param {DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMysqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MySQL SQL analysis * @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MySQL space analysis * @param {DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsMysqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions. * @summary Get PostgreSQL performance trends * @param {DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsPostgresqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only PostgreSQL SQL fingerprint ranking from pg_stat_statements. The response does not expose full SQL text, time-window aggregation, summary cards, slow-log relation, execution plans, or remediation actions. * @summary Get PostgreSQL SQL analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsPostgresqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get one PostgreSQL session basic diagnostics record by backend pid. * @summary Get PostgreSQL session basic diagnostics * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot. * @summary Get PostgreSQL session lock analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions. * @summary Get PostgreSQL space analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Terminate a running query by query_id. In cluster mode KILL QUERY ON CLUSTER is used so the initial query and its remote sub-queries are terminated together; otherwise KILL QUERY runs on the connected node. * @summary Kill a ClickHouse query * @param {DiagnosticsApiKillDiagnosticsClickhouseQueryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ killDiagnosticsClickhouseQuery(requestParameters: DiagnosticsApiKillDiagnosticsClickhouseQueryRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Rechecks startedAt before issuing KILL. Open transactions may roll back asynchronously. Never retry this operation automatically. * @summary Terminate the selected SQL Server user session * @param {DiagnosticsApiKillDiagnosticsMssqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ killDiagnosticsMssqlSession(requestParameters: DiagnosticsApiKillDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * List active queries from system.processes across every shard and replica via clusterAllReplicas. Returns elapsed time, current and peak memory usage, read/write progress and the server host for each query so long-running or memory-heavy queries can be located quickly. The diagnostics query itself is excluded from the result. * @summary List active ClickHouse queries * @param {DiagnosticsApiListDiagnosticsClickhouseSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsClickhouseSessions(requestParameters: DiagnosticsApiListDiagnosticsClickhouseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more. * @summary List Dameng sessions * @param {DiagnosticsApiListDiagnosticsDamengSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary List active Elasticsearch shard recoveries * @param {DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsElasticsearchRecoveries(requestParameters: DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List Elasticsearch shards * @param {DiagnosticsApiListDiagnosticsElasticsearchShardsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsElasticsearchShards(requestParameters: DiagnosticsApiListDiagnosticsElasticsearchShardsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List Kingbase session diagnostics * @param {DiagnosticsApiListDiagnosticsKingbaseSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary List SQL Server sessions * @param {DiagnosticsApiListDiagnosticsMssqlSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsMssqlSessions(requestParameters: DiagnosticsApiListDiagnosticsMssqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows. * @summary List PostgreSQL session basic diagnostics * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApiInterface */ listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; } /** * Request parameters for explainDiagnosticsElasticsearchAllocation operation in DiagnosticsApi. * @export * @interface DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest */ export interface DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest { /** * * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsElasticsearchAllocation */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsElasticsearchAllocation */ readonly clusterName: string /** * * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsElasticsearchAllocation */ readonly index: string /** * * @type {number} * @memberof DiagnosticsApiExplainDiagnosticsElasticsearchAllocation */ readonly shard: number /** * * @type {boolean} * @memberof DiagnosticsApiExplainDiagnosticsElasticsearchAllocation */ readonly primary: boolean /** * * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsElasticsearchAllocation */ readonly currentNode?: string } /** * Request parameters for explainDiagnosticsPostgresqlSQLFingerprint operation in DiagnosticsApi. * @export * @interface DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest */ export interface DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly clusterName: string /** * PostgreSQL pg_stat_statements queryid represented as a string. * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly queryID: string /** * Database name from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement. * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly database: string /** * Database user from the ranking row. The key is required to disambiguate the queryID. An unresolved empty name returns 422 no_explainable_sql_statement. * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly user: string /** * Top-level identity from the ranking row. Required to disambiguate the queryID on PostgreSQL versions that expose pg_stat_statements.toplevel. * @type {boolean} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly topLevel: boolean /** * Optional fingerprint consistency guard. Currently aligned with PostgreSQL pg_stat_statements queryid. * @type {string} * @memberof DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprint */ readonly fingerprint?: string } /** * Request parameters for getDiagnosticsClickhouseClusterHealth operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest */ export interface DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseClusterHealth */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseClusterHealth */ readonly clusterName: string } /** * Request parameters for getDiagnosticsClickhouseSQLAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly clusterName: string /** * Time range based on query_log event_time. Defaults to 24h. Allowed values: 1h, 6h, 24h, 7d. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly range?: string /** * Maximum number of entries per list. Defaults to 20 and is capped at 200. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly limit?: number /** * Pattern ordering metric. Defaults to totalDuration. Allowed values: totalDuration, meanDuration, maxDuration, calls, memory, readRows, failures. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly orderBy?: string /** * Filter by current_database. Omit or empty = all databases. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly database?: string /** * Filter by ClickHouse user. Omit or empty = all users. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysis */ readonly user?: string } /** * Request parameters for getDiagnosticsClickhouseSpaceAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysis */ readonly clusterName: string /** * Filter by database. Omit or empty = all databases. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysis */ readonly database?: string /** * Maximum number of top tables. Defaults to 20 and is capped at 200. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysis */ readonly tableLimit?: number /** * Maximum number of top partitions. Defaults to 20 and is capped at 200. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysis */ readonly partitionLimit?: number /** * Maximum number of merges and unfinished mutations. Defaults to 20 and is capped at 200. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysis */ readonly mergeLimit?: number } /** * Request parameters for getDiagnosticsDamengSQLAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSQLAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSQLAnalysis */ readonly clusterName: string /** * Maximum number of SQL entries per category. Defaults to 20. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsDamengSQLAnalysis */ readonly limit?: number } /** * Request parameters for getDiagnosticsDamengSession operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsDamengSessionRequest */ export interface DiagnosticsApiGetDiagnosticsDamengSessionRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSession */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSession */ readonly clusterName: string /** * Dameng session ID (SESS_ID) * @type {number} * @memberof DiagnosticsApiGetDiagnosticsDamengSession */ readonly sessionId: number } /** * Request parameters for getDiagnosticsDamengSessionLockAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysis */ readonly clusterName: string /** * Dameng session ID (SESS_ID) * @type {number} * @memberof DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysis */ readonly sessionId: number } /** * Request parameters for getDiagnosticsDamengSpaceAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis */ readonly clusterName: string /** * Maximum number of top tables to return (0 or omitted = not collected) * @type {number} * @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis */ readonly tableLimit?: number /** * Maximum number of top indexes to return (0 or omitted = not collected) * @type {number} * @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis */ readonly indexLimit?: number /** * Filter tables and indexes by schema (owner). Omit or empty = all schemas. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis */ readonly schema?: string /** * Set to true to skip tablespace and schema queries, returning only tables and indexes. * @type {boolean} * @memberof DiagnosticsApiGetDiagnosticsDamengSpaceAnalysis */ readonly skipBasic?: boolean } /** * Request parameters for getDiagnosticsElasticsearchStorageAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysis */ readonly clusterName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysis */ readonly node?: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysis */ readonly index?: string /** * * @type {ElasticsearchIndexSortBy} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysis */ readonly sortBy?: ElasticsearchIndexSortBy /** * * @type {ElasticsearchSortOrder} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysis */ readonly sortOrder?: ElasticsearchSortOrder } /** * Request parameters for getDiagnosticsElasticsearchTaskAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysis */ readonly clusterName: string /** * * @type {ElasticsearchHotThreadsType} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysis */ readonly type?: ElasticsearchHotThreadsType /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysis */ readonly node?: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysis */ readonly taskLimit?: number /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysis */ readonly threads?: number } /** * Request parameters for getDiagnosticsKingbasePerformanceTrends operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest */ export interface DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbasePerformanceTrends */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbasePerformanceTrends */ readonly clusterName: string /** * Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbasePerformanceTrends */ readonly range?: string /** * Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. For range 7d, step must be at least 5m; the default is 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbasePerformanceTrends */ readonly step?: string } /** * Request parameters for getDiagnosticsKingbaseSession operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsKingbaseSessionRequest */ export interface DiagnosticsApiGetDiagnosticsKingbaseSessionRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbaseSession */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbaseSession */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsKingbaseSession */ readonly pid: number } /** * Request parameters for getDiagnosticsKingbaseSessionLockAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysis */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysis */ readonly pid: number } /** * Request parameters for getDiagnosticsMariaDBPerformanceTrends operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest */ export interface DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrends */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrends */ readonly clusterName: string /** * Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrends */ readonly range?: string /** * Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrends */ readonly step?: string } /** * Request parameters for getDiagnosticsMariaDBSQLAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysis */ readonly clusterName: string /** * Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysis */ readonly limit?: number /** * Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysis */ readonly orderBy?: string } /** * Request parameters for getDiagnosticsMariaDBSpaceAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysis */ readonly clusterName: string /** * Optional database name for table and index details. When omitted, the largest non-system database is selected. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysis */ readonly databaseName?: string } /** * Request parameters for getDiagnosticsMongoDBPerformanceTrends operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest */ export interface DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrends */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrends */ readonly clusterName: string /** * Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrends */ readonly range?: string /** * Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrends */ readonly step?: string } /** * Request parameters for getDiagnosticsMssqlSQLAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLAnalysis */ readonly clusterName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLAnalysis */ readonly database?: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLAnalysis */ readonly limit?: number /** * * @type {MssqlSQLOrder} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLAnalysis */ readonly orderBy?: MssqlSQLOrder } /** * Request parameters for getDiagnosticsMssqlSQLPlan operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest */ export interface DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLPlan */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLPlan */ readonly clusterName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSQLPlan */ readonly id: string } /** * Request parameters for getDiagnosticsMssqlSession operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMssqlSessionRequest */ export interface DiagnosticsApiGetDiagnosticsMssqlSessionRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSession */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSession */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMssqlSession */ readonly sessionId: number /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSession */ readonly startedAt: string } /** * Request parameters for getDiagnosticsMssqlSessionCachedPlan operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest */ export interface DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan */ readonly sessionId: number /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan */ readonly startedAt: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan */ readonly requestId: number /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlan */ readonly requestStart: string } /** * Request parameters for getDiagnosticsMssqlSessionLockAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis */ readonly sessionId: number /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysis */ readonly startedAt: string } /** * Request parameters for getDiagnosticsMssqlSpaceAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysis */ readonly clusterName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysis */ readonly database?: string /** * * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysis */ readonly limit?: number } /** * Request parameters for getDiagnosticsMysqlPerformanceTrends operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest */ export interface DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends */ readonly clusterName: string /** * Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends */ readonly range?: string /** * Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlPerformanceTrends */ readonly step?: string } /** * Request parameters for getDiagnosticsMysqlSQLAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis */ readonly clusterName: string /** * Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis */ readonly limit?: number /** * Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlSQLAnalysis */ readonly orderBy?: string } /** * Request parameters for getDiagnosticsMysqlSpaceAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest { /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysis */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysis */ readonly clusterName: string /** * Optional database name for table and index details. When omitted, the largest non-system database is selected. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysis */ readonly databaseName?: string } /** * Request parameters for getDiagnosticsPostgresqlPerformanceTrends operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest */ export interface DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrends */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrends */ readonly clusterName: string /** * Controlled query range. Allowed values are 1h, 6h, 24h, and 7d. Defaults to 1h. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrends */ readonly range?: string /** * Controlled query granularity. Allowed values are 1m, 5m, 15m, and 1h. Defaults to 1m for 1h, 5m for 6h, 15m for 24h, and 1h for 7d. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrends */ readonly step?: string } /** * Request parameters for getDiagnosticsPostgresqlSQLAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysis */ readonly clusterName: string /** * Maximum number of SQL fingerprints to return. The backend applies its own upper bound. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysis */ readonly limit?: number /** * Sort key. Allowed values are totalTime, meanTime, maxTime, and calls. Defaults to totalTime. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysis */ readonly orderBy?: string } /** * Request parameters for getDiagnosticsPostgresqlSession operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest */ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession */ readonly clusterName: string /** * PostgreSQL backend process id. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSession */ readonly pid: number } /** * Request parameters for getDiagnosticsPostgresqlSessionLockAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis */ readonly clusterName: string /** * PostgreSQL backend process id. * @type {number} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysis */ readonly pid: number } /** * Request parameters for getDiagnosticsPostgresqlSpaceAnalysis operation in DiagnosticsApi. * @export * @interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest */ export interface DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis */ readonly clusterName: string /** * Optional database name for selected table, index, and TOAST details. When omitted, the backend selects the largest connectable non-template database. * @type {string} * @memberof DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysis */ readonly databaseName?: string } /** * Request parameters for killDiagnosticsClickhouseQuery operation in DiagnosticsApi. * @export * @interface DiagnosticsApiKillDiagnosticsClickhouseQueryRequest */ export interface DiagnosticsApiKillDiagnosticsClickhouseQueryRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiKillDiagnosticsClickhouseQuery */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiKillDiagnosticsClickhouseQuery */ readonly clusterName: string /** * ClickHouse query_id to terminate. * @type {string} * @memberof DiagnosticsApiKillDiagnosticsClickhouseQuery */ readonly queryId: string } /** * Request parameters for killDiagnosticsMssqlSession operation in DiagnosticsApi. * @export * @interface DiagnosticsApiKillDiagnosticsMssqlSessionRequest */ export interface DiagnosticsApiKillDiagnosticsMssqlSessionRequest { /** * * @type {string} * @memberof DiagnosticsApiKillDiagnosticsMssqlSession */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiKillDiagnosticsMssqlSession */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiKillDiagnosticsMssqlSession */ readonly sessionId: number /** * * @type {string} * @memberof DiagnosticsApiKillDiagnosticsMssqlSession */ readonly startedAt: string } /** * Request parameters for listDiagnosticsClickhouseSessions operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsClickhouseSessionsRequest */ export interface DiagnosticsApiListDiagnosticsClickhouseSessionsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiListDiagnosticsClickhouseSessions */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiListDiagnosticsClickhouseSessions */ readonly clusterName: string /** * Maximum number of queries to return. Defaults to 100 and is capped at 1000. * @type {number} * @memberof DiagnosticsApiListDiagnosticsClickhouseSessions */ readonly limit?: number /** * Sort metric. Defaults to elapsed. Allowed values: elapsed, memoryUsage, memoryUsageRatio, peakMemoryUsage, readRows, readBytes. * @type {string} * @memberof DiagnosticsApiListDiagnosticsClickhouseSessions */ readonly orderBy?: string /** * Filter by current database. Omit or empty = all databases. * @type {string} * @memberof DiagnosticsApiListDiagnosticsClickhouseSessions */ readonly database?: string } /** * Request parameters for listDiagnosticsDamengSessions operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsDamengSessionsRequest */ export interface DiagnosticsApiListDiagnosticsDamengSessionsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiListDiagnosticsDamengSessions */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiListDiagnosticsDamengSessions */ readonly clusterName: string /** * Maximum number of sessions to return. Defaults to 200. * @type {number} * @memberof DiagnosticsApiListDiagnosticsDamengSessions */ readonly limit?: number /** * Filter sessions by state (e.g. ACTIVE, IDLE). Matches against V$SESSIONS.STATE. * @type {string} * @memberof DiagnosticsApiListDiagnosticsDamengSessions */ readonly state?: string } /** * Request parameters for listDiagnosticsElasticsearchRecoveries operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest */ export interface DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest { /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchRecoveries */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchRecoveries */ readonly clusterName: string /** * Index name or pattern * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchRecoveries */ readonly index?: string /** * Exact target node ID or name * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchRecoveries */ readonly node?: string } /** * Request parameters for listDiagnosticsElasticsearchShards operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsElasticsearchShardsRequest */ export interface DiagnosticsApiListDiagnosticsElasticsearchShardsRequest { /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchShards */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchShards */ readonly clusterName: string /** * Index name or pattern * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchShards */ readonly index?: string /** * Exact node ID or name * @type {string} * @memberof DiagnosticsApiListDiagnosticsElasticsearchShards */ readonly node?: string /** * * @type {ElasticsearchShardState} * @memberof DiagnosticsApiListDiagnosticsElasticsearchShards */ readonly state?: ElasticsearchShardState } /** * Request parameters for listDiagnosticsKingbaseSessions operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsKingbaseSessionsRequest */ export interface DiagnosticsApiListDiagnosticsKingbaseSessionsRequest { /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsKingbaseSessions */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsKingbaseSessions */ readonly clusterName: string /** * Maximum number of sessions to return. Defaults to 200. * @type {number} * @memberof DiagnosticsApiListDiagnosticsKingbaseSessions */ readonly limit?: number } /** * Request parameters for listDiagnosticsMssqlSessions operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsMssqlSessionsRequest */ export interface DiagnosticsApiListDiagnosticsMssqlSessionsRequest { /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsMssqlSessions */ readonly orgName: string /** * * @type {string} * @memberof DiagnosticsApiListDiagnosticsMssqlSessions */ readonly clusterName: string /** * * @type {number} * @memberof DiagnosticsApiListDiagnosticsMssqlSessions */ readonly limit?: number /** * * @type {boolean} * @memberof DiagnosticsApiListDiagnosticsMssqlSessions */ readonly activeOnly?: boolean } /** * Request parameters for listDiagnosticsPostgresqlSessions operation in DiagnosticsApi. * @export * @interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest */ export interface DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest { /** * Organization name * @type {string} * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions */ readonly orgName: string /** * Cluster name * @type {string} * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions */ readonly clusterName: string /** * Maximum number of sessions to return. When omitted, the API returns the complete point-in-time session snapshot. When provided, the value must be positive. * @type {number} * @memberof DiagnosticsApiListDiagnosticsPostgresqlSessions */ readonly limit?: number } /** * DiagnosticsApi - object-oriented interface * @export * @class DiagnosticsApi * @extends {BaseAPI} */ export class DiagnosticsApi extends BaseAPI implements DiagnosticsApiInterface { /** * * @summary Explain Elasticsearch shard allocation * @param {DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public explainDiagnosticsElasticsearchAllocation(requestParameters: DiagnosticsApiExplainDiagnosticsElasticsearchAllocationRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).explainDiagnosticsElasticsearchAllocation(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.shard, requestParameters.primary, requestParameters.currentNode, options).then((request) => request(this.axios, this.basePath)); } /** * Explicitly trigger a safe PostgreSQL EXPLAIN for one SQL fingerprint. The request does not accept raw SQL. DMS resolves the exact server-side parameterized SELECT statement identity independently of the ranking window, produces an estimated standard or generic plan without parameter sample values, rejects multiple statements, and never runs EXPLAIN ANALYZE or the original SQL. The plan uses current catalog statistics and the DMS connection context; it does not reconstruct the original role, search_path, session settings, parameter values, or historical actual plan. * @summary Explain PostgreSQL SQL fingerprint * @param {DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public explainDiagnosticsPostgresqlSQLFingerprint(requestParameters: DiagnosticsApiExplainDiagnosticsPostgresqlSQLFingerprintRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).explainDiagnosticsPostgresqlSQLFingerprint(requestParameters.orgName, requestParameters.clusterName, requestParameters.queryID, requestParameters.database, requestParameters.user, requestParameters.topLevel, requestParameters.fingerprint, options).then((request) => request(this.axios, this.basePath)); } /** * Analyze system.replicas and system.clusters. Returns replication delay, Keeper queue backlog, readonly/session-expired replicas and shard/replica topology with per-node connection errors. Replica rows are collected through clusterAllReplicas, while the topology is read from the connected node\'s system.clusters view. * @summary Get ClickHouse replica and cluster health * @param {DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsClickhouseClusterHealth(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseClusterHealthRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsClickhouseClusterHealth(requestParameters.orgName, requestParameters.clusterName, options).then((request) => request(this.axios, this.basePath)); } /** * Analyze system.query_log for the selected range. Only initial queries (is_initial_query = 1) are counted so distributed child queries are not double counted. Returns the slowest queries by query_duration_ms, query patterns grouped by normalized_query_hash, and failed queries (ExceptionWhileProcessing) with exception_code. When log_queries is disabled or system.query_log is missing, the endpoint returns status=unavailable together with guidance instead of failing. * @summary Get ClickHouse SQL analysis * @param {DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsClickhouseSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseSQLAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsClickhouseSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.limit, requestParameters.orderBy, requestParameters.database, requestParameters.user, options).then((request) => request(this.axios, this.basePath)); } /** * Analyze system.parts, system.merges and system.mutations across the cluster. Returns table and partition level disk usage, compression efficiency, per-disk and per-host distribution, part explosion risk (parts_to_delay_insert / parts_to_throw_insert), running merges and unfinished mutations. * @summary Get ClickHouse space analysis * @param {DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsClickhouseSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsClickhouseSpaceAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsClickhouseSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.tableLimit, requestParameters.partitionLimit, requestParameters.mergeLimit, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only Dameng SQL analysis snapshot from V$SYSTEM_LONG_EXEC_SQLS (long-running SQL) and V$SYSTEM_LARGE_MEM_SQLS (high-memory SQL). The response does not expose execution plans or remediation actions. * @summary Get Dameng SQL analysis * @param {DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsDamengSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSQLAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath)); } /** * Get a single Dameng session detail by session ID from V$SESSIONS, including SQL text, transaction info, and client details. * @summary Get Dameng session detail * @param {DiagnosticsApiGetDiagnosticsDamengSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsDamengSession(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath)); } /** * Get lock and blocking analysis for a Dameng session. Queries V$LOCK and V$SESSIONS to identify blocking/blocked relationships and lock details. * @summary Get Dameng session lock analysis * @param {DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsDamengSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only Dameng space snapshot including tablespace usage, schema sizes, top tables, and top indexes. Queries dba_free_space, dba_data_files, DBA_SEGMENTS, DBA_TABLES, DBA_INDEXES, and DBA_IND_COLUMNS. * @summary Get Dameng space analysis * @param {DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsDamengSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsDamengSpaceAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsDamengSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.tableLimit, requestParameters.indexLimit, requestParameters.schema, requestParameters.skipBasic, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get Elasticsearch storage and index analysis * @param {DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsElasticsearchStorageAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsElasticsearchStorageAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsElasticsearchStorageAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.node, requestParameters.index, requestParameters.sortBy, requestParameters.sortOrder, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get Elasticsearch task and hot-thread analysis * @param {DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsElasticsearchTaskAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsElasticsearchTaskAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsElasticsearchTaskAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.type, requestParameters.node, requestParameters.taskLimit, requestParameters.threads, options).then((request) => request(this.axios, this.basePath)); } /** * Get read-only Kingbase performance trends from backend-owned metrics. The response covers resource, connection, workload, database, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. V9 queries.perSecond requires track_sql=on and track_sql_item either empty (all items) or containing the complete sqltime item. Each QPS sample must have matching settings from the same scrape target and timestamp; disabled, missing, stale, or conflicting settings exclude that sample from both series and summaries. V8 QPS does not depend on these V9 settings. Unknown or unverified major versions (including V10) omit QPS without querying it. An absent QPS series means collection availability cannot be confirmed; it does not mean zero load or prove that SQL tracking is disabled. Check the database version, SQL tracking settings, and collection of same-scrape settings metrics. Source success describes queries with displayable results, not the availability of every metric. Empty metrics do not produce query-failure warnings. xid.age, database.sizeBytes, and locks.observedSessionCount cover user databases only, excluding esrep, kingbase, security, template0, template1, and empty or placeholder (-) database names. xid.age is not an instance-wide wraparound safety check: system database ages are not shown. Its 150M/180M warning/critical thresholds are static references, not the cluster\'s freeze settings or database limits. * @summary Get Kingbase performance trends * @param {DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsKingbasePerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsKingbasePerformanceTrendsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsKingbasePerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get Kingbase session diagnostics * @param {DiagnosticsApiGetDiagnosticsKingbaseSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsKingbaseSession(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsKingbaseSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath)); } /** * Returns the selected session and its direct lock rows from the current snapshot. * @summary Get Kingbase session lock analysis * @param {DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsKingbaseSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsKingbaseSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsKingbaseSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath)); } /** * Get read-only MariaDB performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MariaDB performance trends * @param {DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMariaDBPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBPerformanceTrendsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMariaDBPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only MariaDB SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MariaDB SQL analysis * @param {DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMariaDBSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBSQLAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMariaDBSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only MariaDB compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MariaDB space analysis * @param {DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMariaDBSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMariaDBSpaceAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMariaDBSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath)); } /** * Get read-only MongoDB performance trends from backend-owned metrics. The response covers resource, connection, operation, capacity, and availability series and does not expose PromQL, internal endpoints, or credentials. * @summary Get MongoDB performance trends * @param {DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMongoDBPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMongoDBPerformanceTrendsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMongoDBPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List SQL Server TOP SQL from the plan cache * @param {DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMssqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSQLAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Read the cached compiled plan of a ranked SQL statement * @param {DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMssqlSQLPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSQLPlanRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSQLPlan(requestParameters.orgName, requestParameters.clusterName, requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get a SQL Server session * @param {DiagnosticsApiGetDiagnosticsMssqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMssqlSession(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Read the cached compiled plan of a live SQL Server request * @param {DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMssqlSessionCachedPlan(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionCachedPlanRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSessionCachedPlan(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, requestParameters.requestId, requestParameters.requestStart, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Get SQL Server blocking and locks * @param {DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMssqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary Analyze SQL Server database and table space * @param {DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMssqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMssqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMssqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.database, requestParameters.limit, options).then((request) => request(this.axios, this.basePath)); } /** * Get read-only MySQL 5.7, 8.0, and 8.4 performance trends from backend-owned metrics and database capability checks. The response does not expose SQL, PromQL, internal endpoints, or credentials. * @summary Get MySQL performance trends * @param {DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMysqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsMysqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only MySQL SQL fingerprint ranking from Performance Schema statement digests. The response does not expose raw SQL text, time-window aggregation, execution plans, or remediation actions. * @summary Get MySQL SQL analysis * @param {DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMysqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSQLAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only MySQL 5.7, 8.0, or 8.4 compatible space snapshot and fixed backend-owned storage metrics. * @summary Get MySQL space analysis * @param {DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsMysqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsMysqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsMysqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath)); } /** * Get read-only PostgreSQL performance trends from backend-owned Prometheus queries. The response does not expose SQL, PromQL, internal endpoints, or remediation actions. * @summary Get PostgreSQL performance trends * @param {DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsPostgresqlPerformanceTrends(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlPerformanceTrendsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlPerformanceTrends(requestParameters.orgName, requestParameters.clusterName, requestParameters.range, requestParameters.step, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only PostgreSQL SQL fingerprint ranking from pg_stat_statements. The response does not expose full SQL text, time-window aggregation, summary cards, slow-log relation, execution plans, or remediation actions. * @summary Get PostgreSQL SQL analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsPostgresqlSQLAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSQLAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSQLAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath)); } /** * Get one PostgreSQL session basic diagnostics record by backend pid. * @summary Get PostgreSQL session basic diagnostics * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsPostgresqlSession(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath)); } /** * Get read-only lock analysis for one PostgreSQL backend pid from the current DMS PostgreSQL lock snapshot. * @summary Get PostgreSQL session lock analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSessionLockAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSessionLockAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.pid, options).then((request) => request(this.axios, this.basePath)); } /** * Get a read-only PostgreSQL space snapshot from DMS and fixed backend-owned storage metrics. The response does not expose SQL, PromQL, storage history, or remediation actions. * @summary Get PostgreSQL space analysis * @param {DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public getDiagnosticsPostgresqlSpaceAnalysis(requestParameters: DiagnosticsApiGetDiagnosticsPostgresqlSpaceAnalysisRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).getDiagnosticsPostgresqlSpaceAnalysis(requestParameters.orgName, requestParameters.clusterName, requestParameters.databaseName, options).then((request) => request(this.axios, this.basePath)); } /** * Terminate a running query by query_id. In cluster mode KILL QUERY ON CLUSTER is used so the initial query and its remote sub-queries are terminated together; otherwise KILL QUERY runs on the connected node. * @summary Kill a ClickHouse query * @param {DiagnosticsApiKillDiagnosticsClickhouseQueryRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public killDiagnosticsClickhouseQuery(requestParameters: DiagnosticsApiKillDiagnosticsClickhouseQueryRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).killDiagnosticsClickhouseQuery(requestParameters.orgName, requestParameters.clusterName, requestParameters.queryId, options).then((request) => request(this.axios, this.basePath)); } /** * Rechecks startedAt before issuing KILL. Open transactions may roll back asynchronously. Never retry this operation automatically. * @summary Terminate the selected SQL Server user session * @param {DiagnosticsApiKillDiagnosticsMssqlSessionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public killDiagnosticsMssqlSession(requestParameters: DiagnosticsApiKillDiagnosticsMssqlSessionRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).killDiagnosticsMssqlSession(requestParameters.orgName, requestParameters.clusterName, requestParameters.sessionId, requestParameters.startedAt, options).then((request) => request(this.axios, this.basePath)); } /** * List active queries from system.processes across every shard and replica via clusterAllReplicas. Returns elapsed time, current and peak memory usage, read/write progress and the server host for each query so long-running or memory-heavy queries can be located quickly. The diagnostics query itself is excluded from the result. * @summary List active ClickHouse queries * @param {DiagnosticsApiListDiagnosticsClickhouseSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsClickhouseSessions(requestParameters: DiagnosticsApiListDiagnosticsClickhouseSessionsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsClickhouseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.orderBy, requestParameters.database, options).then((request) => request(this.axios, this.basePath)); } /** * List Dameng sessions from V$SESSIONS with lock status from V$LOCK. Returns session ID, user, state, client IP, transaction ID, lock status, SQL text, schema, duration, and more. * @summary List Dameng sessions * @param {DiagnosticsApiListDiagnosticsDamengSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsDamengSessions(requestParameters: DiagnosticsApiListDiagnosticsDamengSessionsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsDamengSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.state, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List active Elasticsearch shard recoveries * @param {DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsElasticsearchRecoveries(requestParameters: DiagnosticsApiListDiagnosticsElasticsearchRecoveriesRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsElasticsearchRecoveries(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.node, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List Elasticsearch shards * @param {DiagnosticsApiListDiagnosticsElasticsearchShardsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsElasticsearchShards(requestParameters: DiagnosticsApiListDiagnosticsElasticsearchShardsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsElasticsearchShards(requestParameters.orgName, requestParameters.clusterName, requestParameters.index, requestParameters.node, requestParameters.state, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List Kingbase session diagnostics * @param {DiagnosticsApiListDiagnosticsKingbaseSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsKingbaseSessions(requestParameters: DiagnosticsApiListDiagnosticsKingbaseSessionsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsKingbaseSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath)); } /** * * @summary List SQL Server sessions * @param {DiagnosticsApiListDiagnosticsMssqlSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsMssqlSessions(requestParameters: DiagnosticsApiListDiagnosticsMssqlSessionsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsMssqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, requestParameters.activeOnly, options).then((request) => request(this.axios, this.basePath)); } /** * List PostgreSQL session basic diagnostics records. The response includes waitEventType and waitEvent so clients can identify lock-waiting sessions without loading lock rows. * @summary List PostgreSQL session basic diagnostics * @param {DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DiagnosticsApi */ public listDiagnosticsPostgresqlSessions(requestParameters: DiagnosticsApiListDiagnosticsPostgresqlSessionsRequest, options?: RawAxiosRequestConfig) { return DiagnosticsApiFp(this.configuration).listDiagnosticsPostgresqlSessions(requestParameters.orgName, requestParameters.clusterName, requestParameters.limit, options).then((request) => request(this.axios, this.basePath)); } }