diff --git a/tests/aws/services/cloudwatch/test_cloudwatch.py b/tests/aws/services/cloudwatch/test_cloudwatch.py index 56573b7c92a80..3cb2fbb9b73a5 100644 --- a/tests/aws/services/cloudwatch/test_cloudwatch.py +++ b/tests/aws/services/cloudwatch/test_cloudwatch.py @@ -1318,8 +1318,8 @@ def test_put_metric_alarm( MetricName=metric_name, Namespace=namespace, ActionsEnabled=True, - Period=30, - Threshold=2, + Period=10, + Threshold=21, Dimensions=dimension, Unit="Seconds", Statistic="Average", diff --git a/tests/aws/services/cloudwatch/test_cloudwatch.snapshot.json b/tests/aws/services/cloudwatch/test_cloudwatch.snapshot.json index 6563131e1e53f..87abfc826b4a8 100644 --- a/tests/aws/services/cloudwatch/test_cloudwatch.snapshot.json +++ b/tests/aws/services/cloudwatch/test_cloudwatch.snapshot.json @@ -369,7 +369,7 @@ } }, "tests/aws/services/cloudwatch/test_cloudwatch.py::TestCloudwatch::test_put_metric_alarm": { - "recorded-date": "19-01-2024, 13:46:30", + "recorded-date": "12-05-2025, 16:20:57", "recorded-content": { "describe-alarm": { "CompositeAlarms": [], @@ -397,13 +397,13 @@ "OKActions": [ "arn::sns::111111111111:" ], - "Period": 30, + "Period": 10, "StateReason": "Unchecked: Initial alarm creation", "StateTransitionedTimestamp": "timestamp", "StateUpdatedTimestamp": "timestamp", "StateValue": "INSUFFICIENT_DATA", "Statistic": "Average", - "Threshold": 2.0, + "Threshold": 21.0, "TreatMissingData": "ignore", "Unit": "Seconds" } @@ -423,7 +423,7 @@ "AlarmDescription": "testing cloudwatch alarms", "AlarmName": "", "InsufficientDataActions": [], - "NewStateReason": "Threshold Crossed: 1 datapoint [21.5 (MM/DD/YY HH:MM:SS)] was greater than the threshold (2.0).", + "NewStateReason": "Threshold Crossed: 1 datapoint [21.5 (MM/DD/YY HH:MM:SS)] was greater than the threshold (21.0).", "NewStateValue": "ALARM", "OKActions": [ "arn::sns::111111111111:" @@ -443,10 +443,10 @@ "EvaluationPeriods": 1, "MetricName": "my-metric1", "Namespace": "", - "Period": 30, + "Period": 10, "Statistic": "AVERAGE", "StatisticType": "Statistic", - "Threshold": 2.0, + "Threshold": 21.0, "TreatMissingData": "ignore", "Unit": "Seconds" } @@ -464,18 +464,18 @@ }, "newState": { "stateValue": "ALARM", - "stateReason": "Threshold Crossed: 1 datapoint [21.5 (MM/DD/YY HH:MM:SS)] was greater than the threshold (2.0).", + "stateReason": "Threshold Crossed: 1 datapoint [21.5 (MM/DD/YY HH:MM:SS)] was greater than the threshold (21.0).", "stateReasonData": { "version": "1.0", "queryDate": "date", "startDate": "date", "unit": "Seconds", "statistic": "Average", - "period": 30, + "period": 10, "recentDatapoints": [ 21.5 ], - "threshold": 2.0, + "threshold": 21.0, "evaluatedDatapoints": [ { "timestamp": "date", @@ -521,19 +521,19 @@ "OKActions": [ "arn::sns::111111111111:" ], - "Period": 30, - "StateReason": "Threshold Crossed: 1 datapoint [21.5 (MM/DD/YY HH:MM:SS)] was greater than the threshold (2.0).", + "Period": 10, + "StateReason": "Threshold Crossed: 1 datapoint [21.5 (MM/DD/YY HH:MM:SS)] was greater than the threshold (21.0).", "StateReasonData": { "version": "1.0", "queryDate": "date", "startDate": "date", "unit": "Seconds", "statistic": "Average", - "period": 30, + "period": 10, "recentDatapoints": [ 21.5 ], - "threshold": 2.0, + "threshold": 21.0, "evaluatedDatapoints": [ { "timestamp": "date", @@ -546,7 +546,7 @@ "StateUpdatedTimestamp": "timestamp", "StateValue": "ALARM", "Statistic": "Average", - "Threshold": 2.0, + "Threshold": 21.0, "TreatMissingData": "ignore", "Unit": "Seconds" } diff --git a/tests/aws/services/cloudwatch/test_cloudwatch.validation.json b/tests/aws/services/cloudwatch/test_cloudwatch.validation.json index 35c96909b8d23..428f5d6c84b8f 100644 --- a/tests/aws/services/cloudwatch/test_cloudwatch.validation.json +++ b/tests/aws/services/cloudwatch/test_cloudwatch.validation.json @@ -57,7 +57,7 @@ "last_validated_date": "2024-07-29T07:56:05+00:00" }, "tests/aws/services/cloudwatch/test_cloudwatch.py::TestCloudwatch::test_put_metric_alarm": { - "last_validated_date": "2024-01-19T14:26:26+00:00" + "last_validated_date": "2025-05-12T16:20:56+00:00" }, "tests/aws/services/cloudwatch/test_cloudwatch.py::TestCloudwatch::test_put_metric_data_values_list": { "last_validated_date": "2023-09-25T08:26:17+00:00"