updated metrics list method to accept parameters; added new metrics rest endpoint for specifying time intervals