METRICS-3157: create rest api for 'top 10 queries' feature