File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -694,7 +694,10 @@ Resources:
694
694
MetricStat:
695
695
Metric:
696
696
Namespace: Javabuilder
697
- MetricName: Javabuilder <%= name%> "SEVERE" errors
697
+ MetricName: SevereError
698
+ Dimensions:
699
+ - Name: functionName
700
+ Value: !Ref BuildAndRunJava<%= name%> ProjectFunction
698
701
Period: 300
699
702
Stat: Sum
700
703
- Id: m2
@@ -728,7 +731,7 @@ Resources:
728
731
- Id: e1
729
732
Label: Errors / Invocations
730
733
ReturnData: true
731
- Expression: (m1 / m2) * 100
734
+ Expression: ((m1 - m3) / m2) * 100
732
735
- Id: m1
733
736
ReturnData: false
734
737
MetricStat:
@@ -751,6 +754,17 @@ Resources:
751
754
Value: !Ref BuildAndRunJava<%= name%> ProjectFunction
752
755
Period: 300
753
756
Stat: Sum
757
+ - Id: m3
758
+ ReturnData: false
759
+ MetricStat:
760
+ Metric:
761
+ Namespace: AWS/Lambda
762
+ MetricName: Duration
763
+ Dimensions:
764
+ - Name: FunctionName
765
+ Value: !Ref BuildAndRunJava<%= name%> ProjectFunction
766
+ Period: 300
767
+ Stat: TC(89000:)
754
768
755
769
<%= name%> SlowCleanupTimeAlarm:
756
770
Type: AWS::CloudWatch::Alarm
You can’t perform that action at this time.
0 commit comments