ALM-704 allow query for resolved alerts
ALM-704 added tests
ALM-704 added documentation