/** * Admin API * The Admin API is used to manage the ApeCloud platform. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { type RequestArgs, BaseAPI } from '../base'; import type { AggregateTaskResultList } from '../models'; import type { AggregateTaskResultType } from '../models'; import type { AggregateTaskType } from '../models'; import type { AutoInspection } from '../models'; import type { AutoInspectionResourceType } from '../models'; import type { InspectionScript } from '../models'; import type { InspectionTask } from '../models'; import type { InspectionTaskCreate } from '../models'; import type { InspectionTaskFormat } from '../models'; /** * InspectionApi - axios parameter creator * @export */ export declare const InspectionApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @summary Create inspection cron job * @param {AutoInspection} autoInspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAutoInspection: (autoInspection: AutoInspection, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Create inspection script * @param {InspectionScript} inspectionScript * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionScript: (inspectionScript: InspectionScript, options?: RawAxiosRequestConfig) => Promise; /** * * @summary create inspection task by env * @param {string} environmentName name of the environment * @param {InspectionTask} inspectionTask * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionTaskByEnv: (environmentName: string, inspectionTask: InspectionTask, options?: RawAxiosRequestConfig) => Promise; /** * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts. * @summary Trigger inspection for selected clusters in an organization * @param {string} orgName name of the Org * @param {InspectionTaskCreate} inspectionTaskCreate * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionTaskByOrg: (orgName: string, inspectionTaskCreate: InspectionTaskCreate, options?: RawAxiosRequestConfig) => Promise; /** * * @summary delete auto inspection * @param {string} id id of the auto inspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAutoInspection: (id: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Delete inspection script * @param {string} scriptId id of the inspection script * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteInspectionScript: (scriptId: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary get aggregate task result * @param {AggregateTaskType} aggregateType the type of the aggregate task * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [engine] the engine of the task * @param {string} [resourceName] only show the result of the specific organization or environment * @param {AggregateTaskResultType} [resultType] result of the task * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAggregateTaskResult: (aggregateType: AggregateTaskType, start: number, end: number, engine?: string, resourceName?: string, resultType?: AggregateTaskResultType, options?: RawAxiosRequestConfig) => Promise; /** * * @summary get auto inspection * @param {string} [id] id of the auto inspection * @param {string} [orgName] name of the Org * @param {string} [envName] name of the environment * @param {string} [clusterName] name of the cluster, must be used with orgName * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAutoInspection: (id?: string, orgName?: string, envName?: string, clusterName?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary get inspection task by env * @param {string} environmentName name of the environment * @param {string} taskId list task details if specified * @param {InspectionTaskFormat} [format] the format of the task * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInspectionTaskByEnv: (environmentName: string, taskId: string, format?: InspectionTaskFormat, options?: RawAxiosRequestConfig) => Promise; /** * * @summary get inspection task by org * @param {string} orgName name of the Org * @param {string} taskId list task details if specified * @param {InspectionTaskFormat} [format] the format of the task * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInspectionTaskByOrg: (orgName: string, taskId: string, format?: InspectionTaskFormat, options?: RawAxiosRequestConfig) => Promise; /** * * @summary list auto inspections * @param {AutoInspectionResourceType} resourceType type of the auto inspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAutoInspections: (resourceType: AutoInspectionResourceType, options?: RawAxiosRequestConfig) => Promise; /** * * @summary list inspection scripts * @param {string} [orgNames] name of the Org, multiple orgs separated by \',\', if not provided, return all scripts * @param {string} [engines] query by, such as \"node\"/\"mysql\", multiple engines separated by \',\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionScripts: (orgNames?: string, engines?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary list inspection tasks by env * @param {string} environmentName name of the environment * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [nodeName] list tasks for the specified node * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionTasksByEnv: (environmentName: string, start: number, end: number, nodeName?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary list inspection tasks by org * @param {string} orgName name of the Org * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [clusterId] list tasks for the specified cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionTasksByOrg: (orgName: string, start: number, end: number, clusterId?: string, options?: RawAxiosRequestConfig) => Promise; /** * * @summary update auto inspection * @param {string} id id of the auto inspection * @param {AutoInspection} autoInspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAutoInspection: (id: string, autoInspection: AutoInspection, options?: RawAxiosRequestConfig) => Promise; /** * * @summary Update inspection script * @param {string} scriptId id of the inspection script * @param {InspectionScript} inspectionScript * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateInspectionScript: (scriptId: string, inspectionScript: InspectionScript, options?: RawAxiosRequestConfig) => Promise; }; /** * InspectionApi - functional programming interface * @export */ export declare const InspectionApiFp: (configuration?: Configuration) => { /** * * @summary Create inspection cron job * @param {AutoInspection} autoInspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAutoInspection(autoInspection: AutoInspection, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Create inspection script * @param {InspectionScript} inspectionScript * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionScript(inspectionScript: InspectionScript, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary create inspection task by env * @param {string} environmentName name of the environment * @param {InspectionTask} inspectionTask * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionTaskByEnv(environmentName: string, inspectionTask: InspectionTask, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts. * @summary Trigger inspection for selected clusters in an organization * @param {string} orgName name of the Org * @param {InspectionTaskCreate} inspectionTaskCreate * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionTaskByOrg(orgName: string, inspectionTaskCreate: InspectionTaskCreate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary delete auto inspection * @param {string} id id of the auto inspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAutoInspection(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Delete inspection script * @param {string} scriptId id of the inspection script * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteInspectionScript(scriptId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary get aggregate task result * @param {AggregateTaskType} aggregateType the type of the aggregate task * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [engine] the engine of the task * @param {string} [resourceName] only show the result of the specific organization or environment * @param {AggregateTaskResultType} [resultType] result of the task * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAggregateTaskResult(aggregateType: AggregateTaskType, start: number, end: number, engine?: string, resourceName?: string, resultType?: AggregateTaskResultType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary get auto inspection * @param {string} [id] id of the auto inspection * @param {string} [orgName] name of the Org * @param {string} [envName] name of the environment * @param {string} [clusterName] name of the cluster, must be used with orgName * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAutoInspection(id?: string, orgName?: string, envName?: string, clusterName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary get inspection task by env * @param {string} environmentName name of the environment * @param {string} taskId list task details if specified * @param {InspectionTaskFormat} [format] the format of the task * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInspectionTaskByEnv(environmentName: string, taskId: string, format?: InspectionTaskFormat, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary get inspection task by org * @param {string} orgName name of the Org * @param {string} taskId list task details if specified * @param {InspectionTaskFormat} [format] the format of the task * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInspectionTaskByOrg(orgName: string, taskId: string, format?: InspectionTaskFormat, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary list auto inspections * @param {AutoInspectionResourceType} resourceType type of the auto inspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAutoInspections(resourceType: AutoInspectionResourceType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * * @summary list inspection scripts * @param {string} [orgNames] name of the Org, multiple orgs separated by \',\', if not provided, return all scripts * @param {string} [engines] query by, such as \"node\"/\"mysql\", multiple engines separated by \',\' * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionScripts(orgNames?: string, engines?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * * @summary list inspection tasks by env * @param {string} environmentName name of the environment * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [nodeName] list tasks for the specified node * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionTasksByEnv(environmentName: string, start: number, end: number, nodeName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * * @summary list inspection tasks by org * @param {string} orgName name of the Org * @param {number} start The start of the time range for the query, unit is seconds. * @param {number} end The end of the time range for the query, unit is seconds. * @param {string} [clusterId] list tasks for the specified cluster * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionTasksByOrg(orgName: string, start: number, end: number, clusterId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>>; /** * * @summary update auto inspection * @param {string} id id of the auto inspection * @param {AutoInspection} autoInspection * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAutoInspection(id: string, autoInspection: AutoInspection, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @summary Update inspection script * @param {string} scriptId id of the inspection script * @param {InspectionScript} inspectionScript * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateInspectionScript(scriptId: string, inspectionScript: InspectionScript, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * InspectionApi - factory interface * @export */ export declare const InspectionApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @summary Create inspection cron job * @param {InspectionApiCreateAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAutoInspection(requestParameters: InspectionApiCreateAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create inspection script * @param {InspectionApiCreateInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionScript(requestParameters: InspectionApiCreateInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary create inspection task by env * @param {InspectionApiCreateInspectionTaskByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionTaskByEnv(requestParameters: InspectionApiCreateInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts. * @summary Trigger inspection for selected clusters in an organization * @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary delete auto inspection * @param {InspectionApiDeleteAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteAutoInspection(requestParameters: InspectionApiDeleteAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete inspection script * @param {InspectionApiDeleteInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteInspectionScript(requestParameters: InspectionApiDeleteInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get aggregate task result * @param {InspectionApiGetAggregateTaskResultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAggregateTaskResult(requestParameters: InspectionApiGetAggregateTaskResultRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get auto inspection * @param {InspectionApiGetAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAutoInspection(requestParameters?: InspectionApiGetAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get inspection task by env * @param {InspectionApiGetInspectionTaskByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get inspection task by org * @param {InspectionApiGetInspectionTaskByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getInspectionTaskByOrg(requestParameters: InspectionApiGetInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary list auto inspections * @param {InspectionApiListAutoInspectionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAutoInspections(requestParameters: InspectionApiListAutoInspectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary list inspection scripts * @param {InspectionApiListInspectionScriptsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionScripts(requestParameters?: InspectionApiListInspectionScriptsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary list inspection tasks by env * @param {InspectionApiListInspectionTasksByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionTasksByEnv(requestParameters: InspectionApiListInspectionTasksByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary list inspection tasks by org * @param {InspectionApiListInspectionTasksByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInspectionTasksByOrg(requestParameters: InspectionApiListInspectionTasksByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary update auto inspection * @param {InspectionApiUpdateAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAutoInspection(requestParameters: InspectionApiUpdateAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update inspection script * @param {InspectionApiUpdateInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateInspectionScript(requestParameters: InspectionApiUpdateInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise; }; /** * InspectionApi - interface * @export * @interface InspectionApi */ export interface InspectionApiInterface { /** * * @summary Create inspection cron job * @param {InspectionApiCreateAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ createAutoInspection(requestParameters: InspectionApiCreateAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Create inspection script * @param {InspectionApiCreateInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ createInspectionScript(requestParameters: InspectionApiCreateInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary create inspection task by env * @param {InspectionApiCreateInspectionTaskByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ createInspectionTaskByEnv(requestParameters: InspectionApiCreateInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts. * @summary Trigger inspection for selected clusters in an organization * @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary delete auto inspection * @param {InspectionApiDeleteAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ deleteAutoInspection(requestParameters: InspectionApiDeleteAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Delete inspection script * @param {InspectionApiDeleteInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ deleteInspectionScript(requestParameters: InspectionApiDeleteInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get aggregate task result * @param {InspectionApiGetAggregateTaskResultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ getAggregateTaskResult(requestParameters: InspectionApiGetAggregateTaskResultRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get auto inspection * @param {InspectionApiGetAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ getAutoInspection(requestParameters?: InspectionApiGetAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get inspection task by env * @param {InspectionApiGetInspectionTaskByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary get inspection task by org * @param {InspectionApiGetInspectionTaskByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ getInspectionTaskByOrg(requestParameters: InspectionApiGetInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary list auto inspections * @param {InspectionApiListAutoInspectionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ listAutoInspections(requestParameters: InspectionApiListAutoInspectionsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary list inspection scripts * @param {InspectionApiListInspectionScriptsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ listInspectionScripts(requestParameters?: InspectionApiListInspectionScriptsRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary list inspection tasks by env * @param {InspectionApiListInspectionTasksByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ listInspectionTasksByEnv(requestParameters: InspectionApiListInspectionTasksByEnvRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary list inspection tasks by org * @param {InspectionApiListInspectionTasksByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ listInspectionTasksByOrg(requestParameters: InspectionApiListInspectionTasksByOrgRequest, options?: RawAxiosRequestConfig): AxiosPromise>; /** * * @summary update auto inspection * @param {InspectionApiUpdateAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ updateAutoInspection(requestParameters: InspectionApiUpdateAutoInspectionRequest, options?: RawAxiosRequestConfig): AxiosPromise; /** * * @summary Update inspection script * @param {InspectionApiUpdateInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApiInterface */ updateInspectionScript(requestParameters: InspectionApiUpdateInspectionScriptRequest, options?: RawAxiosRequestConfig): AxiosPromise; } /** * Request parameters for createAutoInspection operation in InspectionApi. * @export * @interface InspectionApiCreateAutoInspectionRequest */ export interface InspectionApiCreateAutoInspectionRequest { /** * * @type {AutoInspection} * @memberof InspectionApiCreateAutoInspection */ readonly autoInspection: AutoInspection; } /** * Request parameters for createInspectionScript operation in InspectionApi. * @export * @interface InspectionApiCreateInspectionScriptRequest */ export interface InspectionApiCreateInspectionScriptRequest { /** * * @type {InspectionScript} * @memberof InspectionApiCreateInspectionScript */ readonly inspectionScript: InspectionScript; } /** * Request parameters for createInspectionTaskByEnv operation in InspectionApi. * @export * @interface InspectionApiCreateInspectionTaskByEnvRequest */ export interface InspectionApiCreateInspectionTaskByEnvRequest { /** * name of the environment * @type {string} * @memberof InspectionApiCreateInspectionTaskByEnv */ readonly environmentName: string; /** * * @type {InspectionTask} * @memberof InspectionApiCreateInspectionTaskByEnv */ readonly inspectionTask: InspectionTask; } /** * Request parameters for createInspectionTaskByOrg operation in InspectionApi. * @export * @interface InspectionApiCreateInspectionTaskByOrgRequest */ export interface InspectionApiCreateInspectionTaskByOrgRequest { /** * name of the Org * @type {string} * @memberof InspectionApiCreateInspectionTaskByOrg */ readonly orgName: string; /** * * @type {InspectionTaskCreate} * @memberof InspectionApiCreateInspectionTaskByOrg */ readonly inspectionTaskCreate: InspectionTaskCreate; } /** * Request parameters for deleteAutoInspection operation in InspectionApi. * @export * @interface InspectionApiDeleteAutoInspectionRequest */ export interface InspectionApiDeleteAutoInspectionRequest { /** * id of the auto inspection * @type {string} * @memberof InspectionApiDeleteAutoInspection */ readonly id: string; } /** * Request parameters for deleteInspectionScript operation in InspectionApi. * @export * @interface InspectionApiDeleteInspectionScriptRequest */ export interface InspectionApiDeleteInspectionScriptRequest { /** * id of the inspection script * @type {string} * @memberof InspectionApiDeleteInspectionScript */ readonly scriptId: string; } /** * Request parameters for getAggregateTaskResult operation in InspectionApi. * @export * @interface InspectionApiGetAggregateTaskResultRequest */ export interface InspectionApiGetAggregateTaskResultRequest { /** * the type of the aggregate task * @type {AggregateTaskType} * @memberof InspectionApiGetAggregateTaskResult */ readonly aggregateType: AggregateTaskType; /** * The start of the time range for the query, unit is seconds. * @type {number} * @memberof InspectionApiGetAggregateTaskResult */ readonly start: number; /** * The end of the time range for the query, unit is seconds. * @type {number} * @memberof InspectionApiGetAggregateTaskResult */ readonly end: number; /** * the engine of the task * @type {string} * @memberof InspectionApiGetAggregateTaskResult */ readonly engine?: string; /** * only show the result of the specific organization or environment * @type {string} * @memberof InspectionApiGetAggregateTaskResult */ readonly resourceName?: string; /** * result of the task * @type {AggregateTaskResultType} * @memberof InspectionApiGetAggregateTaskResult */ readonly resultType?: AggregateTaskResultType; } /** * Request parameters for getAutoInspection operation in InspectionApi. * @export * @interface InspectionApiGetAutoInspectionRequest */ export interface InspectionApiGetAutoInspectionRequest { /** * id of the auto inspection * @type {string} * @memberof InspectionApiGetAutoInspection */ readonly id?: string; /** * name of the Org * @type {string} * @memberof InspectionApiGetAutoInspection */ readonly orgName?: string; /** * name of the environment * @type {string} * @memberof InspectionApiGetAutoInspection */ readonly envName?: string; /** * name of the cluster, must be used with orgName * @type {string} * @memberof InspectionApiGetAutoInspection */ readonly clusterName?: string; } /** * Request parameters for getInspectionTaskByEnv operation in InspectionApi. * @export * @interface InspectionApiGetInspectionTaskByEnvRequest */ export interface InspectionApiGetInspectionTaskByEnvRequest { /** * name of the environment * @type {string} * @memberof InspectionApiGetInspectionTaskByEnv */ readonly environmentName: string; /** * list task details if specified * @type {string} * @memberof InspectionApiGetInspectionTaskByEnv */ readonly taskId: string; /** * the format of the task * @type {InspectionTaskFormat} * @memberof InspectionApiGetInspectionTaskByEnv */ readonly format?: InspectionTaskFormat; } /** * Request parameters for getInspectionTaskByOrg operation in InspectionApi. * @export * @interface InspectionApiGetInspectionTaskByOrgRequest */ export interface InspectionApiGetInspectionTaskByOrgRequest { /** * name of the Org * @type {string} * @memberof InspectionApiGetInspectionTaskByOrg */ readonly orgName: string; /** * list task details if specified * @type {string} * @memberof InspectionApiGetInspectionTaskByOrg */ readonly taskId: string; /** * the format of the task * @type {InspectionTaskFormat} * @memberof InspectionApiGetInspectionTaskByOrg */ readonly format?: InspectionTaskFormat; } /** * Request parameters for listAutoInspections operation in InspectionApi. * @export * @interface InspectionApiListAutoInspectionsRequest */ export interface InspectionApiListAutoInspectionsRequest { /** * type of the auto inspection * @type {AutoInspectionResourceType} * @memberof InspectionApiListAutoInspections */ readonly resourceType: AutoInspectionResourceType; } /** * Request parameters for listInspectionScripts operation in InspectionApi. * @export * @interface InspectionApiListInspectionScriptsRequest */ export interface InspectionApiListInspectionScriptsRequest { /** * name of the Org, multiple orgs separated by \',\', if not provided, return all scripts * @type {string} * @memberof InspectionApiListInspectionScripts */ readonly orgNames?: string; /** * query by, such as \"node\"/\"mysql\", multiple engines separated by \',\' * @type {string} * @memberof InspectionApiListInspectionScripts */ readonly engines?: string; } /** * Request parameters for listInspectionTasksByEnv operation in InspectionApi. * @export * @interface InspectionApiListInspectionTasksByEnvRequest */ export interface InspectionApiListInspectionTasksByEnvRequest { /** * name of the environment * @type {string} * @memberof InspectionApiListInspectionTasksByEnv */ readonly environmentName: string; /** * The start of the time range for the query, unit is seconds. * @type {number} * @memberof InspectionApiListInspectionTasksByEnv */ readonly start: number; /** * The end of the time range for the query, unit is seconds. * @type {number} * @memberof InspectionApiListInspectionTasksByEnv */ readonly end: number; /** * list tasks for the specified node * @type {string} * @memberof InspectionApiListInspectionTasksByEnv */ readonly nodeName?: string; } /** * Request parameters for listInspectionTasksByOrg operation in InspectionApi. * @export * @interface InspectionApiListInspectionTasksByOrgRequest */ export interface InspectionApiListInspectionTasksByOrgRequest { /** * name of the Org * @type {string} * @memberof InspectionApiListInspectionTasksByOrg */ readonly orgName: string; /** * The start of the time range for the query, unit is seconds. * @type {number} * @memberof InspectionApiListInspectionTasksByOrg */ readonly start: number; /** * The end of the time range for the query, unit is seconds. * @type {number} * @memberof InspectionApiListInspectionTasksByOrg */ readonly end: number; /** * list tasks for the specified cluster * @type {string} * @memberof InspectionApiListInspectionTasksByOrg */ readonly clusterId?: string; } /** * Request parameters for updateAutoInspection operation in InspectionApi. * @export * @interface InspectionApiUpdateAutoInspectionRequest */ export interface InspectionApiUpdateAutoInspectionRequest { /** * id of the auto inspection * @type {string} * @memberof InspectionApiUpdateAutoInspection */ readonly id: string; /** * * @type {AutoInspection} * @memberof InspectionApiUpdateAutoInspection */ readonly autoInspection: AutoInspection; } /** * Request parameters for updateInspectionScript operation in InspectionApi. * @export * @interface InspectionApiUpdateInspectionScriptRequest */ export interface InspectionApiUpdateInspectionScriptRequest { /** * id of the inspection script * @type {string} * @memberof InspectionApiUpdateInspectionScript */ readonly scriptId: string; /** * * @type {InspectionScript} * @memberof InspectionApiUpdateInspectionScript */ readonly inspectionScript: InspectionScript; } /** * InspectionApi - object-oriented interface * @export * @class InspectionApi * @extends {BaseAPI} */ export declare class InspectionApi extends BaseAPI implements InspectionApiInterface { /** * * @summary Create inspection cron job * @param {InspectionApiCreateAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ createAutoInspection(requestParameters: InspectionApiCreateAutoInspectionRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Create inspection script * @param {InspectionApiCreateInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ createInspectionScript(requestParameters: InspectionApiCreateInspectionScriptRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary create inspection task by env * @param {InspectionApiCreateInspectionTaskByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ createInspectionTaskByEnv(requestParameters: InspectionApiCreateInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): Promise>; /** * Creates one inspection task per matching non-stopped cluster in the path organization. Omit engines or pass an empty array to select all engines. Omit clusterIDs or pass an empty array to select all clusters. When both arrays are non-empty, clusters must match both filters. All tasks and items are persisted in one transaction before asynchronous execution starts. * @summary Trigger inspection for selected clusters in an organization * @param {InspectionApiCreateInspectionTaskByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ createInspectionTaskByOrg(requestParameters: InspectionApiCreateInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary delete auto inspection * @param {InspectionApiDeleteAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ deleteAutoInspection(requestParameters: InspectionApiDeleteAutoInspectionRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Delete inspection script * @param {InspectionApiDeleteInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ deleteInspectionScript(requestParameters: InspectionApiDeleteInspectionScriptRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary get aggregate task result * @param {InspectionApiGetAggregateTaskResultRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ getAggregateTaskResult(requestParameters: InspectionApiGetAggregateTaskResultRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary get auto inspection * @param {InspectionApiGetAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ getAutoInspection(requestParameters?: InspectionApiGetAutoInspectionRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary get inspection task by env * @param {InspectionApiGetInspectionTaskByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ getInspectionTaskByEnv(requestParameters: InspectionApiGetInspectionTaskByEnvRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary get inspection task by org * @param {InspectionApiGetInspectionTaskByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ getInspectionTaskByOrg(requestParameters: InspectionApiGetInspectionTaskByOrgRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary list auto inspections * @param {InspectionApiListAutoInspectionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ listAutoInspections(requestParameters: InspectionApiListAutoInspectionsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary list inspection scripts * @param {InspectionApiListInspectionScriptsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ listInspectionScripts(requestParameters?: InspectionApiListInspectionScriptsRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary list inspection tasks by env * @param {InspectionApiListInspectionTasksByEnvRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ listInspectionTasksByEnv(requestParameters: InspectionApiListInspectionTasksByEnvRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary list inspection tasks by org * @param {InspectionApiListInspectionTasksByOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ listInspectionTasksByOrg(requestParameters: InspectionApiListInspectionTasksByOrgRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary update auto inspection * @param {InspectionApiUpdateAutoInspectionRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ updateAutoInspection(requestParameters: InspectionApiUpdateAutoInspectionRequest, options?: RawAxiosRequestConfig): Promise>; /** * * @summary Update inspection script * @param {InspectionApiUpdateInspectionScriptRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InspectionApi */ updateInspectionScript(requestParameters: InspectionApiUpdateInspectionScriptRequest, options?: RawAxiosRequestConfig): Promise>; } //# sourceMappingURL=inspection-api.d.ts.map