@objects.objectify(objects.alarm)
def alarm_get(self, uuid):
    query = model_query(models.Alarm)
    if uuid:
        query = query.filter_by(uuid=uuid)
    query = add_alarm_filter_by_event_suppression(query, include_suppress=True)
    query = add_alarm_mgmt_affecting_by_event_suppression(query)
    query = add_alarm_degrade_affecting_by_event_suppression(query)
    try:
        result = query.one()
    except NoResultFound:
        raise exceptions.AlarmNotFound(alarm=uuid)
    return result
@objects.objectify(objects.alarm)
def alarm_get(self, uuid):
    query = model_query(models.Alarm)
    if uuid:
        query = query.filter_by(uuid=uuid)
    query = add_alarm_filter_by_event_suppression(query, include_suppress=True)
    query = add_alarm_mgmt_affecting_by_event_suppression(query)
    query = add_alarm_degrade_affecting_by_event_suppression(query)
    try:
        result = query.one()
    except NoResultFound:
        raise exceptions.AlarmNotFound(alarm=uuid)
    return result