summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/constants.js
blob: 605c95e6da52b882b04b96efff70e104233df5d8 (plain)
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
import { __ } from '~/locale';

export const sidebarAnimationDuration = 300; // milliseconds.

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'),
};

export const timeWindowsKeyNames = {
  thirtyMinutes: 'thirtyMinutes',
  threeHours: 'threeHours',
  eightHours: 'eightHours',
  oneDay: 'oneDay',
  threeDays: 'threeDays',
  oneWeek: 'oneWeek',
};