/*
* Should not be able to update an alert definition if the old alert definition is in an invalid state
*/
if (oldAlertDefinition.getDeleted()) {
throw new AlertDefinitionUpdateException("Can not update deleted " + oldAlertDefinition.toSimpleString());
}
AlertDefinitionUpdateType updateType = AlertDefinitionUpdateType.get(oldAlertDefinition, alertDefinition);
if (isResourceLevel