Skip to content

Commit

Permalink
Merge pull request #57 from Samseppiol/master
Browse files Browse the repository at this point in the history
Add datapoints to alarm, allow use of ExtendedStatistic
  • Loading branch information
Guslington authored Mar 28, 2019
2 parents 3df8057 + b03390a commit 4b5f177
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/templates/alarms.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@
Property('EvaluateLowSampleCountPercentile', params['EvaluateLowSampleCountPercentile']) unless params['EvaluateLowSampleCountPercentile'].nil?
Property('EvaluationPeriods', FnFindInMap("#{alarmHash}",'EvaluationPeriods',Ref('EnvironmentType')))
Property('ExtendedStatistic', params['ExtendedStatistic']) unless params['ExtendedStatistic'].nil?
Property('DatapointsToAlarm', params['DatapointsToAlarm']) unless params['DatapointsToAlarm'].nil?
Property('InsufficientDataActions', insufficientDataActions)
Property('MetricName', FnFindInMap("#{alarmHash}",'MetricName',Ref('EnvironmentType')))
Property('Namespace', FnFindInMap("#{alarmHash}",'Namespace',Ref('EnvironmentType')))
Property('OKActions', oKActions)
Property('Period', FnFindInMap("#{alarmHash}",'Period',Ref('EnvironmentType')))
Property('Statistic', FnFindInMap("#{alarmHash}",'Statistic',Ref('EnvironmentType')))
Property('Statistic', FnFindInMap("#{alarmHash}",'Statistic',Ref('EnvironmentType'))) unless !params['ExtendedStatistic'].nil?
Property('Threshold', FnFindInMap("#{alarmHash}",'Threshold',Ref('EnvironmentType')))
Property('TreatMissingData',FnFindInMap("#{alarmHash}",'TreatMissingData',Ref('EnvironmentType')))
Property('Unit', params['Unit']) unless params['Unit'].nil?
Expand Down

0 comments on commit 4b5f177

Please sign in to comment.