@objects.objectify(objects.event_log)
def event_log_get_all(self, uuid=None, event_log_id=None, entity_type_id=None, entity_instance_id=None, severity=None, event_log_type=None, start=None, end=None, limit=None, evtType='ALL', include_suppress=False):
    query = model_query(models.EventLog, read_deleted='no')
    query = query.order_by(desc(models.EventLog.timestamp))
    if (uuid is not None):
        query = query.filter_by(uuid=uuid)
    query = self._addEventTypeToQuery(query, evtType)
    if (event_log_id is not None):
        query = query.filter(models.EventLog.event_log_id.contains(event_log_id))
    if (entity_type_id is not None):
        query = query.filter(models.EventLog.entity_type_id.contains(entity_type_id))
    if (entity_instance_id is not None):
        query = query.filter(models.EventLog.entity_instance_id.contains(entity_instance_id))
    if (severity is not None):
        query = query.filter(models.EventLog.severity.contains(severity))
    if (event_log_type is not None):
        query = query.filter_by(event_log_type=event_log_type)
    if (start is not None):
        query = query.filter((models.EventLog.timestamp >= start))
    if (end is not None):
        query = query.filter((models.EventLog.timestamp <= end))
    if (include_suppress is not None):
        query = add_event_log_filter_by_event_suppression(query, include_suppress)
    if (limit is not None):
        query = query.limit(limit)
    hist_list = []
    try:
        hist_list = query.all()
    except UnicodeDecodeError:
        LOG.error('UnicodeDecodeError occurred, return an empty event log list.')
    return hist_list
@objects.objectify(objects.event_log)
def event_log_get_all(self, uuid=None, event_log_id=None, entity_type_id=None, entity_instance_id=None, severity=None, event_log_type=None, start=None, end=None, limit=None, evtType='ALL', include_suppress=False):
    query = model_query(models.EventLog, read_deleted='no')
    query = query.order_by(desc(models.EventLog.timestamp))
    if (uuid is not None):
        query = query.filter_by(uuid=uuid)
    query = self._addEventTypeToQuery(query, evtType)
    if (event_log_id is not None):
        query = query.filter(models.EventLog.event_log_id.contains(event_log_id))
    if (entity_type_id is not None):
        query = query.filter(models.EventLog.entity_type_id.contains(entity_type_id))
    if (entity_instance_id is not None):
        query = query.filter(models.EventLog.entity_instance_id.contains(entity_instance_id))
    if (severity is not None):
        query = query.filter(models.EventLog.severity.contains(severity))
    if (event_log_type is not None):
        query = query.filter_by(event_log_type=event_log_type)
    if (start is not None):
        query = query.filter((models.EventLog.timestamp >= start))
    if (end is not None):
        query = query.filter((models.EventLog.timestamp <= end))
    if (include_suppress is not None):
        query = add_event_log_filter_by_event_suppression(query, include_suppress)
    if (limit is not None):
        query = query.limit(limit)
    hist_list = []
    try:
        hist_list = query.all()
    except UnicodeDecodeError:
        LOG.error('UnicodeDecodeError occurred, return an empty event log list.')
    return hist_list