summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/constants.js
blob: 26f1bf3f68d82ac941119eb8378bf244af39dd77 (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
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'),
};

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