summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/stores/state.js
blob: a14a25e3a2095216b9cf5a27e8e30e4a02637d9f (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
import invalidUrl from '~/lib/utils/invalid_url';

export default () => ({
  hasMetrics: false,
  showPanels: true,
  metricsEndpoint: null,
  environmentsEndpoint: null,
  deploymentsEndpoint: null,
  dashboardEndpoint: invalidUrl,
  useDashboardEndpoint: false,
  multipleDashboardsEnabled: false,
  additionalPanelTypesEnabled: false,
  exportMetricsToCsvEnabled: false,
  emptyState: 'gettingStarted',
  showEmptyState: true,
  showErrorBanner: true,
  groups: [],
  deploymentData: [],
  environments: [],
  metricsWithData: [],
  allDashboards: [],
  currentDashboard: null,
  projectPath: null,
});