add query syntax to alerts api ref #76