Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Commit

Permalink
Update policy list
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao Wang committed Jan 18, 2018
1 parent 1441ef1 commit ed5648a
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions ui/src/components/PolicyEditor.js
Expand Up @@ -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;
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit ed5648a

Please sign in to comment.