new SubAlarm(subAlarmId, alarmId, alarmSubExpression)));
}
void handle(AlarmDeletedEvent event) {
for (Map.Entry<String, MetricDefinition> entry : event.subAlarmMetricDefinitions.entrySet()) {
<BUG>sendDeletedSubAlarm(entry.getKey(), entry.getValue());
</BUG>
}
collector.emit(ALARM_EVENT_STREAM_ID, new Values(DELETED, event.alarmId));
}
<BUG>private void sendDeletedSubAlarm(String subAlarmId, MetricDefinition metricDef) {

collector.emit(METRIC_ALARM_EVENT_STREAM_ID, new Values(DELETED, metricDef, subAlarmId));
}</BUG>
void handle(AlarmUpdatedEvent event) {

new SubAlarm(subAlarmId, alarmId, alarmSubExpression)));
}
void handle(AlarmDeletedEvent event) {
for (Map.Entry<String, MetricDefinition> entry : event.subAlarmMetricDefinitions.entrySet()) {
sendDeletedSubAlarm(entry.getKey(), event.tenantId, entry.getValue());
}
collector.emit(ALARM_EVENT_STREAM_ID, new Values(DELETED, event.alarmId));
}
private void sendDeletedSubAlarm(String subAlarmId, String tenantId, MetricDefinition metricDef) {
collector.emit(METRIC_ALARM_EVENT_STREAM_ID, new Values(DELETED,
new MetricDefinitionAndTenantId(metricDef, tenantId), subAlarmId));
}
void handle(AlarmUpdatedEvent event) {
