/** * 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 { InspectionCriticality } from './inspection-criticality'; import type { InspectionThresholdDirection } from './inspection-threshold-direction'; import type { LocalizedDescription } from './localized-description'; /** * * @export * @interface InspectionTaskItem */ export interface InspectionTaskItem { /** * * @type {string} * @memberof InspectionTaskItem */ 'id'?: string; /** * * @type {string} * @memberof InspectionTaskItem */ 'taskID'?: string; /** * * @type {string} * @memberof InspectionTaskItem */ 'scriptID'?: string; /** * * @type {LocalizedDescription} * @memberof InspectionTaskItem */ 'scriptName'?: LocalizedDescription; /** * * @type {LocalizedDescription} * @memberof InspectionTaskItem */ 'scriptDescription'?: LocalizedDescription; /** * Category used to group inspection items, such as availability, performance, capacity, or backup. * @type {string} * @memberof InspectionTaskItem */ 'scriptCategory'?: string; /** * Type of the inspected resource, such as cluster or node; resourceID and resourceName identify the target. * @type {string} * @memberof InspectionTaskItem */ 'resourceType'?: string; /** * * @type {string} * @memberof InspectionTaskItem */ 'resourceID'?: string; /** * * @type {string} * @memberof InspectionTaskItem */ 'resourceName'?: string; /** * Execution state, such as Running, Completed, or Failed. Use severity for the health conclusion. For manual items, Completed means instructions are available, not that the user has performed them. * @type {string} * @memberof InspectionTaskItem */ 'status'?: string; /** * Textual observation or execution message for display. It may contain nonnumeric information or an error; use severity for the health conclusion. Manual instructions are stored in evidence.ruleSnapshot.scriptExpr. * @type {string} * @memberof InspectionTaskItem */ 'result'?: string; /** * Numeric observation when available, including numeric information collected by info items. Omitted when no numeric observation exists, including manual guidance. Use with unit and thresholds for numeric displays. * @type {number} * @memberof InspectionTaskItem */ 'valueNum'?: number | null; /** * Warning threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric warning threshold is configured. * @type {number} * @memberof InspectionTaskItem */ 'warnThreshold'?: number | null; /** * Critical threshold interpreted using direction and the same unit as valueNum. Omitted when no numeric critical threshold is configured. * @type {number} * @memberof InspectionTaskItem */ 'critThreshold'?: number | null; /** * * @type {InspectionThresholdDirection} * @memberof InspectionTaskItem */ 'direction'?: InspectionThresholdDirection; /** * * @type {InspectionCriticality} * @memberof InspectionTaskItem */ 'criticality'?: InspectionCriticality; /** * Structured evidence used to explain the item result. Unavailable or invalid evidence from any collection source, including Prometheus/exporters and DMS, is reported as unknown instead of being converted into a healthy or unhealthy conclusion. * @type {{ [key: string]: any; }} * @memberof InspectionTaskItem */ 'evidence'?: { [key: string]: any; }; /** * Item-level timestamp for when this item\'s status was last evaluated or changed. * @type {string} * @memberof InspectionTaskItem */ 'statusChangedAt'?: string; /** * * @type {LocalizedDescription} * @memberof InspectionTaskItem */ 'remediation'?: LocalizedDescription; /** * Link to documentation explaining this inspection item and recommended actions. * @type {string} * @memberof InspectionTaskItem */ 'docLink'?: string; /** * Health conclusion: red (critical), yellow (warning), green (healthy), unknown (cannot evaluate), or info (automatically collected information). Manual guidance returns unknown and retains its criticality. Unknown and info do not contribute to health scoring; Completed for manual guidance means instructions are available, not user completion. * @type {string} * @memberof InspectionTaskItem */ 'severity'?: string; /** * Display unit for the inspection result and thresholds, such as percent, seconds, or bytes. Empty when no unit applies. * @type {string} * @memberof InspectionTaskItem */ 'unit'?: string; /** * * @type {string} * @memberof InspectionTaskItem */ 'createdAt'?: string; /** * * @type {string} * @memberof InspectionTaskItem */ 'updatedAt'?: string; } //# sourceMappingURL=inspection-task-item.d.ts.map