org.cohesive.envoy.event.MonitorEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-event-emitter Show documentation
Show all versions of envoy-event-emitter Show documentation
Abstraction for eventing services.
package org.cohesive.envoy.event;
/**
* Class that provides basic
* functionality required for constructing
* an interesting event regardless of the
* underlying event service implementation.
*
* @author dharrington
*/
@SuppressWarnings("hiding")
public class MonitorEvent {
private String applicationId;
private String title;
private Long timestamp;
private String message;
private String priority;
public MonitorEvent applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
public MonitorEvent title(String title) {
this.title = title;
return this;
}
public MonitorEvent message(String message) {
this.message = message;
return this;
}
public MonitorEvent priority(String priority) {
this.priority = priority;
return this;
}
public MonitorEvent timestamp(Long timestamp) {
this.timestamp = timestamp;
return this;
}
public String getApplicationId() {
return this.applicationId;
}
public String getTitle() {
return this.title;
}
public String getMessage() {
return message;
}
public String getPriority() {
return this.priority;
}
public Long getTimestamp() {
return this.timestamp;
}
}