// Jest Snapshot v1, https://goo.gl/fbAQLP exports[`addToSummaryDashboard attribute takes precedence over important in metric group 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "Alarm7103F465": Object { "Properties": Object { "DashboardBody": "{\\"widgets\\":[]}", }, "Type": "AWS::CloudWatch::Dashboard", }, "Resource": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"### DummyName\\"}},{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":2,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"markdown\\":\\"Monitoring widget that shows up in the summary dashboard\\"}},{\\"type\\":\\"metric\\",\\"width\\":24,\\"height\\":100,\\"x\\":0,\\"y\\":3,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"DummyGroup1\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric1\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"]],\\"yAxis\\":{}}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, "Summary68521F81": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"### DummyName\\"}},{\\"type\\":\\"metric\\",\\"width\\":24,\\"height\\":100,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"DummyGroup1\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric1\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"]],\\"yAxis\\":{}}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `; exports[`addToSummaryDashboard attribute takes value from CustomMonitoringProps if not specified in metric group 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "Alarm7103F465": Object { "Properties": Object { "DashboardBody": "{\\"widgets\\":[]}", }, "Type": "AWS::CloudWatch::Dashboard", }, "Resource": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"### DummyName\\"}},{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":2,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"markdown\\":\\"Monitoring widget that shows up in the summary dashboard\\"}},{\\"type\\":\\"metric\\",\\"width\\":24,\\"height\\":100,\\"x\\":0,\\"y\\":3,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"DummyGroup1\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric1\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"]],\\"yAxis\\":{}}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, "Summary68521F81": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"### DummyName\\"}},{\\"type\\":\\"metric\\",\\"width\\":24,\\"height\\":100,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"DummyGroup1\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric1\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"]],\\"yAxis\\":{}}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `; exports[`anomaly detection 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "ScopeTestAnomalyAlarmNameMetric1CriticalAEAE04A6": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 50 has been breached.", "AlarmName": "Test-AnomalyAlarmName-Metric1-Critical", "ComparisonOperator": "LessThanLowerThreshold", "DatapointsToAlarm": 3, "EvaluationPeriods": 3, "Metrics": Array [ Object { "Expression": "ANOMALY_DETECTION_BAND(expression,2)", "Id": "expr_1", "Label": "AnomalyLabel", "ReturnData": true, }, Object { "Id": "expression", "MetricStat": Object { "Metric": Object { "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "MetricName": "DummyMetric1", "Namespace": "DummyCustomNamespace", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, ], "ThresholdMetricId": "expr_1", "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `; exports[`enhanced anomaly detection 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "ScopeTestAnomalyAlarmNameAnomalyGroupRenderAndAlarmAboveOnly1F1A54F4": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Anomaly detection: value is above the expected band.", "AlarmName": "Test-AnomalyAlarmName-AnomalyGroup-RenderAndAlarm-AboveOnly", "ComparisonOperator": "GreaterThanUpperThreshold", "DatapointsToAlarm": 3, "EvaluationPeriods": 3, "Metrics": Array [ Object { "Expression": "ANOMALY_DETECTION_BAND(alarm_160ded88355f64,1)", "Id": "expr_1", "Label": "Band (stdev 1)", "ReturnData": true, }, Object { "Id": "alarm_160ded88355f64", "MetricStat": Object { "Metric": Object { "MetricName": "AnomalyMetric", "Namespace": "AnomalyNamespace", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, ], "ThresholdMetricId": "expr_1", "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestAnomalyAlarmNameAnomalyGroupRenderAndAlarmAboveOrBelow5CF3E353": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Anomaly detection: value is outside of the expected band.", "AlarmName": "Test-AnomalyAlarmName-AnomalyGroup-RenderAndAlarm-AboveOrBelow", "ComparisonOperator": "LessThanLowerOrGreaterThanUpperThreshold", "DatapointsToAlarm": 3, "EvaluationPeriods": 3, "Metrics": Array [ Object { "Expression": "ANOMALY_DETECTION_BAND(alarm_1466186e115a6,3)", "Id": "expr_1", "Label": "Band (stdev 3)", "ReturnData": true, }, Object { "Id": "alarm_1466186e115a6", "MetricStat": Object { "Metric": Object { "MetricName": "AnomalyMetric", "Namespace": "AnomalyNamespace", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, ], "ThresholdMetricId": "expr_1", "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestAnomalyAlarmNameAnomalyGroupRenderAndAlarmBelowOnlyE9AF1161": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Anomaly detection: value is below the expected band.", "AlarmName": "Test-AnomalyAlarmName-AnomalyGroup-RenderAndAlarm-BelowOnly", "ComparisonOperator": "LessThanLowerThreshold", "DatapointsToAlarm": 3, "EvaluationPeriods": 3, "Metrics": Array [ Object { "Expression": "ANOMALY_DETECTION_BAND(alarm_114045999754c1,2)", "Id": "expr_1", "Label": "Band (stdev 2)", "ReturnData": true, }, Object { "Id": "alarm_114045999754c1", "MetricStat": Object { "Metric": Object { "MetricName": "AnomalyMetric", "Namespace": "AnomalyNamespace", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, ], "ThresholdMetricId": "expr_1", "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `; exports[`enhanced anomaly detection with metric math 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "ScopeTestAnomalyAlarmNameAnomalyWithMetricMathCriticalAnomaly04BB00BD": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Anomaly detection: value is outside of the expected band.", "AlarmName": "Test-AnomalyAlarmName-AnomalyWithMetricMath-CriticalAnomaly", "ComparisonOperator": "LessThanLowerOrGreaterThanUpperThreshold", "DatapointsToAlarm": 3, "EvaluationPeriods": 3, "Metrics": Array [ Object { "Expression": "ANOMALY_DETECTION_BAND(alarm_39cd98a4dd0f0,1)", "Id": "expr_1", "Label": "Band (stdev 1)", "ReturnData": true, }, Object { "Expression": "m1/(m1+m2)", "Id": "alarm_39cd98a4dd0f0", "ReturnData": true, }, Object { "Id": "m1", "MetricStat": Object { "Metric": Object { "MetricName": "Metric1", "Namespace": "AnomalyNamespace", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, Object { "Id": "m2", "MetricStat": Object { "Metric": Object { "MetricName": "Metric2", "Namespace": "AnomalyNamespace", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, ], "ThresholdMetricId": "alarm_39cd98a4dd0f0", "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `; exports[`enhanced anomaly detection with more complex metric 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "ScopeTestAnomalyAlarmNameDNSQueriesanomalyCriticalAnomaly48F387D0": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Anomaly detection: value is outside of the expected band.", "AlarmName": "Test-AnomalyAlarmName-DNSQueries anomaly-CriticalAnomaly", "ComparisonOperator": "LessThanLowerOrGreaterThanUpperThreshold", "DatapointsToAlarm": 3, "EvaluationPeriods": 3, "Metrics": Array [ Object { "Expression": "ANOMALY_DETECTION_BAND(alarm_a7a830ab781b2,1)", "Id": "expr_1", "Label": "Band (stdev 1)", "ReturnData": true, }, Object { "Id": "alarm_a7a830ab781b2", "MetricStat": Object { "Metric": Object { "Dimensions": Array [ Object { "Name": "HostedZoneId", "Value": "ID", }, ], "MetricName": "DNSQueries", "Namespace": "AWS/Route53", }, "Period": 300, "Stat": "Average", }, "ReturnData": true, }, ], "ThresholdMetricId": "expr_1", "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `; exports[`snapshot test 1`] = ` Object { "Parameters": Object { "BootstrapVersion": Object { "Default": "/cdk-bootstrap/hnb659fds/version", "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]", "Type": "AWS::SSM::Parameter::Value", }, }, "Resources": Object { "Alarm7103F465": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":4,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"annotations\\":{\\"alarms\\":[\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric3WarningWithSamplesC0279CF4", "Arn", ], }, "\\"]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":4,\\"x\\":6,\\"y\\":0,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"annotations\\":{\\"alarms\\":[\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric3Critical2B202C0B", "Arn", ], }, "\\"]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":4,\\"x\\":12,\\"y\\":0,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"annotations\\":{\\"alarms\\":[\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric12WarningA3D33CD3", "Arn", ], }, "\\"]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":4,\\"x\\":18,\\"y\\":0,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"annotations\\":{\\"alarms\\":[\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric12Critical71A1C38A", "Arn", ], }, "\\"]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":4,\\"x\\":0,\\"y\\":4,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"annotations\\":{\\"alarms\\":[\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric22Warning4F0C643F", "Arn", ], }, "\\"]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":4,\\"x\\":6,\\"y\\":4,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"annotations\\":{\\"alarms\\":[\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric22CriticalB723921F", "Arn", ], }, "\\"]},\\"yAxis\\":{}}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, "Resource": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"### DummyName\\"}},{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":2,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"markdown\\":\\"This is a very long description.\\\\nSecond line of this very long description.\\\\nThird line of this very long description.\\"}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":100,\\"x\\":0,\\"y\\":3,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"DummyGroup1\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric1\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric2\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric3\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[{\\"label\\":\\" \\",\\"expression\\":\\"SEARCH('{DummyCustomNamespace,CustomDimension} CustomDimension=\\\\\\"CustomDimensionValue\\\\\\" DummyMetric4-', 'Sum', 300)\\"}]],\\"annotations\\":{\\"horizontal\\":[{\\"label\\":\\"DummyMetric3 < 90 for 3 datapoints within 15 minutes\\",\\"value\\":90,\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyMetric3 < 50 for 3 datapoints within 15 minutes\\",\\"value\\":50,\\"yAxis\\":\\"left\\"}]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":100,\\"x\\":6,\\"y\\":3,\\"properties\\":{\\"view\\":\\"bar\\",\\"title\\":\\"DummyGroup2\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric10\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric11\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric12\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"]],\\"annotations\\":{\\"horizontal\\":[{\\"label\\":\\"DummyAnnotation1\\",\\"value\\":30,\\"fill\\":\\"above\\",\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyAnnotation2\\",\\"value\\":20,\\"fill\\":\\"below\\",\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyMetric12 > 10 for 3 datapoints within 15 minutes\\",\\"value\\":10,\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyMetric12 > 50 for 3 datapoints within 15 minutes\\",\\"value\\":50,\\"yAxis\\":\\"left\\"}]},\\"yAxis\\":{}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":100,\\"x\\":12,\\"y\\":3,\\"properties\\":{\\"view\\":\\"pie\\",\\"title\\":\\"DummyGroup3\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric20\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric21\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric22\\",\\"CustomDimension\\",\\"CustomDimensionValue\\",{\\"yAxis\\":\\"right\\"}]],\\"annotations\\":{\\"horizontal\\":[{\\"label\\":\\"DummyAnnotation1\\",\\"value\\":30,\\"fill\\":\\"above\\",\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyAnnotation2\\",\\"value\\":20,\\"fill\\":\\"below\\",\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyAnnotation3\\",\\"value\\":20,\\"fill\\":\\"below\\",\\"yAxis\\":\\"right\\"},{\\"label\\":\\"DummyMetric22 > 10 for 3 datapoints within 15 minutes\\",\\"value\\":10,\\"yAxis\\":\\"right\\"},{\\"label\\":\\"DummyMetric22 > 50 for 3 datapoints within 15 minutes\\",\\"value\\":50,\\"yAxis\\":\\"right\\"}]},\\"yAxis\\":{\\"right\\":{\\"label\\":\\"CustomValue\\"}},\\"legend\\":{\\"position\\":\\"right\\"}}},{\\"type\\":\\"metric\\",\\"width\\":6,\\"height\\":100,\\"x\\":18,\\"y\\":3,\\"properties\\":{\\"view\\":\\"singleValue\\",\\"title\\":\\"DummyGroup4\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric40\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric41\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"]]}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric12Critical71A1C38A": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 50 has been breached.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric12-Critical", "ComparisonOperator": "GreaterThanThreshold", "DatapointsToAlarm": 3, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 3, "MetricName": "DummyMetric12", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "Average", "Threshold": 50, "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric12WarningA3D33CD3": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 10 has been breached.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric12-Warning", "ComparisonOperator": "GreaterThanThreshold", "DatapointsToAlarm": 3, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 3, "MetricName": "DummyMetric12", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "Average", "Threshold": 10, "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric22CriticalB723921F": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 50 has been breached.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric22-Critical", "ComparisonOperator": "GreaterThanThreshold", "DatapointsToAlarm": 3, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 3, "MetricName": "DummyMetric22", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "Average", "Threshold": 50, "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric22Warning4F0C643F": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 10 has been breached.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric22-Warning", "ComparisonOperator": "GreaterThanThreshold", "DatapointsToAlarm": 3, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 3, "MetricName": "DummyMetric22", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "Average", "Threshold": 10, "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric3Critical2B202C0B": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 50 has been breached.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric3-Critical", "ComparisonOperator": "LessThanThreshold", "DatapointsToAlarm": 3, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 3, "MetricName": "DummyMetric3", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "Average", "Threshold": 50, "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric3WarningA3421ECE": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 90 has been breached.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric3-Warning", "ComparisonOperator": "LessThanThreshold", "DatapointsToAlarm": 3, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 3, "MetricName": "DummyMetric3", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "Average", "Threshold": 90, "TreatMissingData": "missing", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric3WarningNoSamplesEBA30C81": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "The metric (DummyMetric3) does not have enough samples to alarm. Must have at least 5.", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric3-Warning-NoSamples", "ComparisonOperator": "LessThanThreshold", "DatapointsToAlarm": 1, "Dimensions": Array [ Object { "Name": "CustomDimension", "Value": "CustomDimensionValue", }, ], "EvaluationPeriods": 1, "MetricName": "DummyMetric3", "Namespace": "DummyCustomNamespace", "Period": 300, "Statistic": "SampleCount", "Threshold": 5, "TreatMissingData": "breaching", }, "Type": "AWS::CloudWatch::Alarm", }, "ScopeTestDummyAlarmNameAlarmForDummyMetric3WarningWithSamplesC0279CF4": Object { "Properties": Object { "ActionsEnabled": true, "AlarmDescription": "Threshold of 90 has been breached. Min number of samples to alarm: 5", "AlarmName": "Test-DummyAlarmName-AlarmForDummyMetric3-Warning-WithSamples", "AlarmRule": Object { "Fn::Join": Array [ "", Array [ "(ALARM(\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric3WarningA3421ECE", "Arn", ], }, "\\") AND (NOT (ALARM(\\"", Object { "Fn::GetAtt": Array [ "ScopeTestDummyAlarmNameAlarmForDummyMetric3WarningNoSamplesEBA30C81", "Arn", ], }, "\\"))))", ], ], }, }, "Type": "AWS::CloudWatch::CompositeAlarm", }, "Summary68521F81": Object { "Properties": Object { "DashboardBody": Object { "Fn::Join": Array [ "", Array [ "{\\"widgets\\":[{\\"type\\":\\"text\\",\\"width\\":24,\\"height\\":1,\\"x\\":0,\\"y\\":0,\\"properties\\":{\\"markdown\\":\\"### DummyName\\"}},{\\"type\\":\\"metric\\",\\"width\\":24,\\"height\\":100,\\"x\\":0,\\"y\\":1,\\"properties\\":{\\"view\\":\\"timeSeries\\",\\"title\\":\\"DummyGroup1\\",\\"region\\":\\"", Object { "Ref": "AWS::Region", }, "\\",\\"metrics\\":[[\\"DummyCustomNamespace\\",\\"DummyMetric1\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric2\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[\\"DummyCustomNamespace\\",\\"DummyMetric3\\",\\"CustomDimension\\",\\"CustomDimensionValue\\"],[{\\"label\\":\\" \\",\\"expression\\":\\"SEARCH('{DummyCustomNamespace,CustomDimension} CustomDimension=\\\\\\"CustomDimensionValue\\\\\\" DummyMetric4-', 'Sum', 300)\\"}]],\\"annotations\\":{\\"horizontal\\":[{\\"label\\":\\"DummyMetric3 < 90 for 3 datapoints within 15 minutes\\",\\"value\\":90,\\"yAxis\\":\\"left\\"},{\\"label\\":\\"DummyMetric3 < 50 for 3 datapoints within 15 minutes\\",\\"value\\":50,\\"yAxis\\":\\"left\\"}]},\\"yAxis\\":{}}}]}", ], ], }, }, "Type": "AWS::CloudWatch::Dashboard", }, }, "Rules": Object { "CheckBootstrapVersion": Object { "Assertions": Array [ Object { "Assert": Object { "Fn::Not": Array [ Object { "Fn::Contains": Array [ Array [ "1", "2", "3", "4", "5", ], Object { "Ref": "BootstrapVersion", }, ], }, ], }, "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI.", }, ], }, }, } `;