/* tslint:disable */ /* eslint-disable */ /** * Admin API * The Admin API is used to manage the ApeCloud platform. * * The version of the OpenAPI document: 1.0.0 * Contact: support@apecloud.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ // May contain unused imports in some cases // @ts-ignore import type { InspectionCriticality } from './inspection-criticality'; // May contain unused imports in some cases // @ts-ignore import type { InspectionEvaluationMode } from './inspection-evaluation-mode'; // May contain unused imports in some cases // @ts-ignore import type { InspectionScriptCategory } from './inspection-script-category'; // May contain unused imports in some cases // @ts-ignore import type { InspectionThresholdDirection } from './inspection-threshold-direction'; // May contain unused imports in some cases // @ts-ignore import type { LocalizedDescription } from './localized-description'; /** * * @export * @interface InspectionScript */ export interface InspectionScript { /** * * @type {string} * @memberof InspectionScript */ 'id'?: string; /** * * @type {string} * @memberof InspectionScript */ 'name': string; /** * * @type {LocalizedDescription} * @memberof InspectionScript */ 'displayName'?: LocalizedDescription; /** * The engine type this script is applicable to, such as cluster, mysql, node * @type {string} * @memberof InspectionScript */ 'engine': string; /** * The type of the script, such as \"promQL\" or \"manual\" (requires evaluationMode=manual) * @type {string} * @memberof InspectionScript */ 'type': string; /** * * @type {InspectionScriptCategory} * @memberof InspectionScript */ 'category': InspectionScriptCategory; /** * * @type {LocalizedDescription} * @memberof InspectionScript */ 'description'?: LocalizedDescription; /** * Collector expression for automatic modes; complete user instructions (up to 8192 UTF-8 bytes) for manual mode. Manual placeholders are not rendered. * @type {string} * @memberof InspectionScript */ 'scriptExpr': string; /** * * @type {InspectionEvaluationMode} * @memberof InspectionScript */ 'evaluationMode'?: InspectionEvaluationMode; /** * * @type {string} * @memberof InspectionScript */ 'checkExpr'?: string; /** * * @type {InspectionCriticality} * @memberof InspectionScript */ 'criticality'?: InspectionCriticality; /** * First-version warning threshold assumption. It documents the script contract and is not a permanent product conclusion. * @type {number} * @memberof InspectionScript */ 'warnThreshold'?: number | null; /** * First-version critical threshold assumption. It documents the script contract and is not a permanent product conclusion. * @type {number} * @memberof InspectionScript */ 'critThreshold'?: number | null; /** * * @type {InspectionThresholdDirection} * @memberof InspectionScript */ 'direction'?: InspectionThresholdDirection; /** * * @type {LocalizedDescription} * @memberof InspectionScript */ 'remediation'?: LocalizedDescription; /** * * @type {string} * @memberof InspectionScript */ 'docLink'?: string; /** * scope type, such as \"system\"/\"global\"/\"org\" * @type {string} * @memberof InspectionScript */ 'scopeType': string; /** * The identifier of the scope, such as org_id * @type {string} * @memberof InspectionScript */ 'scopeID'?: string; /** * The identifier of the scope, such as org_name * @type {string} * @memberof InspectionScript */ 'scopeName'?: string; /** * * @type {boolean} * @memberof InspectionScript */ 'enabled': boolean; /** * * @type {string} * @memberof InspectionScript */ 'unit'?: string; /** * Timestamp of creation time * @type {number} * @memberof InspectionScript */ 'createdAt'?: number; /** * Timestamp of update time * @type {number} * @memberof InspectionScript */ 'updatedAt'?: number; }