def get_history(query=None, page=1, page_size=100): return [RichHistory.from_db(hist) for hist in db.get_history(query, page, page_size)]
def get_alert_history(alert, page=1, page_size=100): return [RichHistory.from_db(hist) for hist in db.get_alert_history(alert, page, page_size)]
def get_history(query: Query=None, page=1, page_size=1000) -> List[RichHistory]: return [RichHistory.from_db(hist) for hist in db.get_history(query, page, page_size)]