add query support to alert history endpoint