@@ -545,26 +545,26 @@ export class AlarmFactory {
545545 new AlarmNamingStrategy (
546546 props . globalAlarmDefaults . alarmNamePrefix ,
547547 props . localAlarmNamePrefix ,
548- props . globalAlarmDefaults . dedupeStringProcessor
548+ props . globalAlarmDefaults . dedupeStringProcessor ,
549549 ) ;
550550 }
551551
552552 addAlarm (
553553 metric : MetricWithAlarmSupport ,
554- props : AddAlarmProps
554+ props : AddAlarmProps ,
555555 ) : AlarmWithAnnotation {
556556 // adjust the metric
557557
558558 const metricAdjuster = props . metricAdjuster
559559 ? CompositeMetricAdjuster . of (
560560 props . metricAdjuster ,
561- DefaultMetricAdjuster . INSTANCE
561+ DefaultMetricAdjuster . INSTANCE ,
562562 )
563563 : DefaultMetricAdjuster . INSTANCE ;
564564 const adjustedMetric = metricAdjuster . adjustMetric (
565565 metric ,
566566 this . alarmScope ,
567- props
567+ props ,
568568 ) ;
569569
570570 // metric that will be ultimately used to create the alarm
@@ -574,11 +574,11 @@ export class AlarmFactory {
574574
575575 const actionsEnabled = this . determineActionsEnabled (
576576 props . actionsEnabled ,
577- props . disambiguator
577+ props . disambiguator ,
578578 ) ;
579579 const action = this . determineAction (
580580 props . disambiguator ,
581- props . actionOverride
581+ props . actionOverride ,
582582 ) ;
583583 const alarmName = this . alarmNamingStrategy . getName ( props ) ;
584584 const alarmNameSuffix = props . alarmNameSuffix ;
@@ -587,7 +587,7 @@ export class AlarmFactory {
587587 props . alarmDescription ,
588588 props . alarmDescriptionOverride ,
589589 props . runbookLink ,
590- props . documentationLink
590+ props . documentationLink ,
591591 ) ;
592592 const dedupeString = this . alarmNamingStrategy . getDedupeString ( props ) ;
593593 const evaluateLowSampleCountPercentile =
@@ -604,7 +604,7 @@ export class AlarmFactory {
604604
605605 if ( evaluationPeriods < datapointsToAlarm ) {
606606 throw new Error (
607- `evaluationPeriods must be greater than or equal to datapointsToAlarm for ${ alarmName } `
607+ `evaluationPeriods must be greater than or equal to datapointsToAlarm for ${ alarmName } ` ,
608608 ) ;
609609 }
610610
@@ -639,7 +639,7 @@ export class AlarmFactory {
639639 metricSampleCountId = props . sampleCountMetricId ;
640640 } else {
641641 throw new Error (
642- "sampleCountMetricId must be specified when using minSampleCountToEvaluateDatapoint with a multiple-metric MathExpression"
642+ "sampleCountMetricId must be specified when using minSampleCountToEvaluateDatapoint with a multiple-metric MathExpression" ,
643643 ) ;
644644 }
645645 } else {
@@ -704,18 +704,18 @@ export class AlarmFactory {
704704 datapointsToAlarm : 1 ,
705705 evaluationPeriods : 1 ,
706706 actionsEnabled,
707- }
707+ } ,
708708 ) ;
709709 alarm = new CompositeAlarm ( this . alarmScope , `${ alarmName } -WithSamples` , {
710710 actionsEnabled,
711711 compositeAlarmName : `${ alarmName } -WithSamples` ,
712712 alarmDescription : this . joinDescriptionParts (
713713 alarmDescription ,
714- `Min number of samples to alarm: ${ props . minMetricSamplesToAlarm } `
714+ `Min number of samples to alarm: ${ props . minMetricSamplesToAlarm } ` ,
715715 ) ,
716716 alarmRule : AlarmRule . allOf (
717717 AlarmRule . fromAlarm ( primaryAlarm , AlarmState . ALARM ) ,
718- AlarmRule . not ( AlarmRule . fromAlarm ( noSamplesAlarm , AlarmState . ALARM ) )
718+ AlarmRule . not ( AlarmRule . fromAlarm ( noSamplesAlarm , AlarmState . ALARM ) ) ,
719719 ) ,
720720 } ) ;
721721 }
@@ -769,7 +769,7 @@ export class AlarmFactory {
769769 alarmRuleWhenAlarming : AlarmRule . fromAlarm ( alarm , AlarmState . ALARM ) ,
770770 alarmRuleWhenInsufficientData : AlarmRule . fromAlarm (
771771 alarm ,
772- AlarmState . INSUFFICIENT_DATA
772+ AlarmState . INSUFFICIENT_DATA ,
773773 ) ,
774774 dedupeString,
775775 annotation,
@@ -779,11 +779,11 @@ export class AlarmFactory {
779779
780780 addCompositeAlarm (
781781 alarms : AlarmWithAnnotation [ ] ,
782- props : AddCompositeAlarmProps
782+ props : AddCompositeAlarmProps ,
783783 ) : CompositeAlarm {
784784 const actionsEnabled = this . determineActionsEnabled (
785785 props ?. actionsEnabled ,
786- props ?. disambiguator
786+ props ?. disambiguator ,
787787 ) ;
788788 const action =
789789 props . actionOverride ?? this . globalAlarmDefaults . action ?? noopAction ( ) ;
@@ -793,7 +793,7 @@ export class AlarmFactory {
793793 props ?. alarmDescription ?? "Composite alarm" ,
794794 props ?. alarmDescriptionOverride ,
795795 props ?. runbookLink ,
796- props ?. documentationLink
796+ props ?. documentationLink ,
797797 ) ;
798798 const dedupeString = this . alarmNamingStrategy . getDedupeString ( namingInput ) ;
799799 const alarmRule = this . determineCompositeAlarmRule ( alarms , props ) ;
@@ -822,7 +822,7 @@ export class AlarmFactory {
822822
823823 protected determineCompositeAlarmRule (
824824 alarms : AlarmWithAnnotation [ ] ,
825- props : AddCompositeAlarmProps
825+ props : AddCompositeAlarmProps ,
826826 ) : IAlarmRule {
827827 const alarmRules = alarms . map ( ( alarm ) => alarm . alarmRuleWhenAlarming ) ;
828828 const operator = props . compositeOperator ?? CompositeAlarmOperator . OR ;
@@ -838,7 +838,7 @@ export class AlarmFactory {
838838
839839 protected determineActionsEnabled (
840840 actionsEnabled ?: boolean ,
841- disambiguator ?: string
841+ disambiguator ?: string ,
842842 ) : boolean {
843843 if ( actionsEnabled !== undefined ) {
844844 // alarm-specific override to true or false
@@ -857,7 +857,7 @@ export class AlarmFactory {
857857
858858 protected determineAction (
859859 disambiguator ?: string ,
860- actionOverride ?: IAlarmActionStrategy
860+ actionOverride ?: IAlarmActionStrategy ,
861861 ) : IAlarmActionStrategy {
862862 // Explicit override
863863 if ( actionOverride ) {
@@ -888,7 +888,7 @@ export class AlarmFactory {
888888 alarmDescription : string ,
889889 alarmDescriptionOverride ?: string ,
890890 runbookLinkOverride ?: string ,
891- documentationLinkOverride ?: string
891+ documentationLinkOverride ?: string ,
892892 ) {
893893 const parts = [ alarmDescriptionOverride ?? alarmDescription ] ;
894894
0 commit comments