cdk-monitoring-constructs
cdk-monitoring-constructs copied to clipboard
Function createdAlarms doesn't return alarms created with AlarmFactory
Version
v9.7.1
Steps and/or minimal code example to reproduce
- Initialize monitoring facade
- Get alarm factory using
const alarmFactory = monitoringFacade.createAlarmFactory('somePrefix'); - Add some alarms using
const myAlarm = alarmFactory.addAlarm(someMetric, { [...] }); - Try to get list of alarms using
const allAlarms = monitoringFacade.createdAlarms();
Expected behavior
List should include those manually created alarms with alarmFactory.addAlarm
Actual behavior
List is missing alarms created manually with alarmFactory.addAlarm
Other details
This is similar to bug reported here #336