Skip to content

Commit

Permalink
Parameterise threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
wildjames committed Oct 16, 2024
1 parent 11da280 commit 24785d0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SAMtemplates/alarms/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ Parameters:
EnableAlerts:
Type: String

WriteCapacityAlertThreshold:
Type: Number
Description: Threshold for the average consumed write capacity units per minute to trigger an alarm
Default: 500

Resources:
GetStatusUpdatesErrorsLogsMetricFilter:
Type: AWS::Logs::MetricFilter
Expand Down
7 changes: 7 additions & 0 deletions SAMtemplates/main_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ Parameters:
- true
- false

WriteCapacityAlertThreshold:
Type: Number
Description: Threshold for the average consumed write capacity units per minute to trigger an alarm
Default: 500


Resources:
Tables:
Type: AWS::Serverless::Application
Expand Down Expand Up @@ -150,4 +156,5 @@ Resources:
UpdatePrescriptionStatusFunctionName: !GetAtt Functions.Outputs.UpdatePrescriptionStatusFunctionName
PrescriptionStatusUpdatesTableName: !GetAtt Tables.Outputs.PrescriptionStatusUpdatesTableName
ConvertRequestToFhirFormatFunctionName: !GetAtt Functions.Outputs.ConvertRequestToFhirFormatFunctionName
WriteCapacityAlertThreshold: !Ref WriteCapacityAlertThreshold
EnableAlerts: !Ref EnableAlerts

0 comments on commit 24785d0

Please sign in to comment.