// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; import { AlertRuleV2 } from "./AlertRuleV2"; export class ManageAlertRulesResult extends $dara.Model { /** * @remarks * The V2 alert rule. * * @example * {"uuid":"cms_v2_81d01768-fee9-459f-af49-ab2704f1db2b","displayName":"drill-e2e-验证规则","enabled":true} */ alertRule?: AlertRuleV2; /** * @remarks * The number of successfully deleted rules. * * @example * 1 */ deletedCount?: number; /** * @remarks * The list of UUIDs of successfully deleted rules. * * @example * ["cms_v2_81d01768-fee9-459f-af49-ab2704f1db2b"] */ deletedUuidList?: string[]; /** * @remarks * The unique identifier of the current alert drill (returned only when action=DRILL_ALERT). The drill is an asynchronous operation. The drillUuid is returned immediately after the API accepts the request. The alert events generated by the drill are stored in the database and carry the labels _cms_alert_drill=true, _cms_alert_drill_uuid=drillUuid, and _cms_alert_drill_request_id=request ID of the current call for tracing. You can use the existing event query API to retrieve the OCCURRED, PERSISTENT, or RECOVERED events generated by the drill based on these labels. * * @example * 7c27ee14-5f94-469f-912d-476f79c8a861 */ drillUuid?: string; /** * @remarks * The number of successfully enabled or disabled rules. * * @example * 1 */ updatedCount?: number; /** * @remarks * The list of UUIDs of successfully enabled or disabled rules. * * @example * ["a1b2c3d4-e5f6-7890-abcd-ef1234567890","b2c3d4e5-f6a7-8901-bcde-f12345678901"] */ updatedUuidList?: string[]; static names(): { [key: string]: string } { return { alertRule: 'alertRule', deletedCount: 'deletedCount', deletedUuidList: 'deletedUuidList', drillUuid: 'drillUuid', updatedCount: 'updatedCount', updatedUuidList: 'updatedUuidList', }; } static types(): { [key: string]: any } { return { alertRule: AlertRuleV2, deletedCount: 'number', deletedUuidList: { 'type': 'array', 'itemType': 'string' }, drillUuid: 'string', updatedCount: 'number', updatedUuidList: { 'type': 'array', 'itemType': 'string' }, }; } validate() { if(this.alertRule && typeof (this.alertRule as any).validate === 'function') { (this.alertRule as any).validate(); } if(Array.isArray(this.deletedUuidList)) { $dara.Model.validateArray(this.deletedUuidList); } if(Array.isArray(this.updatedUuidList)) { $dara.Model.validateArray(this.updatedUuidList); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }