Related to https://issues.cask.co/browse/CDAP-1920.
Currently the rules are:
- (endTime - startTime) >= 3610, resolution will be 3600 seconds (effectively in hours);
- (endTime - startTime) >= 610, resolution will be 60 seconds (effectively in minutes);
- otherwise, resolution will be in seconds.
it must be:
- if <=10 minutes, use seconds
- if <=10 hours, use minutes
- use hours otherwise
So that we plot up to 600-700 data points (if time range size is up to 31 days)