all files / app/ common.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33            1×                 1×             1×     1×           1×  
/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */
 
export const availableTimeframe = {
    '10m': 'Last 10 minutes',
    '30m': 'Last 30 minutes',
    '1h': 'Last hour',
    '4h': 'Last 4 hours',
    'today': 'Today',
    'yesterday': 'Yesterday',
};
 
export const historicalAvailableTimeframe = Object.assign({},
    availableTimeframe,
    {
        '7d': 'Last 7 days',
        '30d': 'Last 30 days',
    });
 
export const defaultTimeframe = '30m';
 
 
export const availableTimeUnit = {
    '1d': 'Day',
    '1h': 'Hour',
    '1m': 'Minute'
};
 
export const defaultTimeUnit = '1d';