From ed5648ae02fb609e20393ee01c1dbf08a174dd88 Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Thu, 18 Jan 2018 13:12:54 -0500 Subject: [PATCH] Update policy list --- ui/src/components/PolicyEditor.js | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/ui/src/components/PolicyEditor.js b/ui/src/components/PolicyEditor.js index 3c74f21..47723a6 100644 --- a/ui/src/components/PolicyEditor.js +++ b/ui/src/components/PolicyEditor.js @@ -51,19 +51,16 @@ export const AGGREGATION_FUNCTIONS = [ ]; export const POLICIES = [ - '1s:1h', - '10s:6h', - '10s:12h', - '10s:1d', '10s:2d', '1m:2d', - '1m:7d', - '1m:14d', '1m:40d', - '10m:2d', - '10m:7d', - '10m:14d', - '10m:40d', + '10m:180d', + '10m:1y', + '10m:3y', + '10m:5y', + '1h:1y', + '1h:3y', + '1h:5y', ]; const Option = Select.Option; @@ -124,7 +121,7 @@ export function PolicyEditor(props: Props) { const showAggs = typeTag === 'timer'; let policies = policyList; if (!_.includes(['gauge', 'counter'], typeTag)) { - policies = policies.filter(p => !p.startsWith('10m')); + policies = policies.filter(p => !p.startsWith('1h')); } return (