debian-mirror-gitlab/app/assets/javascripts/monitoring/constants.js

30 lines
576 B
JavaScript
Raw Normal View History

2019-07-07 11:18:12 +05:30
import { __ } from '~/locale';
export const chartHeight = 300;
export const graphTypes = {
deploymentData: 'scatter',
};
export const lineTypes = {
default: 'solid',
};
export const timeWindows = {
thirtyMinutes: __('30 minutes'),
threeHours: __('3 hours'),
eightHours: __('8 hours'),
oneDay: __('1 day'),
threeDays: __('3 days'),
oneWeek: __('1 week'),
};
2019-07-31 22:56:46 +05:30
export const timeWindowsKeyNames = {
thirtyMinutes: 'thirtyMinutes',
threeHours: 'threeHours',
eightHours: 'eightHours',
oneDay: 'oneDay',
threeDays: 'threeDays',
oneWeek: 'oneWeek',
};