Skip to content

Commit 14ea90f

Browse files
committed
update beta template
1 parent 4603f7f commit 14ea90f

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

beta-template.yml.erb

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,10 @@ Resources:
700700
MetricStat:
701701
Metric:
702702
Namespace: Javabuilder
703-
MetricName: Javabuilder <%=name%> "SEVERE" errors
703+
MetricName: SevereError
704+
Dimensions:
705+
- Name: functionName
706+
Value: !Ref BuildAndRunJava<%=name%>ProjectFunction
704707
Period: 300
705708
Stat: Sum
706709
- Id: m2
@@ -734,7 +737,7 @@ Resources:
734737
- Id: e1
735738
Label: Errors / Invocations
736739
ReturnData: true
737-
Expression: (m1 / m2) * 100
740+
Expression: ((m1 - m3) / m2) * 100
738741
- Id: m1
739742
ReturnData: false
740743
MetricStat:
@@ -757,6 +760,17 @@ Resources:
757760
Value: !Ref BuildAndRunJava<%=name%>ProjectFunction
758761
Period: 300
759762
Stat: Sum
763+
- Id: m3
764+
ReturnData: false
765+
MetricStat:
766+
Metric:
767+
Namespace: AWS/Lambda
768+
MetricName: Duration
769+
Dimensions:
770+
- Name: FunctionName
771+
Value: !Ref BuildAndRunJava<%=name%>ProjectFunction
772+
Period: 300
773+
Stat: TC(89000:)
760774
761775
<%=name%>SlowCleanupTimeAlarm:
762776
Type: AWS::CloudWatch::Alarm

0 commit comments

Comments
 (0)