Skip to content

Commit

Permalink
ui: add 30 minutes time range selector
Browse files Browse the repository at this point in the history
Extends time range selector with 30 minutes option to provide more
granular predefined options.

Release note (admin ui change): Time range selector is extended with
30 minutes option (Metrics page)
  • Loading branch information
koorosh committed Jul 1, 2020
1 parent 791ee6b commit 986a57e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/ui/src/redux/timewindow.ts
Expand Up @@ -66,6 +66,11 @@ export let availableTimeScales: TimeScaleCollection = _.mapValues(
windowValid: moment.duration(10, "seconds"),
sampleSize: moment.duration(10, "seconds"),
},
"Past 30 Minutes": {
windowSize: moment.duration(30, "minutes"),
windowValid: moment.duration(30, "seconds"),
sampleSize: moment.duration(30, "seconds"),
},
"Past 1 Hour": {
windowSize: moment.duration(1, "hour"),
windowValid: moment.duration(1, "minute"),
Expand Down

0 comments on commit 986a57e

Please sign in to comment.