Skip to content

Commit 4837749

Browse files
committed
raise threshold
1 parent 4b26ceb commit 4837749

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

notificationworkerlambda/cdk/lib/__snapshots__/senderworker.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ exports[`The Sender Worker stack matches the snapshot 1`] = `
596596
"Value": "breakingNews",
597597
},
598598
],
599-
"EvaluationPeriods": 24,
599+
"EvaluationPeriods": 48,
600600
"MetricName": "worker.notificationProcessingTime",
601601
"Namespace": "Notifications/PROD/workers",
602602
"OKActions": [
@@ -2384,7 +2384,7 @@ exports[`The Sender Worker stack matches the snapshot 1`] = `
23842384
"Value": "breakingNews",
23852385
},
23862386
],
2387-
"EvaluationPeriods": 24,
2387+
"EvaluationPeriods": 48,
23882388
"MetricName": "worker.notificationProcessingTime",
23892389
"Namespace": "Notifications/PROD/workers",
23902390
"OKActions": [

notificationworkerlambda/cdk/lib/senderworker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class SenderWorker extends cdkcore.Construct {
199199
const senderTooFewBreakingNewsAlarm = new cloudwatch.Alarm(this, 'SenderTooFewBreakingNewsAlarm', {
200200
alarmDescription: `Triggers if the ${id} sender lambda is not frequently invoked for breaking news notification in ${scope.stage}.`,
201201
comparisonOperator: cloudwatch.ComparisonOperator.LESS_THAN_OR_EQUAL_TO_THRESHOLD,
202-
evaluationPeriods: 24,
202+
evaluationPeriods: 48, // 12 hours
203203
threshold: 0,
204204
metric: breakingNewsCountMetric,
205205
treatMissingData: cloudwatch.TreatMissingData.BREACHING,

0 commit comments

Comments
 (0)