From 3301f9681160de3864324b8a194359c1eeb2cc3b Mon Sep 17 00:00:00 2001 From: bergquist Date: Wed, 21 Nov 2018 15:43:37 +0100 Subject: [PATCH] updates time range options for alert queries add some new options for the to value. removes '1s' option for from since thats unreasonable low closes #12134 (cherry picked from commit 14688766efccd608c7470512cd26619d87617b98) --- public/app/features/alerting/state/alertDef.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/alerting/state/alertDef.ts b/public/app/features/alerting/state/alertDef.ts index 378be0afb91..8e50697d33c 100644 --- a/public/app/features/alerting/state/alertDef.ts +++ b/public/app/features/alerting/state/alertDef.ts @@ -8,9 +8,9 @@ const alertQueryDef = new QueryPartDef({ { name: 'from', type: 'string', - options: ['1s', '10s', '1m', '5m', '10m', '15m', '1h', '24h', '48h'], + options: ['10s', '1m', '5m', '10m', '15m', '1h', '24h', '48h'], }, - { name: 'to', type: 'string', options: ['now'] }, + { name: 'to', type: 'string', options: ['now', 'now-1m', 'now-5m', 'now-10m', 'now-1h'] }, ], defaultParams: ['#A', '15m', 'now', 'avg'], });