assertible / lambda-cloudwatch-slack

Send AWS CloudWatch notifications to a Slack channel using Lambda
https://assertible.com/blog/npm-package-lambda-cloudwatch-slack
MIT License
482 stars 249 forks source link

Fix the issue that alarm info part shows undefined when alarm is base… #46

Open felixfang opened 5 years ago

felixfang commented 5 years ago

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.