Send alarm state and enabled values with updated events

This commit is contained in:
Jonathan Halterman 2014-03-26 16:48:36 -07:00
parent ada098dd46
commit f5d2d9255f
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<properties>
<computedVersion>${project.version}-${timestamp}-${buildNumber}</computedVersion>
<computedName>${project.artifactId}-${computedVersion}</computedName>
<mon.common.version>1.0.0.22</mon.common.version>
<mon.common.version>1.0.0.23</mon.common.version>
<dropwizard.version>0.7.0-rc2</dropwizard.version>
<skipITs>true</skipITs>

View File

@ -180,7 +180,7 @@ public class AlarmService {
// Notify interested parties of new alarm
String event = Serialization.toJson(new AlarmUpdatedEvent(tenantId, alarmId, name,
expression, subAlarms.getKey(), subAlarms.getValue()));
expression, state, enabled, subAlarms.getKey(), subAlarms.getValue()));
producer.send(new KeyedMessage<>(config.eventsTopic, tenantId, event));
} catch (Exception e) {
throw Exceptions.uncheck(e, "Error updating alarm for project / tenant %s", tenantId);