Send alarm state and enabled values with updated events
This commit is contained in:
parent
ada098dd46
commit
f5d2d9255f
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue