.build());
NotifyResult result = null;
try {
if (check.getState() == AlertType.ERROR) {
Trigger trigger = new Trigger.Builder("Check '" + check.getName() + "' has exceeded its threshold.")
.withIncidentKey(incidentKey(check))
.client("Seyren")
.clientUrl(url(check))
.addDetails(details(check, alerts))
.build();