You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(cloudwatch): Math:UnknownIdentifier warning for INSIGHT_RULE_METRIC (#28870)
The CloudWatch `MathExpression` class warns about identifiers missing from `usingMetrics` when `INSIGHT_RULE_METRIC` is used in the expression. It incorrectly parses the arguments to `INSIGHT_RULE_METRIC` as identifiers. When using `INSIGHT_RULE_METRIC`, I don't believe there is anything that needs to be added to `usingMetrics`.
This implementation follows a similar fix done for some other expressions here: #24313
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
warnings['CloudWatch:Math:UnknownIdentifier']=`Math expression '${this.expression}' references unknown identifiers: ${missingIdentifiers.join(', ')}. Please add them to the 'usingMetrics' map.`;
0 commit comments