import { ArmResource } from '@yetics/armkit-core' ; import { Construct } from 'constructs' ; schema export class SmartDetectorAlertRules extends ArmResource { param scope param name param options public constructor ( scope , name , options ) { super ( scope , name , { ... options , armResourceType : 'smartDetectorAlertRules' , } ) ; } } schema export interface SmartDetectorAlertRulesOptions { schema readonly apiVersion ? : MicrosoftAlertsManagementSmartDetectorAlertRulesApiVersion ; schema readonly location ? : string ; schema readonly name : string ; schema readonly properties : AlertRuleProperties ; schema readonly tags ? : MicrosoftAlertsManagementSmartDetectorAlertRulesTags ; schema readonly type : MicrosoftAlertsManagementSmartDetectorAlertRulesType ; } export enum MicrosoftAlertsManagementSmartDetectorAlertRulesApiVersion { "MicrosoftAlertsManagementSmartDetectorAlertRulesApiVersion_2021_04_01" = '2021-04-01' } schema export interface AlertRuleProperties { schema readonly actionGroups : ActionGroupsInformation ; schema readonly description ? : string ; schema readonly detector : Detector ; schema readonly frequency : string ; schema readonly scope : string [ ] ; schema readonly severity : AlertRulePropertiesSeverity ; schema readonly state : AlertRulePropertiesState ; schema readonly throttling ? : ThrottlingInformation ; } schema export interface MicrosoftAlertsManagementSmartDetectorAlertRulesTags { } export enum MicrosoftAlertsManagementSmartDetectorAlertRulesType { "MicrosoftAlertsManagementSmartDetectorAlertRulesType_MICROSOFT_ALERTS_MANAGEMENT_SMART_DETECTOR_ALERT_RULES" = 'microsoft.alertsManagement/smartDetectorAlertRules' } schema export interface ActionGroupsInformation { schema readonly customEmailSubject ? : string ; schema readonly customWebhookPayload ? : string ; schema readonly groupIds : string [ ] ; } schema export interface Detector { schema readonly id : string ; schema readonly parameters ? : DetectorParameters ; } export enum AlertRulePropertiesSeverity { "AlertRulePropertiesSeverity_SEV0" = 'Sev0' , "AlertRulePropertiesSeverity_SEV1" = 'Sev1' , "AlertRulePropertiesSeverity_SEV2" = 'Sev2' , "AlertRulePropertiesSeverity_SEV3" = 'Sev3' , "AlertRulePropertiesSeverity_SEV4" = 'Sev4' } export enum AlertRulePropertiesState { ENABLED = 'Enabled' , DISABLED = 'Disabled' } schema export interface ThrottlingInformation { schema readonly duration ? : string ; } schema export interface DetectorParameters { }