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 @@ -700,7 +700,10 @@ Resources:
700
700
MetricStat:
701
701
Metric:
702
702
Namespace: Javabuilder
703
- MetricName: Javabuilder <%= name%> "SEVERE" errors
703
+ MetricName: SevereError
704
+ Dimensions:
705
+ - Name: functionName
706
+ Value: !Ref BuildAndRunJava<%= name%> ProjectFunction
704
707
Period: 300
705
708
Stat: Sum
706
709
- Id: m2
@@ -734,7 +737,7 @@ Resources:
734
737
- Id: e1
735
738
Label: Errors / Invocations
736
739
ReturnData: true
737
- Expression: (m1 / m2) * 100
740
+ Expression: ((m1 - m3) / m2) * 100
738
741
- Id: m1
739
742
ReturnData: false
740
743
MetricStat:
@@ -757,6 +760,17 @@ Resources:
757
760
Value: !Ref BuildAndRunJava<%= name%> ProjectFunction
758
761
Period: 300
759
762
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:)
760
774
761
775
<%= name%> SlowCleanupTimeAlarm:
762
776
Type: AWS::CloudWatch::Alarm
You can’t perform that action at this time.
0 commit comments