@Override
public String toString() {
List<String> dataStrings = new ArrayList<>(this.getData().length);
for (Object obj : this.getData()) {
if (obj != null) {
dataStrings.add(obj.toString());
} else {
dataStrings.add(null);
}
}
return String.format("Alert {site=%s, stream=%s,timestamp=%s,data=%s, policyId=%s, createdBy=%s, metaVersion=%s}",
this.getSiteId(),
this.getStreamId(), DateTimeUtil.millisecondsToHumanDateWithMilliseconds(this.getTimestamp()),
this.getDataMap(), this.getPolicyId(), this.getCreatedBy(), this.getMetaVersion());
}