Now, if a metrics query contains the time range but not the resolution, the minimum resolution is always used. This is incorrect since if the time range is > 10 hours, we are supposed to use the hour resolution, if > 10 mins, we are supposed to use min resolution. Using the second resolution will give much more data points.
Fixed a bug that wrong resolution is used if a time range is specified for metrics query