summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/monitoring/stores/state.js
blob: 440bdc951e013146940500254e0273db420b0718 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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,
  emptyState: 'gettingStarted',
  showEmptyState: true,
  showErrorBanner: true,
  groups: [],
  deploymentData: [],
  environments: [],
  metricsWithData: [],
  allDashboards: [],
  currentDashboard: null,
  projectPath: null,
});