lambda-cloudwatch-slack
lambda-cloudwatch-slack copied to clipboard
Fix the issue that alarm info part shows undefined when alarm is base…
When the alarm is created based on an expression of multiple metrics, the "Trigger.MetricName" will be undefined and shown in the slack message. It will make customers think that the alarm is not configured. The commit checks the if alarm is created based on expression, and reflect it to customers avoid the misleading undefined.