cdk-monitoring-constructs icon indicating copy to clipboard operation
cdk-monitoring-constructs copied to clipboard

Function createdAlarms doesn't return alarms created with AlarmFactory

Open PatrykMilewski opened this issue 5 months ago • 0 comments

Version

v9.7.1

Steps and/or minimal code example to reproduce

  1. Initialize monitoring facade
  2. Get alarm factory using const alarmFactory = monitoringFacade.createAlarmFactory('somePrefix');
  3. Add some alarms using const myAlarm = alarmFactory.addAlarm(someMetric, { [...] });
  4. 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

PatrykMilewski avatar May 21 '25 13:05 PatrykMilewski