Skip to content

Commit

Permalink
Tweak alarm
Browse files Browse the repository at this point in the history
Alarm fires if 10 out of the last 60 minutes had >= 1 error of this
type.
  • Loading branch information
tjmw committed Jan 30, 2025
1 parent 2853ecc commit 5b74878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cdk/lib/__snapshots__/frontend.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion cdk/lib/frontend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,9 @@ export class Frontend extends GuStack {
"Someone pressed buy on a recurring product but received an error. This has happened multiple times for a known reason."
),
actionsEnabled: shouldCreateAlarms,
threshold: 10,
threshold: 1,
evaluationPeriods: 60,
datapointsToAlarm: 10,
comparisonOperator:
ComparisonOperator.GREATER_THAN_OR_EQUAL_TO_THRESHOLD,
metric: new Metric({
Expand Down

0 comments on commit 5b74878

Please sign in to comment.