diff --git a/src/__tests__/__snapshots__/construct-hub.test.ts.snap b/src/__tests__/__snapshots__/construct-hub.test.ts.snap index 378911b63..02a6df606 100644 --- a/src/__tests__/__snapshots__/construct-hub.test.ts.snap +++ b/src/__tests__/__snapshots__/construct-hub.test.ts.snap @@ -4479,18 +4479,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Backend Orchestration Failed","region":"", - { - "Ref": "AWS::Region", - }, - "","annotations":{"alarms":["", - { - "Fn::GetAtt": [ - "ConstructHubOrchestrationOrchestrationFailed5AF50838", - "Arn", - ], - }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", { "Ref": "AWS::Region", }, @@ -4501,7 +4490,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", { "Ref": "AWS::Region", }, @@ -4512,7 +4501,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", { "Ref": "AWS::Region", }, @@ -4523,7 +4512,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", { "Ref": "AWS::Region", }, @@ -4534,7 +4523,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", { "Ref": "AWS::Region", }, @@ -6271,9 +6260,6 @@ Warning: State Machines executions that sent messages to the DLQ will not show a }, "ConstructHubOrchestrationOrchestrationFailed5AF50838": { "Properties": { - "AlarmActions": [ - "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE", - ], "AlarmDescription": { "Fn::Join": [ "", @@ -18034,18 +18020,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Backend Orchestration Failed","region":"", - { - "Ref": "AWS::Region", - }, - "","annotations":{"alarms":["", - { - "Fn::GetAtt": [ - "ConstructHubOrchestrationOrchestrationFailed5AF50838", - "Arn", - ], - }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", { "Ref": "AWS::Region", }, @@ -18056,7 +18031,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", { "Ref": "AWS::Region", }, @@ -18067,7 +18042,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", { "Ref": "AWS::Region", }, @@ -18078,7 +18053,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", { "Ref": "AWS::Region", }, @@ -18089,7 +18064,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", { "Ref": "AWS::Region", }, @@ -19826,9 +19801,6 @@ Warning: State Machines executions that sent messages to the DLQ will not show a }, "ConstructHubOrchestrationOrchestrationFailed5AF50838": { "Properties": { - "AlarmActions": [ - "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE", - ], "AlarmDescription": { "Fn::Join": [ "", @@ -31299,18 +31271,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Backend Orchestration Failed","region":"", - { - "Ref": "AWS::Region", - }, - "","annotations":{"alarms":["", - { - "Fn::GetAtt": [ - "ConstructHubOrchestrationOrchestrationFailed5AF50838", - "Arn", - ], - }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", { "Ref": "AWS::Region", }, @@ -31321,7 +31282,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", { "Ref": "AWS::Region", }, @@ -31332,7 +31293,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", { "Ref": "AWS::Region", }, @@ -31343,7 +31304,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", { "Ref": "AWS::Region", }, @@ -31354,7 +31315,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", { "Ref": "AWS::Region", }, @@ -33091,9 +33052,6 @@ Warning: State Machines executions that sent messages to the DLQ will not show a }, "ConstructHubOrchestrationOrchestrationFailed5AF50838": { "Properties": { - "AlarmActions": [ - "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE", - ], "AlarmDescription": { "Fn::Join": [ "", @@ -44626,18 +44584,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Backend Orchestration Failed","region":"", - { - "Ref": "AWS::Region", - }, - "","annotations":{"alarms":["", - { - "Fn::GetAtt": [ - "ConstructHubOrchestrationOrchestrationFailed5AF50838", - "Arn", - ], - }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", { "Ref": "AWS::Region", }, @@ -44648,7 +44595,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", { "Ref": "AWS::Region", }, @@ -44659,7 +44606,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"ACM Certificate Expiry","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"ACM Certificate Expiry","region":"", { "Ref": "AWS::Region", }, @@ -44670,7 +44617,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"Endpoint Certificate Expiry","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"Endpoint Certificate Expiry","region":"", { "Ref": "AWS::Region", }, @@ -44681,7 +44628,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", { "Ref": "AWS::Region", }, @@ -44692,7 +44639,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":48,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", { "Ref": "AWS::Region", }, @@ -44703,7 +44650,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":54,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":48,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", { "Ref": "AWS::Region", }, @@ -46440,9 +46387,6 @@ Warning: State Machines executions that sent messages to the DLQ will not show a }, "ConstructHubOrchestrationOrchestrationFailed5AF50838": { "Properties": { - "AlarmActions": [ - "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE", - ], "AlarmDescription": { "Fn::Join": [ "", @@ -58288,18 +58232,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Backend Orchestration Failed","region":"", - { - "Ref": "AWS::Region", - }, - "","annotations":{"alarms":["", - { - "Fn::GetAtt": [ - "ConstructHubOrchestrationOrchestrationFailed5AF50838", - "Arn", - ], - }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", { "Ref": "AWS::Region", }, @@ -58310,7 +58243,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", { "Ref": "AWS::Region", }, @@ -58321,7 +58254,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", { "Ref": "AWS::Region", }, @@ -58332,7 +58265,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", { "Ref": "AWS::Region", }, @@ -58343,7 +58276,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", { "Ref": "AWS::Region", }, @@ -59702,9 +59635,6 @@ Warning: State Machines executions that sent messages to the DLQ will not show a }, "ConstructHubOrchestrationOrchestrationFailed5AF50838": { "Properties": { - "AlarmActions": [ - "arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE", - ], "AlarmDescription": { "Fn::Join": [ "", diff --git a/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap b/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap index 9ba2d4388..8e85b5bd3 100644 --- a/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap +++ b/src/__tests__/devapp/__snapshots__/snapshot.test.ts.snap @@ -5076,18 +5076,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Backend Orchestration Failed","region":"", - { - "Ref": "AWS::Region", - }, - "","annotations":{"alarms":["", - { - "Fn::GetAtt": [ - "ConstructHubOrchestrationOrchestrationFailed5AF50838", - "Arn", - ], - }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":12,"properties":{"view":"timeSeries","title":"Execution Failure Rate above 75%","region":"", { "Ref": "AWS::Region", }, @@ -5098,7 +5087,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"ReleaseNotes generation Failure","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":18,"properties":{"view":"timeSeries","title":"ReleaseNotes generation Failure","region":"", { "Ref": "AWS::Region", }, @@ -5109,7 +5098,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"ReleaseNotes Github credential invalid","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":24,"properties":{"view":"timeSeries","title":"ReleaseNotes Github credential invalid","region":"", { "Ref": "AWS::Region", }, @@ -5120,7 +5109,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":30,"properties":{"view":"timeSeries","title":"Ingestion failures","region":"", { "Ref": "AWS::Region", }, @@ -5131,7 +5120,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":36,"properties":{"view":"timeSeries","title":"Home Page Canary","region":"", { "Ref": "AWS::Region", }, @@ -5142,7 +5131,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":48,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":42,"properties":{"view":"timeSeries","title":"NpmJs/Follower Not Running","region":"", { "Ref": "AWS::Region", }, @@ -5153,7 +5142,7 @@ Direct link to function: /lambda/home#/functions/", "Arn", ], }, - ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":54,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", + ""]},"yAxis":{}}},{"type":"metric","width":24,"height":6,"x":0,"y":48,"properties":{"view":"timeSeries","title":"NpmJs Follower Canary is not running or fails","region":"", { "Ref": "AWS::Region", }, diff --git a/src/backend/orchestration/index.ts b/src/backend/orchestration/index.ts index 65f16bab5..e4b3a779f 100644 --- a/src/backend/orchestration/index.ts +++ b/src/backend/orchestration/index.ts @@ -471,7 +471,7 @@ export class Orchestration extends Construct { ); } - props.monitoring.addHighSeverityAlarm( + props.monitoring.addMediumSeverityAlarm( 'Backend Orchestration Failed', this.stateMachine .metricFailed()