// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ListPrometheusAlertRulesRequestTags extends $dara.Model { /** * @remarks * The tag key. * * @example * owner */ key?: string; /** * @remarks * The tag value. * * @example * zhangsan */ value?: string; static names(): { [key: string]: string } { return { key: 'Key', value: 'Value', }; } static types(): { [key: string]: any } { return { key: 'string', value: 'string', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ListPrometheusAlertRulesRequest extends $dara.Model { /** * @remarks * The ID of the cluster. * * This parameter is required. * * @example * c0bad479465464e1d8c1e641b0afb**** */ clusterId?: string; /** * @remarks * The tag match conditions that are described in a JSON string. For more information about this parameter, see the **Additional description of the MatchExpressions parameter** section. * * @example * [{"key":"severity","value":"critical","operator":"re"}] */ matchExpressions?: string; /** * @remarks * The name of the alert rule. * * @example * Prometheus_Alert */ name?: string; /** * @remarks * The region ID of the instance. * * This parameter is required. * * @example * cn-hangzhou */ regionId?: string; /** * @remarks * Specifies whether the alert rule is enabled. Valid values: * * - 1: enables the alert rule. * - 0: disables the alert rule. * * @example * 1 */ status?: number; /** * @remarks * The tags. */ tags?: ListPrometheusAlertRulesRequestTags[]; /** * @remarks * The type of the alert rule. * * @example * Custom */ type?: string; static names(): { [key: string]: string } { return { clusterId: 'ClusterId', matchExpressions: 'MatchExpressions', name: 'Name', regionId: 'RegionId', status: 'Status', tags: 'Tags', type: 'Type', }; } static types(): { [key: string]: any } { return { clusterId: 'string', matchExpressions: 'string', name: 'string', regionId: 'string', status: 'number', tags: { 'type': 'array', 'itemType': ListPrometheusAlertRulesRequestTags }, type: 'string', }; } validate() { if(Array.isArray(this.tags)) { $dara.Model.validateArray(this.tags); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }