}
@Override
public Response getChart(String checkId, int width, int height, String from, String to, boolean hideThresholds, boolean hideLegend, boolean hideAxes) {
Check check = checksStore.getCheck(checkId);
if (check == null) {
return Response.status(Status.NOT_FOUND).build();
}
String target = check.getTarget();
if (hideThresholds) {
return getChart(target, width, height, from, to, null, null, hideLegend, hideAxes);
} else {
return getChart(target, width, height, from, to, check.getWarn(), check.getError(), hideLegend, hideAxes);
}
}