Skip to content

Commit

Permalink
Merge pull request #521 from govuk-one-login/BAU-refactor-state-machi…
Browse files Browse the repository at this point in the history
…ne-alarms

BAU: Minor refactor to state machine alarms
  • Loading branch information
mikebeeby authored Dec 4, 2024
2 parents eb4718e + 3a86ea7 commit 24d5df3
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions infrastructure/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -838,15 +838,15 @@ Resources:
- !ImportValue platform-alarm-critical-alert-topic
AlarmDescription: !Sub "${CheckSessionStateMachine} failed 4 or more requests in the last hour. ${SupportManualURL}"
AlarmName: !Sub "${AWS::StackName}-${Environment}-CheckSessionStateMachine-alarm"
ComparisonOperator: GreaterThanThreshold
DatapointsToAlarm: 4
EvaluationPeriods: 12
MetricName: "ExecutionsFailed"
Namespace: AWS/States
Period: 300
ComparisonOperator: GreaterThanThreshold
Statistic: Sum
Threshold: 0
TreatMissingData: missing
DatapointsToAlarm: 1
EvaluationPeriods: 1
Period: 3600
Threshold: 3
TreatMissingData: notBreaching
Dimensions:
- Name: StateMachineArn
Value: !Ref CheckSessionStateMachine
Expand Down Expand Up @@ -983,15 +983,15 @@ Resources:
- !ImportValue platform-alarm-critical-alert-topic
AlarmDescription: !Sub "${NinoCheckStateMachine} failed 4 or more requests in the last hour. ${SupportManualURL}"
AlarmName: !Sub "${AWS::StackName}-${Environment}-NinoCheckStateMachine-ExecutionsFailed-alarm"
ComparisonOperator: GreaterThanThreshold
DatapointsToAlarm: 4
EvaluationPeriods: 12
MetricName: "ExecutionsFailed"
Namespace: AWS/States
Period: 300
ComparisonOperator: GreaterThanThreshold
Statistic: Sum
Threshold: 0
TreatMissingData: missing
DatapointsToAlarm: 1
EvaluationPeriods: 1
Period: 3600
Threshold: 3
TreatMissingData: notBreaching
Dimensions:
- Name: StateMachineArn
Value: !Ref NinoCheckStateMachine
Expand Down Expand Up @@ -1086,15 +1086,15 @@ Resources:
- !ImportValue platform-alarm-warning-alert-topic
AlarmDescription: !Sub "${AbandonStateMachine} failed 4 or more requests in the last hour. ${SupportManualURL}"
AlarmName: !Sub "${AWS::StackName}-${Environment}-AbandonStateMachine-ExecutionsFailed-alarm"
ComparisonOperator: GreaterThanThreshold
DatapointsToAlarm: 4
EvaluationPeriods: 12
MetricName: "ExecutionsFailed"
Namespace: AWS/States
Period: 300
ComparisonOperator: GreaterThanThreshold
Statistic: Sum
Threshold: 0
TreatMissingData: missing
DatapointsToAlarm: 1
EvaluationPeriods: 1
Period: 3600
Threshold: 3
TreatMissingData: notBreaching
Dimensions:
- Name: StateMachineArn
Value: !Ref AbandonStateMachine
Expand Down Expand Up @@ -1226,15 +1226,15 @@ Resources:
- !ImportValue platform-alarm-critical-alert-topic
AlarmDescription: !Sub "${NinoIssueCredentialStateMachine} failed 4 or more requests in the last hour. ${SupportManualURL}"
AlarmName: !Sub "${AWS::StackName}-${Environment}-NinoIssueCredentialStateMachine-ExecutionsFailed-alarm"
ComparisonOperator: GreaterThanThreshold
DatapointsToAlarm: 4
EvaluationPeriods: 12
MetricName: "ExecutionsFailed"
Namespace: AWS/States
Period: 300
ComparisonOperator: GreaterThanThreshold
Statistic: Sum
Threshold: 0
TreatMissingData: missing
DatapointsToAlarm: 1
EvaluationPeriods: 1
Period: 3600
Threshold: 3
TreatMissingData: notBreaching
Dimensions:
- Name: StateMachineArn
Value: !Ref NinoIssueCredentialStateMachine
Expand Down

0 comments on commit 24d5df3

Please sign in to comment.