Merge pull request #1915 from getredash/patches

Add 12 & 24 hours refresh rate option to dashboards.
This commit is contained in:
Arik Fraimovich 2017-08-06 20:53:43 +03:00 committed by GitHub
commit 2f386781d7
2 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,7 @@
- Add limit parameter to tasks API. @alexpekurovsky
- Add SQLAlchemy pool settings.
- Support for category type y axis.
- Add 12 & 24 hours refresh rate option to dashboards.
### Changed

View File

@ -17,6 +17,8 @@ function DashboardCtrl($rootScope, $routeParams, $location, $timeout, $q, $uibMo
{ name: '10 minutes', rate: 60 * 10 },
{ name: '30 minutes', rate: 60 * 30 },
{ name: '1 hour', rate: 60 * 60 },
{ name: '12 hour', rate: 12 * 60 * 60 },
{ name: '24 hour', rate: 24 * 60 * 60 },
];
this.setRefreshRate = (rate) => {