.clientUrl(url(check))
.addDetails(details(check, alerts))
.build();
result = pagerDuty.notify(trigger);
} else if (check.getState() == AlertType.OK) {
Resolution resolution = new Resolution.Builder(incidentKey(check))
.withDescription("Check '" + check.getName() + "' has been resolved.")
.addDetails(details(check, alerts))
.build();
result = pagerDuty.notify(resolution);
} else {