false));
return anr;
}
private AlertConditionRest conditionToConditionRest(AlertCondition condition) {
AlertConditionRest acr = new AlertConditionRest();
acr.setId(condition.getId());
acr.setName(condition.getName());
acr.setCategory(condition.getCategory().getName());
acr.setOption(condition.getOption());
acr.setComparator(condition.getComparator());
acr.setMeasurementDefinition(condition.getMeasurementDefinition()==null?0:condition.getMeasurementDefinition().getId());
acr.setThreshold(condition.getThreshold());
acr.setTriggerId(condition.getTriggerId()); // TODO what's that?
return acr;
}