I am in the process of creating an event using the following code:
Event emailInfos := new Event;
emailInfos.params.add("message", emailText);
emailInfos.params.add("newAlarm", newAlarms);
emailInfos.params.add("childDeviceId", source);
send emailInfos to "emailServer";
After initiating this event, I would like to confirm its successful creation. Despite checking on the Events page, I am unable to locate it. Is there a way to obtain a return value or confirmation to ascertain whether the event was created successfully or not?
Yes, then from another EPL I am trying to read the Event like this:
action onload {
monitor.subscribe("emailServer");
log ("Inside the email aggregator");
on all Event(type="emailServer") as e {
log "ME " + e.toString();
collctedEmail.append(e);
}
}