We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c208e52 commit 61579ecCopy full SHA for 61579ec
src/main/java/software/amazon/cloudwatchlogs/emf/util/Validator.java
@@ -124,8 +124,9 @@ public static void validateMetric(
124
throw new InvalidMetricException("Metric unit cannot be null");
125
}
126
127
- if (storageResolution == null) {
128
- throw new InvalidMetricException("Metric resolution cannot be null");
+ if (storageResolution == null
+ || storageResolution == StorageResolution.UNKNOWN_TO_SDK_VERSION) {
129
+ throw new InvalidMetricException("Metric resolution is invalid");
130
131
132
if (metricNameAndResolutionMap.containsKey(name)) {
0 commit comments