// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class GetClusterInspectReportDetailResponseBodyCheckItemResults extends $dara.Model { /** * @remarks * The category of the inspection item. Valid values: * - security: security and compliance * - performance: performance and efficiency * - stability: business stability * - limitation: service limits * - cost: cost optimization. * * @example * stability */ category?: string; /** * @remarks * The unique identifier of the inspection item. * * @example * APIServerClbInstanceStatus */ checkItemUid?: string; /** * @remarks * The description of the check item. * * @example * 集群API Server负载均衡实例异常会影响集群可用性,请检查负载均衡实例状态是否正常。 */ description?: string; /** * @remarks * The fix suggestion. * * @example * 请提交工单处理。 */ fix?: string; /** * @remarks * The level of the inspection item. Valid values: * - advice: suggestion * - warning: low-risk * - error: medium-risk * - critical: high-risk. * * @example * critical */ level?: string; /** * @remarks * The name of the check item. * * @example * API Server CLB 实例状态异常 */ name?: string; /** * @remarks * The check result. Valid values: * - true: The check item is abnormal. * - false: The check item is normal. * - disable: The check item is not enabled. * * @example * false */ result?: string; /** * @remarks * The resource type of the check target. * * @example * CLB */ targetType?: string; /** * @remarks * The list of check targets. */ targets?: string[]; static names(): { [key: string]: string } { return { category: 'category', checkItemUid: 'checkItemUid', description: 'description', fix: 'fix', level: 'level', name: 'name', result: 'result', targetType: 'targetType', targets: 'targets', }; } static types(): { [key: string]: any } { return { category: 'string', checkItemUid: 'string', description: 'string', fix: 'string', level: 'string', name: 'string', result: 'string', targetType: 'string', targets: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(Array.isArray(this.targets)) { $dara.Model.validateArray(this.targets); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetClusterInspectReportDetailResponseBodySummary extends $dara.Model { /** * @remarks * The number of check items with a result of advice. * * @example * 0 */ adviceCount?: number; /** * @remarks * The status code of the check task result. * * @example * warning */ code?: string; /** * @remarks * The number of check items with a result of error. * * @example * 0 */ errorCount?: number; /** * @remarks * The number of check items with a result of normal. * * @example * 10 */ normalCount?: number; /** * @remarks * The number of check items with a result of warning. * * @example * 1 */ warnCount?: number; static names(): { [key: string]: string } { return { adviceCount: 'adviceCount', code: 'code', errorCount: 'errorCount', normalCount: 'normalCount', warnCount: 'warnCount', }; } static types(): { [key: string]: any } { return { adviceCount: 'number', code: 'string', errorCount: 'number', normalCount: 'number', warnCount: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class GetClusterInspectReportDetailResponseBody extends $dara.Model { /** * @remarks * The list of results. */ checkItemResults?: GetClusterInspectReportDetailResponseBodyCheckItemResults[]; /** * @remarks * The completion time of the inspection report. * * @example * 2024-12-18T19:41:12.778433+08:00 */ endTime?: string; /** * @remarks * The pagination token. * * @example * AK8uQQrxgFK8sbARvnCj6w9R3kPme4I3 */ nextToken?: string; /** * @remarks * The inspection report ID. * * @example * 782df89346054a0000562063a**** */ reportId?: string; /** * @remarks * The request ID. * * @example * 49511F2D-D56A-5C24-B9AE-C8491E09B*** */ requestId?: string; /** * @remarks * The start time of the inspection report. * * @example * 2024-12-18T19:40:16.778333+08:00 */ startTime?: string; /** * @remarks * The generation status of the inspection report. Valid values: * - completed: Completed. * - running: In progress. * * @example * completed */ status?: string; /** * @remarks * The inspection report summary. */ summary?: GetClusterInspectReportDetailResponseBodySummary; static names(): { [key: string]: string } { return { checkItemResults: 'checkItemResults', endTime: 'endTime', nextToken: 'nextToken', reportId: 'reportId', requestId: 'requestId', startTime: 'startTime', status: 'status', summary: 'summary', }; } static types(): { [key: string]: any } { return { checkItemResults: { 'type': 'array', 'itemType': GetClusterInspectReportDetailResponseBodyCheckItemResults }, endTime: 'string', nextToken: 'string', reportId: 'string', requestId: 'string', startTime: 'string', status: 'string', summary: GetClusterInspectReportDetailResponseBodySummary, }; } validate() { if(Array.isArray(this.checkItemResults)) { $dara.Model.validateArray(this.checkItemResults); } if(this.summary && typeof (this.summary as any).validate === 'function') { (this.summary as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }