mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Move server code into NP folder * NP config is not yet used * Relative imports are somewhat broken * Move common folder into NP * Move cypress folder into NP * Move scripts folder into NP * Move misc. config into NP folder A few of these were moved into the cypress folder as they're cypress-specific. I tried to update all the relative paths but some are likely broken. I'm not going to know until other stuff is fixed, though. * Move value for siem index pattern into common/constants The other default values live in there, this is no different. * Update paths following file move If this was referencing the full project, it now references both paths (legacy for UI, and NP for server). * Fix typescript errors related to module resolution These are mostly updating imports to the common/ folder on the UI side (since things changed relative to those files). * Replace Legacy Config with NP Config * Updates plugin to use NP config * defines new config previously coming from savedObjects config * cleans up legacy types Conflicts: x-pack/plugins/siem/server/lib/detection_engine/routes/rules/export_rules_route.ts x-pack/plugins/siem/server/lib/detection_engine/routes/rules/import_rules_route.ts x-pack/plugins/siem/server/lib/detection_engine/rules/types.ts x-pack/plugins/siem/server/plugin.ts x-pack/plugins/siem/server/routes/index.ts x-pack/plugins/siem/server/types.ts * Remove local SIEM tsconfig This was originally added to address an issue with tsserver, but that issue is no longer relevant. The presence of this file confuses typescript into thinking that siem is a separate TS project. * Update kibana.json to declare our dependencies These are not necessarily correct in terms of what's required/optional, but this is what's declared in our types. * Remove legacy plugin instantiation * Removes legacy instantiation of server plugin, which is now handled by NP * Loosens legacy config spec so we no longer have to duplicate config types * Update tests with NP config These were written against the old Hapi config function; now, we just have a POJO. * Update es_archiver helpers' paths I'm not quite sure if these are working yet, but they're no longer throwing errors. * Ignore restricted path on script This was cribbed from infra, who has made a similar change. * Ignore restricted path on temporary savedObject mappings import This will be changed subsequently when we switch to the NP form of savedObject type registration. * Add symlink to lockfile * Fix paths on circular deps script * Add separate config for Rule and Timeline saved objects We had previously used the savedObjects' config, but those are not currently exposed to us on New Platform. For now, we're going to split this into two sets of values for the SOs we deal with importing/exporting within the SIEM app, with the same defaults as savedObjects. * Fixing relative paths within cypress These are strings that wouldn't be caught by typescript.
This commit is contained in:
parent
7e792b06e9
commit
59f091eb73
1003 changed files with 722 additions and 770 deletions
|
@ -571,7 +571,7 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
// typescript only for front and back end
|
||||
files: ['x-pack/legacy/plugins/siem/**/*.{ts,tsx}'],
|
||||
files: ['x-pack/{,legacy/}plugins/siem/**/*.{ts,tsx}'],
|
||||
rules: {
|
||||
// This will be turned on after bug fixes are complete
|
||||
// '@typescript-eslint/explicit-member-accessibility': 'warn',
|
||||
|
@ -617,7 +617,7 @@ module.exports = {
|
|||
// },
|
||||
{
|
||||
// typescript and javascript for front and back end
|
||||
files: ['x-pack/legacy/plugins/siem/**/*.{js,ts,tsx}'],
|
||||
files: ['x-pack/{,legacy/}plugins/siem/**/*.{js,ts,tsx}'],
|
||||
plugins: ['eslint-plugin-node', 'react'],
|
||||
env: {
|
||||
mocha: true,
|
||||
|
|
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -41,7 +41,7 @@ kibanaPipeline(timeoutMinutes: 135, checkPrChanges: true) {
|
|||
'xpack-ciGroup10': kibanaPipeline.xpackCiGroupProcess(10),
|
||||
'xpack-accessibility': kibanaPipeline.functionalTestProcess('xpack-accessibility', './test/scripts/jenkins_xpack_accessibility.sh'),
|
||||
'xpack-siemCypress': { processNumber ->
|
||||
whenChanged(['x-pack/legacy/plugins/siem/', 'x-pack/test/siem_cypress/']) {
|
||||
whenChanged(['x-pack/plugins/siem/', 'x-pack/legacy/plugins/siem/', 'x-pack/test/siem_cypress/']) {
|
||||
kibanaPipeline.functionalTestProcess('xpack-siemCypress', './test/scripts/jenkins_siem_cypress.sh')(processNumber)
|
||||
}
|
||||
},
|
||||
|
|
|
@ -263,7 +263,7 @@ export class ClusterManager {
|
|||
...pluginInternalDirsIgnore,
|
||||
fromRoot('src/legacy/server/sass/__tmp__'),
|
||||
fromRoot('x-pack/legacy/plugins/reporting/.chromium'),
|
||||
fromRoot('x-pack/legacy/plugins/siem/cypress'),
|
||||
fromRoot('x-pack/plugins/siem/cypress'),
|
||||
fromRoot('x-pack/legacy/plugins/apm/e2e'),
|
||||
fromRoot('x-pack/legacy/plugins/apm/scripts'),
|
||||
fromRoot('x-pack/legacy/plugins/canvas/canvas_plugin_src'), // prevents server from restarting twice for Canvas plugin changes,
|
||||
|
|
|
@ -24,6 +24,6 @@ export const storybookAliases = {
|
|||
drilldowns: 'x-pack/plugins/drilldowns/scripts/storybook.js',
|
||||
embeddable: 'src/plugins/embeddable/scripts/storybook.js',
|
||||
infra: 'x-pack/legacy/plugins/infra/scripts/storybook.js',
|
||||
siem: 'x-pack/legacy/plugins/siem/scripts/storybook.js',
|
||||
siem: 'x-pack/plugins/siem/scripts/storybook.js',
|
||||
ui_actions: 'x-pack/plugins/advanced_ui_actions/scripts/storybook.js',
|
||||
};
|
||||
|
|
|
@ -27,7 +27,7 @@ export const PROJECTS = [
|
|||
new Project(resolve(REPO_ROOT, 'test/tsconfig.json'), { name: 'kibana/test' }),
|
||||
new Project(resolve(REPO_ROOT, 'x-pack/tsconfig.json')),
|
||||
new Project(resolve(REPO_ROOT, 'x-pack/test/tsconfig.json'), { name: 'x-pack/test' }),
|
||||
new Project(resolve(REPO_ROOT, 'x-pack/legacy/plugins/siem/cypress/tsconfig.json'), {
|
||||
new Project(resolve(REPO_ROOT, 'x-pack/plugins/siem/cypress/tsconfig.json'), {
|
||||
name: 'siem/cypress',
|
||||
}),
|
||||
new Project(resolve(REPO_ROOT, 'x-pack/legacy/plugins/apm/e2e/tsconfig.json'), {
|
||||
|
|
|
@ -16,7 +16,7 @@ echo ""
|
|||
|
||||
echo " -> Running SIEM cyclic dependency test"
|
||||
cd "$XPACK_DIR"
|
||||
checks-reporter-with-killswitch "X-Pack SIEM cyclic dependency test" node legacy/plugins/siem/scripts/check_circular_deps
|
||||
checks-reporter-with-killswitch "X-Pack SIEM cyclic dependency test" node plugins/siem/scripts/check_circular_deps
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
"xpack.searchProfiler": "plugins/searchprofiler",
|
||||
"xpack.security": ["legacy/plugins/security", "plugins/security"],
|
||||
"xpack.server": "legacy/server",
|
||||
"xpack.siem": "legacy/plugins/siem",
|
||||
"xpack.siem": ["plugins/siem", "legacy/plugins/siem"],
|
||||
"xpack.snapshotRestore": "plugins/snapshot_restore",
|
||||
"xpack.spaces": ["legacy/plugins/spaces", "plugins/spaces"],
|
||||
"xpack.taskManager": "legacy/plugins/task_manager",
|
||||
|
|
1
x-pack/legacy/plugins/siem/.gitattributes
vendored
1
x-pack/legacy/plugins/siem/.gitattributes
vendored
|
@ -1,6 +1,5 @@
|
|||
# Auto-collapse generated files in GitHub
|
||||
# https://help.github.com/en/articles/customizing-how-changed-files-appear-on-github
|
||||
x-pack/legacy/plugins/siem/public/graphql/types.ts linguist-generated=true
|
||||
x-pack/legacy/plugins/siem/server/graphql/types.ts linguist-generated=true
|
||||
x-pack/legacy/plugins/siem/public/graphql/introspection.json linguist-generated=true
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"baseUrl": "http://localhost:5601",
|
||||
"defaultCommandTimeout": 120000,
|
||||
"screenshotsFolder": "../../../../target/kibana-siem/cypress/screenshots",
|
||||
"trashAssetsBeforeRuns": false,
|
||||
"video": false,
|
||||
"videosFolder": "../../../../target/kibana-siem/cypress/videos"
|
||||
}
|
|
@ -6,11 +6,10 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { resolve } from 'path';
|
||||
import { Server } from 'hapi';
|
||||
import { Root } from 'joi';
|
||||
|
||||
import { plugin } from './server';
|
||||
import { savedObjectMappings } from './server/saved_objects';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { savedObjectMappings } from '../../../plugins/siem/server/saved_objects';
|
||||
|
||||
import {
|
||||
APP_ID,
|
||||
|
@ -23,15 +22,13 @@ import {
|
|||
DEFAULT_INTERVAL_VALUE,
|
||||
DEFAULT_FROM,
|
||||
DEFAULT_TO,
|
||||
DEFAULT_SIGNALS_INDEX,
|
||||
ENABLE_NEWS_FEED_SETTING,
|
||||
NEWS_FEED_URL_SETTING,
|
||||
NEWS_FEED_URL_SETTING_DEFAULT,
|
||||
SIGNALS_INDEX_KEY,
|
||||
IP_REPUTATION_LINKS_SETTING,
|
||||
IP_REPUTATION_LINKS_SETTING_DEFAULT,
|
||||
} from './common/constants';
|
||||
import { defaultIndexPattern } from './default_index_pattern';
|
||||
DEFAULT_INDEX_PATTERN,
|
||||
} from '../../../plugins/siem/common/constants';
|
||||
import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/utils';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
@ -102,7 +99,7 @@ export const siem = (kibana: any) => {
|
|||
name: i18n.translate('xpack.siem.uiSettings.defaultIndexLabel', {
|
||||
defaultMessage: 'Elasticsearch indices',
|
||||
}),
|
||||
value: defaultIndexPattern,
|
||||
value: DEFAULT_INDEX_PATTERN,
|
||||
description: i18n.translate('xpack.siem.uiSettings.defaultIndexDescription', {
|
||||
defaultMessage:
|
||||
'<p>Comma-delimited list of Elasticsearch indices from which the SIEM app collects events.</p>',
|
||||
|
@ -162,31 +159,12 @@ export const siem = (kibana: any) => {
|
|||
},
|
||||
mappings: savedObjectMappings,
|
||||
},
|
||||
init(server: Server) {
|
||||
const { coreContext, env, setup, start } = server.newPlatform;
|
||||
const initializerContext = { ...coreContext, env };
|
||||
const __legacy = {
|
||||
config: server.config,
|
||||
route: server.route.bind(server),
|
||||
};
|
||||
|
||||
// @ts-ignore-next-line: NewPlatform shim is too loosely typed
|
||||
const pluginInstance = plugin(initializerContext);
|
||||
// @ts-ignore-next-line: NewPlatform shim is too loosely typed
|
||||
pluginInstance.setup(setup.core, setup.plugins, __legacy);
|
||||
// @ts-ignore-next-line: NewPlatform shim is too loosely typed
|
||||
pluginInstance.start(start.core, start.plugins);
|
||||
},
|
||||
config(Joi: Root) {
|
||||
// See x-pack/plugins/siem/server/config.ts if you're adding another
|
||||
// value where the configuration has to be duplicated at the moment.
|
||||
// When we move over to the new platform completely this will be
|
||||
// removed and only server/config.ts should be used.
|
||||
return Joi.object()
|
||||
.keys({
|
||||
enabled: Joi.boolean().default(true),
|
||||
[SIGNALS_INDEX_KEY]: Joi.string().default(DEFAULT_SIGNALS_INDEX),
|
||||
})
|
||||
.unknown(true)
|
||||
.default();
|
||||
},
|
||||
});
|
||||
|
|
|
@ -1,16 +1,10 @@
|
|||
{
|
||||
"author": "Elastic",
|
||||
"name": "siem",
|
||||
"name": "siem-legacy-ui",
|
||||
"version": "8.0.0",
|
||||
"private": true,
|
||||
"license": "Elastic-License",
|
||||
"scripts": {
|
||||
"extract-mitre-attacks": "node scripts/extract_tactics_techniques_mitre.js & node ../../../../scripts/eslint ./public/pages/detection_engine/mitre/mitre_tactics_techniques.ts --fix",
|
||||
"build-graphql-types": "node scripts/generate_types_from_graphql.js",
|
||||
"cypress:open": "../../../node_modules/.bin/cypress open",
|
||||
"cypress:run": "../../../node_modules/.bin/cypress run --spec ./cypress/integration/**/*.spec.ts --reporter ../../../node_modules/cypress-multi-reporters --reporter-options configFile=./reporter_config.json; status=$?; ../../../node_modules/.bin/mochawesome-merge --reportDir ../../../../target/kibana-siem/cypress/results > ../../../../target/kibana-siem/cypress/results/output.json; ../../../../node_modules/.bin/marge ../../../../target/kibana-siem/cypress/results/output.json --reportDir ../../../../target/kibana-siem/cypress/results; mkdir -p ../../../../target/junit && cp ../../../../target/kibana-siem/cypress/results/*.xml ../../../../target/junit/ && exit $status;",
|
||||
"cypress:run-as-ci": "node ../../../../scripts/functional_tests --config ../../../test/siem_cypress/config.ts"
|
||||
},
|
||||
"scripts": {},
|
||||
"devDependencies": {
|
||||
"@types/lodash": "^4.14.110",
|
||||
"@types/js-yaml": "^3.12.1",
|
||||
|
|
|
@ -20,7 +20,7 @@ import { pluck } from 'rxjs/operators';
|
|||
import { KibanaContextProvider, useKibana, useUiSetting$ } from '../lib/kibana';
|
||||
import { Storage } from '../../../../../../src/plugins/kibana_utils/public';
|
||||
|
||||
import { DEFAULT_DARK_MODE } from '../../common/constants';
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../plugins/siem/common/constants';
|
||||
import { ErrorToastDispatcher } from '../components/error_toast_dispatcher';
|
||||
import { compose } from '../lib/compose/kibana_compose';
|
||||
import { AppFrontendLibs, AppApolloClient } from '../lib/lib';
|
||||
|
|
|
@ -6,11 +6,11 @@
|
|||
import React, { useEffect, useCallback, useMemo } from 'react';
|
||||
import numeral from '@elastic/numeral';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../plugins/siem/common/constants';
|
||||
import { AlertsComponentsQueryProps } from './types';
|
||||
import { AlertsTable } from './alerts_table';
|
||||
import * as i18n from './translations';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../common/constants';
|
||||
import { MatrixHistogramContainer } from '../matrix_histogram';
|
||||
import { histogramConfigs } from './histogram_configs';
|
||||
import { MatrixHisrogramConfigs } from '../matrix_histogram/types';
|
||||
|
|
|
@ -19,8 +19,8 @@ import {
|
|||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting } from '../../lib/kibana';
|
||||
import { DEFAULT_DARK_MODE } from '../../../common/constants';
|
||||
|
||||
export const defaultChartHeight = '100%';
|
||||
export const defaultChartWidth = '100%';
|
||||
|
|
|
@ -8,7 +8,6 @@ import { EuiBadge, EuiToolTip, IconType } from '@elastic/eui';
|
|||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { Omit } from '../../../common/utility_types';
|
||||
import { DragEffects, DraggableWrapper } from '../drag_and_drop/draggable_wrapper';
|
||||
import { escapeDataProviderId } from '../drag_and_drop/helpers';
|
||||
import { getEmptyStringTag } from '../empty_value';
|
||||
|
|
|
@ -14,7 +14,7 @@ import {
|
|||
EmbeddablePanel,
|
||||
ErrorEmbeddable,
|
||||
} from '../../../../../../../src/plugins/embeddable/public';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { getIndexPatternTitleIdMapping } from '../../hooks/api/helpers';
|
||||
import { useIndexPatterns } from '../../hooks/use_index_patterns';
|
||||
import { Loader } from '../loader';
|
||||
|
|
|
@ -8,6 +8,7 @@ import React, { useCallback, useMemo, useEffect } from 'react';
|
|||
import { connect, ConnectedProps } from 'react-redux';
|
||||
import deepEqual from 'fast-deep-equal';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { inputsModel, inputsSelectors, State, timelineSelectors } from '../../store';
|
||||
import { inputsActions, timelineActions } from '../../store/actions';
|
||||
import {
|
||||
|
@ -17,12 +18,10 @@ import {
|
|||
} from '../../store/timeline/model';
|
||||
import { OnChangeItemsPerPage } from '../timeline/events';
|
||||
import { Filter } from '../../../../../../../src/plugins/data/public';
|
||||
|
||||
import { useUiSetting } from '../../lib/kibana';
|
||||
import { EventsViewer } from './events_viewer';
|
||||
import { useFetchIndexPatterns } from '../../containers/detection_engine/rules/fetch_index_patterns';
|
||||
import { TimelineTypeContextProps } from '../timeline/timeline_context';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { InspectButtonContainer } from '../inspect';
|
||||
import * as i18n from './translations';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import numeral from '@elastic/numeral';
|
||||
|
||||
import { DEFAULT_BYTES_FORMAT } from '../../../common/constants';
|
||||
import { DEFAULT_BYTES_FORMAT } from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
|
||||
type Bytes = string | number;
|
||||
|
|
|
@ -6,9 +6,10 @@
|
|||
|
||||
import { EuiLink, EuiToolTip, EuiFlexGroup, EuiFlexItem } from '@elastic/eui';
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { isNil } from 'lodash/fp';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { IP_REPUTATION_LINKS_SETTING } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
DefaultFieldRendererOverflow,
|
||||
DEFAULT_MORE_MAX_HEIGHT,
|
||||
|
@ -22,7 +23,6 @@ import {
|
|||
} from '../link_to';
|
||||
import { FlowTarget, FlowTargetSourceDest } from '../../graphql/types';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
import { IP_REPUTATION_LINKS_SETTING } from '../../../common/constants';
|
||||
import { isUrlInvalid } from '../../pages/detection_engine/rules/components/step_about_rule/helpers';
|
||||
import { ExternalLinkIcon } from '../external_link_icon';
|
||||
import { navTabs } from '../../pages/home/home_navigations';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { EuiTitleSize } from '@elastic/eui';
|
||||
import { ScaleType, Position, TickFormatter } from '@elastic/charts';
|
||||
import { ActionCreator } from 'redux';
|
||||
import { ESQuery } from '../../../common/typed_json';
|
||||
import { ESQuery } from '../../../../../../plugins/siem/common/typed_json';
|
||||
import { SetQuery } from '../../pages/hosts/navigation/types';
|
||||
import { InputsModelId } from '../../store/inputs/constants';
|
||||
import { HistogramType } from '../../graphql/types';
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
*/
|
||||
|
||||
import { useState, useEffect } from 'react';
|
||||
|
||||
import { DEFAULT_ANOMALY_SCORE } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { anomaliesTableData } from '../api/anomalies_table_data';
|
||||
import { InfluencerInput, Anomalies, CriteriaFields } from '../types';
|
||||
import { hasMlUserPermissions } from '../permissions/has_ml_user_permissions';
|
||||
|
@ -14,7 +16,6 @@ import { useStateToaster, errorToToaster } from '../../toasters';
|
|||
|
||||
import * as i18n from './translations';
|
||||
import { useTimeZone, useUiSetting$ } from '../../../lib/kibana';
|
||||
import { DEFAULT_ANOMALY_SCORE } from '../../../../common/constants';
|
||||
|
||||
interface Args {
|
||||
influencers?: InfluencerInput[];
|
||||
|
|
|
@ -7,11 +7,12 @@
|
|||
import { EuiText, EuiSpacer, EuiFlexGroup, EuiFlexItem, EuiLink } from '@elastic/eui';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DescriptionList } from '../../../../../../../plugins/siem/common/utility_types';
|
||||
import { Anomaly, NarrowDateRange } from '../types';
|
||||
import { getScoreString } from './score_health';
|
||||
import { PreferenceFormattedDate } from '../../formatted_date';
|
||||
import { createInfluencers } from './../influencers/create_influencers';
|
||||
import { DescriptionList } from '../../../../common/utility_types';
|
||||
import * as i18n from './translations';
|
||||
import { createExplorerLink } from '../links/create_explorer_link';
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { checkRecognizer, getJobsSummary, getModules } from '../api';
|
||||
import { SiemJob } from '../types';
|
||||
import { hasMlUserPermissions } from '../../ml/permissions/has_ml_user_permissions';
|
||||
import { errorToToaster, useStateToaster } from '../../toasters';
|
||||
import { useUiSetting$ } from '../../../lib/kibana';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
|
||||
import * as i18n from './translations';
|
||||
import { createSiemJobs } from './use_siem_jobs_helpers';
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
import styled from 'styled-components';
|
||||
import React, { useState, useCallback } from 'react';
|
||||
import { EuiFlexGroup, EuiFlexItem, EuiLoadingSpinner, EuiSwitch } from '@elastic/eui';
|
||||
import { SiemJob } from '../types';
|
||||
import {
|
||||
isJobLoading,
|
||||
isJobFailed,
|
||||
isJobStarted,
|
||||
} from '../../../../common/detection_engine/ml_helpers';
|
||||
} from '../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { SiemJob } from '../types';
|
||||
|
||||
const StaticSwitch = styled(EuiSwitch)`
|
||||
.euiSwitch__thumb,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { getOr, omit } from 'lodash/fp';
|
||||
|
||||
import { ChromeBreadcrumb } from '../../../../../../../../src/core/public';
|
||||
import { APP_NAME } from '../../../../common/constants';
|
||||
import { APP_NAME } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { StartServices } from '../../../plugin';
|
||||
import { getBreadcrumbs as getHostDetailsBreadcrumbs } from '../../../pages/hosts/details/utils';
|
||||
import { getBreadcrumbs as getIPDetailsBreadcrumbs } from '../../../pages/network/ip_details';
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { NEWS_FEED_URL_SETTING_DEFAULT } from '../../../../../../plugins/siem/common/constants';
|
||||
import { KibanaServices } from '../../lib/kibana';
|
||||
import { NEWS_FEED_URL_SETTING_DEFAULT } from '../../../common/constants';
|
||||
import { rawNewsApiResponse } from '../../mock/news';
|
||||
import { rawNewsJSON } from '../../mock/raw_news';
|
||||
|
||||
|
|
|
@ -10,8 +10,8 @@ import lightTheme from '@elastic/eui/dist/eui_theme_light.json';
|
|||
import { getOr } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../common/constants';
|
||||
import { DescriptionList } from '../../../../../common/utility_types';
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { DescriptionList } from '../../../../../../../../plugins/siem/common/utility_types';
|
||||
import { useUiSetting$ } from '../../../../lib/kibana';
|
||||
import { getEmptyTagValue } from '../../../empty_value';
|
||||
import { DefaultFieldRenderer, hostIdRenderer } from '../../../field_renderers/field_renderers';
|
||||
|
|
|
@ -9,8 +9,8 @@ import darkTheme from '@elastic/eui/dist/eui_theme_dark.json';
|
|||
import lightTheme from '@elastic/eui/dist/eui_theme_light.json';
|
||||
import React from 'react';
|
||||
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../common/constants';
|
||||
import { DescriptionList } from '../../../../../common/utility_types';
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { DescriptionList } from '../../../../../../../../plugins/siem/common/utility_types';
|
||||
import { useUiSetting$ } from '../../../../lib/kibana';
|
||||
import { FlowTarget, IpOverviewData, Overview } from '../../../../graphql/types';
|
||||
import { networkModel } from '../../../../store';
|
||||
|
|
|
@ -10,8 +10,8 @@ import numeral from '@elastic/numeral';
|
|||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../common/constants';
|
||||
import { ESQuery } from '../../../../../common/typed_json';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { ESQuery } from '../../../../../../../../plugins/siem/common/typed_json';
|
||||
import {
|
||||
ID as OverviewHostQueryId,
|
||||
OverviewHostQuery,
|
||||
|
|
|
@ -10,8 +10,8 @@ import numeral from '@elastic/numeral';
|
|||
import { FormattedMessage } from '@kbn/i18n/react';
|
||||
import React, { useMemo } from 'react';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../common/constants';
|
||||
import { ESQuery } from '../../../../../common/typed_json';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { ESQuery } from '../../../../../../../../plugins/siem/common/typed_json';
|
||||
import { HeaderSection } from '../../../header_section';
|
||||
import { useUiSetting$ } from '../../../../lib/kibana';
|
||||
import { manageQuery } from '../../../page/manage_query';
|
||||
|
|
|
@ -9,7 +9,7 @@ import numeral from '@elastic/numeral';
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../common/constants';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../../../lib/kibana';
|
||||
|
||||
const ProgressContainer = styled.div`
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
import { mount, shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
|
||||
import { DEFAULT_MAX_TABLE_QUERY_SIZE } from '../../../../../../plugins/siem/common/constants';
|
||||
import { Direction } from '../../graphql/types';
|
||||
|
||||
import { BasicTableProps, PaginatedTable } from './index';
|
||||
import { getHostsColumns, mockData, rowItems, sortedHosts } from './index.mock';
|
||||
import { ThemeProvider } from 'styled-components';
|
||||
import euiDarkVars from '@elastic/eui/dist/eui_theme_dark.json';
|
||||
import { DEFAULT_MAX_TABLE_QUERY_SIZE } from '../../../common/constants';
|
||||
|
||||
jest.mock('react', () => {
|
||||
const r = jest.requireActual('react');
|
||||
|
|
|
@ -22,6 +22,7 @@ import { noop } from 'lodash/fp';
|
|||
import React, { FC, memo, useState, useEffect, ComponentType } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { DEFAULT_MAX_TABLE_QUERY_SIZE } from '../../../../../../plugins/siem/common/constants';
|
||||
import { AuthTableColumns } from '../page/hosts/authentications_table';
|
||||
import { HostsTableColumns } from '../page/hosts/hosts_table';
|
||||
import { NetworkDnsColumns } from '../page/network/network_dns_table/columns';
|
||||
|
@ -40,7 +41,6 @@ import { UsersColumns } from '../page/network/users_table/columns';
|
|||
import { HeaderSection } from '../header_section';
|
||||
import { Loader } from '../loader';
|
||||
import { useStateToaster } from '../toasters';
|
||||
import { DEFAULT_MAX_TABLE_QUERY_SIZE } from '../../../common/constants';
|
||||
|
||||
import * as i18n from './translations';
|
||||
import { Panel } from '../panel';
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
|
||||
import { DEFAULT_FROM, DEFAULT_TO } from '../../../../../../plugins/siem/common/constants';
|
||||
import { TestProviders, mockIndexPattern } from '../../mock';
|
||||
import { createKibanaCoreStartMock } from '../../mock/kibana_core';
|
||||
import { DEFAULT_FROM, DEFAULT_TO } from '../../../common/constants';
|
||||
import { FilterManager, SearchBar } from '../../../../../../../src/plugins/data/public';
|
||||
import { QueryBar, QueryBarComponentProps } from '.';
|
||||
import { createKibanaContextProviderMock } from '../../mock/kibana_react';
|
||||
|
|
|
@ -8,6 +8,7 @@ import { mount } from 'enzyme';
|
|||
import React from 'react';
|
||||
import { Provider as ReduxStoreProvider } from 'react-redux';
|
||||
|
||||
import { DEFAULT_TIMEPICKER_QUICK_RANGES } from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
import { apolloClientObservable, mockGlobalState } from '../../mock';
|
||||
import { createUseUiSetting$Mock } from '../../mock/kibana_react';
|
||||
|
@ -15,7 +16,6 @@ import { createStore, State } from '../../store';
|
|||
|
||||
import { SuperDatePicker, makeMapStateToProps } from '.';
|
||||
import { cloneDeep } from 'lodash/fp';
|
||||
import { DEFAULT_TIMEPICKER_QUICK_RANGES } from '../../../common/constants';
|
||||
|
||||
jest.mock('../../lib/kibana');
|
||||
const mockUseUiSetting$ = useUiSetting$ as jest.Mock;
|
||||
|
|
|
@ -17,7 +17,7 @@ import React, { useState, useCallback } from 'react';
|
|||
import { connect, ConnectedProps } from 'react-redux';
|
||||
import { Dispatch } from 'redux';
|
||||
|
||||
import { DEFAULT_TIMEPICKER_QUICK_RANGES } from '../../../common/constants';
|
||||
import { DEFAULT_TIMEPICKER_QUICK_RANGES } from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
import { inputsModel, State } from '../../store';
|
||||
import { inputsActions, timelineActions } from '../../store/actions';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { mount } from 'enzyme';
|
||||
import React from 'react';
|
||||
|
||||
import { DEFAULT_FROM, DEFAULT_TO } from '../../../../common/constants';
|
||||
import { DEFAULT_FROM, DEFAULT_TO } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { mockBrowserFields } from '../../../containers/source/mock';
|
||||
import { convertKueryToElasticSearchQuery } from '../../../lib/keury';
|
||||
import { mockIndexPattern, TestProviders } from '../../../mock';
|
||||
|
|
|
@ -5,11 +5,12 @@
|
|||
*/
|
||||
|
||||
import React, { useEffect } from 'react';
|
||||
|
||||
import { DEFAULT_ANOMALY_SCORE } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { AnomaliesQueryTabBodyProps } from './types';
|
||||
import { getAnomaliesFilterQuery } from './utils';
|
||||
import { useSiemJobs } from '../../../components/ml_popover/hooks/use_siem_jobs';
|
||||
import { useUiSetting$ } from '../../../lib/kibana';
|
||||
import { DEFAULT_ANOMALY_SCORE } from '../../../../common/constants';
|
||||
import { MatrixHistogramContainer } from '../../../components/matrix_histogram';
|
||||
import { histogramConfigs } from './histogram_configs';
|
||||
const ID = 'anomaliesOverTimeQuery';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { ESTermQuery } from '../../../../common/typed_json';
|
||||
import { ESTermQuery } from '../../../../../../../plugins/siem/common/typed_json';
|
||||
import { NarrowDateRange } from '../../../components/ml/types';
|
||||
import { UpdateDateRange } from '../../../components/charts/common';
|
||||
import { SetQuery } from '../../../pages/hosts/navigation/types';
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
*/
|
||||
|
||||
import deepmerge from 'deepmerge';
|
||||
|
||||
import { ESTermQuery } from '../../../../../../../plugins/siem/common/typed_json';
|
||||
import { createFilter } from '../../helpers';
|
||||
import { ESTermQuery } from '../../../../common/typed_json';
|
||||
import { SiemJob } from '../../../components/ml_popover/types';
|
||||
import { FlowTarget } from '../../../graphql/types';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
AuthenticationsEdges,
|
||||
GetAuthenticationsQuery,
|
||||
|
|
|
@ -4,6 +4,13 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import {
|
||||
DETECTION_ENGINE_RULES_URL,
|
||||
DETECTION_ENGINE_PREPACKAGED_URL,
|
||||
DETECTION_ENGINE_RULES_STATUS_URL,
|
||||
DETECTION_ENGINE_PREPACKAGED_RULES_STATUS_URL,
|
||||
DETECTION_ENGINE_TAGS_URL,
|
||||
} from '../../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
AddRulesProps,
|
||||
DeleteRulesProps,
|
||||
|
@ -23,13 +30,6 @@ import {
|
|||
BulkRuleResponse,
|
||||
} from './types';
|
||||
import { KibanaServices } from '../../../lib/kibana';
|
||||
import {
|
||||
DETECTION_ENGINE_RULES_URL,
|
||||
DETECTION_ENGINE_PREPACKAGED_URL,
|
||||
DETECTION_ENGINE_RULES_STATUS_URL,
|
||||
DETECTION_ENGINE_PREPACKAGED_RULES_STATUS_URL,
|
||||
DETECTION_ENGINE_TAGS_URL,
|
||||
} from '../../../../common/constants';
|
||||
import * as i18n from '../../../pages/detection_engine/rules/translations';
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import { renderHook, act } from '@testing-library/react-hooks';
|
||||
|
||||
import { defaultIndexPattern } from '../../../../default_index_pattern';
|
||||
import { DEFAULT_INDEX_PATTERN } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { useApolloClient } from '../../../utils/apollo_context';
|
||||
import { mocksSource } from '../../source/mock';
|
||||
|
||||
|
@ -25,7 +25,7 @@ describe('useFetchIndexPatterns', () => {
|
|||
query: () => Promise.resolve(mocksSource[0].result),
|
||||
}));
|
||||
const { result, waitForNextUpdate } = renderHook<unknown, Return>(() =>
|
||||
useFetchIndexPatterns(defaultIndexPattern)
|
||||
useFetchIndexPatterns(DEFAULT_INDEX_PATTERN)
|
||||
);
|
||||
await waitForNextUpdate();
|
||||
await waitForNextUpdate();
|
||||
|
@ -429,7 +429,7 @@ describe('useFetchIndexPatterns', () => {
|
|||
query: () => Promise.reject(new Error('Something went wrong')),
|
||||
}));
|
||||
const { result, waitForNextUpdate } = renderHook<unknown, Return>(() =>
|
||||
useFetchIndexPatterns(defaultIndexPattern)
|
||||
useFetchIndexPatterns(DEFAULT_INDEX_PATTERN)
|
||||
);
|
||||
|
||||
await waitForNextUpdate();
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
import * as t from 'io-ts';
|
||||
|
||||
import { RuleTypeSchema } from '../../../../common/detection_engine/types';
|
||||
import { RuleTypeSchema } from '../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
|
||||
/**
|
||||
* Params is an "record", since it is a type of AlertActionParams which is action templates.
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { KibanaServices } from '../../../lib/kibana';
|
||||
import {
|
||||
DETECTION_ENGINE_QUERY_SIGNALS_URL,
|
||||
DETECTION_ENGINE_SIGNALS_STATUS_URL,
|
||||
DETECTION_ENGINE_INDEX_URL,
|
||||
DETECTION_ENGINE_PRIVILEGES_URL,
|
||||
} from '../../../../common/constants';
|
||||
} from '../../../../../../../plugins/siem/common/constants';
|
||||
import { KibanaServices } from '../../../lib/kibana';
|
||||
import {
|
||||
BasicSignals,
|
||||
Privilege,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { get } from 'lodash/fp';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { GetLastEventTimeQuery, LastEventIndexKey, LastTimeDetails } from '../../../graphql/types';
|
||||
import { inputsModel } from '../../../store';
|
||||
import { QueryTemplateProps } from '../../query_template';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { defaultIndexPattern } from '../../../../default_index_pattern';
|
||||
import { DEFAULT_INDEX_PATTERN } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { GetLastEventTimeQuery, LastEventIndexKey } from '../../../graphql/types';
|
||||
|
||||
import { LastEventTimeGqlQuery } from './last_event_time.gql_query';
|
||||
|
@ -43,7 +43,7 @@ export const mockLastEventTimeQuery: MockLastEventTimeQuery[] = [
|
|||
sourceId: 'default',
|
||||
indexKey: LastEventIndexKey.hosts,
|
||||
details: {},
|
||||
defaultIndex: defaultIndexPattern,
|
||||
defaultIndex: DEFAULT_INDEX_PATTERN,
|
||||
},
|
||||
},
|
||||
result: {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { ESQuery } from '../../common/typed_json';
|
||||
import { ESQuery } from '../../../../../plugins/siem/common/typed_json';
|
||||
|
||||
import { createFilter } from './helpers';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import { FetchPolicy } from 'apollo-client';
|
||||
import { isString } from 'lodash/fp';
|
||||
|
||||
import { ESQuery } from '../../common/typed_json';
|
||||
import { ESQuery } from '../../../../../plugins/siem/common/typed_json';
|
||||
|
||||
export const createFilter = (filterQuery: ESQuery | string | undefined) =>
|
||||
isString(filterQuery) ? filterQuery : JSON.stringify(filterQuery);
|
||||
|
|
|
@ -8,8 +8,8 @@ import ApolloClient from 'apollo-client';
|
|||
import { get } from 'lodash/fp';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../../../lib/kibana';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
import { GetHostFirstLastSeenQuery } from '../../../graphql/types';
|
||||
import { inputsModel } from '../../../store';
|
||||
import { QueryTemplateProps } from '../../query_template';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { defaultIndexPattern } from '../../../../default_index_pattern';
|
||||
import { DEFAULT_INDEX_PATTERN } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { GetHostFirstLastSeenQuery } from '../../../graphql/types';
|
||||
|
||||
import { HostFirstLastSeenGqlQuery } from './first_last_seen.gql_query';
|
||||
|
@ -34,7 +34,7 @@ export const mockFirstLastSeenHostQuery: MockedProvidedQuery[] = [
|
|||
variables: {
|
||||
sourceId: 'default',
|
||||
hostName: 'kibana-siem',
|
||||
defaultIndex: defaultIndexPattern,
|
||||
defaultIndex: DEFAULT_INDEX_PATTERN,
|
||||
},
|
||||
},
|
||||
result: {
|
||||
|
|
|
@ -11,7 +11,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
Direction,
|
||||
GetHostsTableQuery,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { inputsModel, inputsSelectors, State } from '../../../store';
|
||||
import { getDefaultFetchPolicy } from '../../helpers';
|
||||
import { QueryTemplate, QueryTemplateProps } from '../../query_template';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Query } from 'react-apollo';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { GetIpOverviewQuery, IpOverviewData } from '../../graphql/types';
|
||||
import { networkModel, inputsModel, inputsSelectors, State } from '../../store';
|
||||
import { useUiSetting } from '../../lib/kibana';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Query } from 'react-apollo';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { KpiHostDetailsData, GetKpiHostDetailsQuery } from '../../graphql/types';
|
||||
import { inputsModel, inputsSelectors, State } from '../../store';
|
||||
import { useUiSetting } from '../../lib/kibana';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Query } from 'react-apollo';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { GetKpiHostsQuery, KpiHostsData } from '../../graphql/types';
|
||||
import { inputsModel, inputsSelectors, State } from '../../store';
|
||||
import { useUiSetting } from '../../lib/kibana';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Query } from 'react-apollo';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { GetKpiNetworkQuery, KpiNetworkData } from '../../graphql/types';
|
||||
import { inputsModel, inputsSelectors, State } from '../../store';
|
||||
import { useUiSetting } from '../../lib/kibana';
|
||||
|
|
|
@ -3,11 +3,12 @@
|
|||
* or more contributor license agreements. Licensed under the Elastic License;
|
||||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { isEmpty } from 'lodash/fp';
|
||||
import { useEffect, useMemo, useState, useRef } from 'react';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { MatrixHistogramQueryProps } from '../../components/matrix_histogram/types';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { errorToToaster, useStateToaster } from '../../components/toasters';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
import { createFilter } from '../helpers';
|
||||
|
|
|
@ -12,7 +12,7 @@ import { compose } from 'redux';
|
|||
|
||||
import { DocumentNode } from 'graphql';
|
||||
import { ScaleType } from '@elastic/charts';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
GetNetworkDnsQuery,
|
||||
NetworkDnsEdges,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
GetNetworkHttpQuery,
|
||||
NetworkHttpEdges,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
FlowTargetSourceDest,
|
||||
GetNetworkTopCountriesQuery,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
FlowTargetSourceDest,
|
||||
GetNetworkTopNFlowQuery,
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Query } from 'react-apollo';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { GetOverviewHostQuery, OverviewHostData } from '../../../graphql/types';
|
||||
import { useUiSetting } from '../../../lib/kibana';
|
||||
import { inputsModel, inputsSelectors } from '../../../store/inputs';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { Query } from 'react-apollo';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { GetOverviewNetworkQuery, OverviewNetworkData } from '../../../graphql/types';
|
||||
import { useUiSetting } from '../../../lib/kibana';
|
||||
import { State } from '../../../store';
|
||||
|
|
|
@ -8,7 +8,7 @@ import { ApolloQueryResult } from 'apollo-client';
|
|||
import React from 'react';
|
||||
import { FetchMoreOptions, FetchMoreQueryOptions, OperationVariables } from 'react-apollo';
|
||||
|
||||
import { ESQuery } from '../../common/typed_json';
|
||||
import { ESQuery } from '../../../../../plugins/siem/common/typed_json';
|
||||
|
||||
export interface QueryTemplateProps {
|
||||
id?: string;
|
||||
|
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
import { FetchMoreOptions, FetchMoreQueryOptions, OperationVariables } from 'react-apollo';
|
||||
import deepEqual from 'fast-deep-equal';
|
||||
|
||||
import { ESQuery } from '../../common/typed_json';
|
||||
import { ESQuery } from '../../../../../plugins/siem/common/typed_json';
|
||||
import { inputsModel } from '../store/model';
|
||||
import { generateTablePaginationOptions } from '../components/paginated_table/helpers';
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ import React, { useEffect, useMemo, useState } from 'react';
|
|||
import memoizeOne from 'memoize-one';
|
||||
import { IIndexPattern } from 'src/plugins/data/public';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../../lib/kibana';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { IndexField, SourceQuery } from '../../graphql/types';
|
||||
|
||||
import { sourceQuery } from './index.gql_query';
|
||||
|
|
|
@ -4,9 +4,10 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { DEFAULT_INDEX_PATTERN } from '../../../../../../plugins/siem/common/constants';
|
||||
|
||||
import { BrowserFields } from '.';
|
||||
import { sourceQuery } from './index.gql_query';
|
||||
import { defaultIndexPattern } from '../../../default_index_pattern';
|
||||
|
||||
export const mocksSource = [
|
||||
{
|
||||
|
@ -14,7 +15,7 @@ export const mocksSource = [
|
|||
query: sourceQuery,
|
||||
variables: {
|
||||
sourceId: 'default',
|
||||
defaultIndex: defaultIndexPattern,
|
||||
defaultIndex: DEFAULT_INDEX_PATTERN,
|
||||
},
|
||||
},
|
||||
result: {
|
||||
|
@ -333,7 +334,7 @@ export const mocksSource = [
|
|||
'event.end contains the date when the event ended or when the activity was last observed.',
|
||||
example: null,
|
||||
format: '',
|
||||
indexes: defaultIndexPattern,
|
||||
indexes: DEFAULT_INDEX_PATTERN,
|
||||
name: 'event.end',
|
||||
searchable: true,
|
||||
type: 'date',
|
||||
|
@ -661,7 +662,7 @@ export const mockBrowserFields: BrowserFields = {
|
|||
'event.end contains the date when the event ended or when the activity was last observed.',
|
||||
example: null,
|
||||
format: '',
|
||||
indexes: defaultIndexPattern,
|
||||
indexes: DEFAULT_INDEX_PATTERN,
|
||||
name: 'event.end',
|
||||
searchable: true,
|
||||
type: 'date',
|
||||
|
|
|
@ -4,9 +4,12 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import {
|
||||
TIMELINE_IMPORT_URL,
|
||||
TIMELINE_EXPORT_URL,
|
||||
} from '../../../../../../../plugins/siem/common/constants';
|
||||
import { ImportDataProps, ImportDataResponse } from '../../detection_engine/rules';
|
||||
import { KibanaServices } from '../../../lib/kibana';
|
||||
import { TIMELINE_IMPORT_URL, TIMELINE_EXPORT_URL } from '../../../../common/constants';
|
||||
import { ExportSelectedData } from '../../../components/generic_downloader';
|
||||
|
||||
export const importTimelines = async ({
|
||||
|
|
|
@ -9,7 +9,7 @@ import memoizeOne from 'memoize-one';
|
|||
import React from 'react';
|
||||
import { Query } from 'react-apollo';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { DetailItem, GetTimelineDetailsQuery } from '../../../graphql/types';
|
||||
import { useUiSetting } from '../../../lib/kibana';
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import { Query } from 'react-apollo';
|
|||
import { compose, Dispatch } from 'redux';
|
||||
import { connect, ConnectedProps } from 'react-redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { IIndexPattern } from '../../../../../../../src/plugins/data/common/index_patterns';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import {
|
||||
GetTimelineQuery,
|
||||
PageInfo,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
PageInfoPaginated,
|
||||
TlsEdges,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect, ConnectedProps } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
GetUncommonProcessesQuery,
|
||||
PageInfoPaginated,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Query } from 'react-apollo';
|
|||
import { connect, ConnectedProps } from 'react-redux';
|
||||
import { compose } from 'redux';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../plugins/siem/common/constants';
|
||||
import { GetUsersQuery, FlowTarget, PageInfoPaginated, UsersEdges } from '../../graphql/types';
|
||||
import { inputsModel, networkModel, networkSelectors, State, inputsSelectors } from '../../store';
|
||||
import { withKibana, WithKibanaProps } from '../../lib/kibana';
|
||||
|
|
|
@ -8,7 +8,10 @@ import moment from 'moment-timezone';
|
|||
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { DEFAULT_DATE_FORMAT, DEFAULT_DATE_FORMAT_TZ } from '../../../common/constants';
|
||||
import {
|
||||
DEFAULT_DATE_FORMAT,
|
||||
DEFAULT_DATE_FORMAT_TZ,
|
||||
} from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting, useKibana } from './kibana_react';
|
||||
import { errorToToaster, useStateToaster } from '../../components/toasters';
|
||||
import { AuthenticatedUser } from '../../../../../../plugins/security/common/model';
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import darkTheme from '@elastic/eui/dist/eui_theme_dark.json';
|
||||
import lightTheme from '@elastic/eui/dist/eui_theme_light.json';
|
||||
|
||||
import { DEFAULT_DARK_MODE } from '../../../common/constants';
|
||||
import { DEFAULT_DARK_MODE } from '../../../../../../plugins/siem/common/constants';
|
||||
import { useUiSetting$ } from '../kibana';
|
||||
|
||||
export const useEuiTheme = () => {
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
DEFAULT_TO,
|
||||
DEFAULT_INTERVAL_TYPE,
|
||||
DEFAULT_INTERVAL_VALUE,
|
||||
} from '../../common/constants';
|
||||
} from '../../../../../plugins/siem/common/constants';
|
||||
|
||||
export const mockGlobalState: State = {
|
||||
app: {
|
||||
|
|
|
@ -23,8 +23,8 @@ import {
|
|||
DEFAULT_INTERVAL_PAUSE,
|
||||
DEFAULT_INTERVAL_VALUE,
|
||||
DEFAULT_BYTES_FORMAT,
|
||||
} from '../../common/constants';
|
||||
import { defaultIndexPattern } from '../../default_index_pattern';
|
||||
DEFAULT_INDEX_PATTERN,
|
||||
} from '../../../../../plugins/siem/common/constants';
|
||||
import { createKibanaCoreStartMock, createKibanaPluginsStartMock } from './kibana_core';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
|
@ -39,7 +39,7 @@ export const mockUiSettings: Record<string, any> = {
|
|||
pause: DEFAULT_INTERVAL_PAUSE,
|
||||
value: DEFAULT_INTERVAL_VALUE,
|
||||
},
|
||||
[DEFAULT_INDEX_KEY]: defaultIndexPattern,
|
||||
[DEFAULT_INDEX_KEY]: DEFAULT_INDEX_PATTERN,
|
||||
[DEFAULT_BYTES_FORMAT]: '0,0.[0]b',
|
||||
[DEFAULT_DATE_FORMAT_TZ]: 'UTC',
|
||||
[DEFAULT_DATE_FORMAT]: 'MMM D, YYYY @ HH:mm:ss.SSS',
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
import { isEmpty } from 'lodash/fp';
|
||||
import React, { useCallback } from 'react';
|
||||
import numeral from '@elastic/numeral';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../../../plugins/siem/common/constants';
|
||||
import {
|
||||
UtilityBar,
|
||||
UtilityBarAction,
|
||||
|
@ -16,7 +18,6 @@ import {
|
|||
} from '../../../../../components/utility_bar';
|
||||
import * as i18n from './translations';
|
||||
import { useUiSetting$ } from '../../../../../lib/kibana';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../common/constants';
|
||||
import { TimelineNonEcsData } from '../../../../../graphql/types';
|
||||
import { UpdateSignalsStatus } from '../types';
|
||||
import { FILTER_CLOSED, FILTER_OPEN } from '../signals_filter_group';
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { showAllOthersBucket } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { HistogramData, SignalsAggregation, SignalsBucket, SignalsGroupBucket } from './types';
|
||||
import { showAllOthersBucket } from '../../../../../common/constants';
|
||||
import { SignalSearchResponse } from '../../../../containers/detection_engine/signals/types';
|
||||
import * as i18n from './translations';
|
||||
|
||||
|
|
|
@ -11,11 +11,11 @@ import styled from 'styled-components';
|
|||
import { isEmpty } from 'lodash/fp';
|
||||
import uuid from 'uuid';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { LegendItem } from '../../../../components/charts/draggable_legend_item';
|
||||
import { escapeDataProviderId } from '../../../../components/drag_and_drop/helpers';
|
||||
import { HeaderSection } from '../../../../components/header_section';
|
||||
import { Filter, esQuery, Query } from '../../../../../../../../../src/plugins/data/public';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../common/constants';
|
||||
import { useQuerySignals } from '../../../../containers/detection_engine/signals/use_query';
|
||||
import { getDetectionEngineUrl } from '../../../../components/link_to';
|
||||
import { defaultLegendColors } from '../../../../components/matrix_histogram/utils';
|
||||
|
|
|
@ -19,6 +19,7 @@ import { FormattedRelative } from '@kbn/i18n/react';
|
|||
import * as H from 'history';
|
||||
import React, { Dispatch } from 'react';
|
||||
|
||||
import { isMlRule } from '../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { Rule, RuleStatus } from '../../../../containers/detection_engine/rules';
|
||||
import { getEmptyTagValue } from '../../../../components/empty_value';
|
||||
import { FormattedDate } from '../../../../components/formatted_date';
|
||||
|
@ -38,7 +39,6 @@ import {
|
|||
import { Action } from './reducer';
|
||||
import { LocalizedDateTooltip } from '../../../../components/localized_date_tooltip';
|
||||
import * as detectionI18n from '../../translations';
|
||||
import { isMlRule } from '../../../../../common/detection_engine/ml_helpers';
|
||||
|
||||
export const getActions = (
|
||||
dispatch: React.Dispatch<Action>,
|
||||
|
|
|
@ -19,9 +19,9 @@ import { isEmpty } from 'lodash/fp';
|
|||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { RuleType } from '../../../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
import { esFilters } from '../../../../../../../../../../src/plugins/data/public';
|
||||
|
||||
import { RuleType } from '../../../../../../common/detection_engine/types';
|
||||
import { tacticsOptions, techniquesOptions } from '../../../mitre/mitre_tactics_techniques';
|
||||
|
||||
import * as i18n from './translations';
|
||||
|
|
|
@ -9,13 +9,13 @@ import { isEmpty, chunk, get, pick, isNumber } from 'lodash/fp';
|
|||
import React, { memo, useState } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import { RuleType } from '../../../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
import {
|
||||
IIndexPattern,
|
||||
Filter,
|
||||
esFilters,
|
||||
FilterManager,
|
||||
} from '../../../../../../../../../../src/plugins/data/public';
|
||||
import { RuleType } from '../../../../../../common/detection_engine/types';
|
||||
import { DEFAULT_TIMELINE_TITLE } from '../../../../../components/timeline/translations';
|
||||
import { useKibana } from '../../../../../lib/kibana';
|
||||
import { IMitreEnterpriseAttack } from '../../types';
|
||||
|
|
|
@ -8,11 +8,11 @@ import React from 'react';
|
|||
import styled from 'styled-components';
|
||||
import { EuiBadge, EuiIcon, EuiLink, EuiToolTip } from '@elastic/eui';
|
||||
|
||||
import { isJobStarted } from '../../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { useKibana } from '../../../../../lib/kibana';
|
||||
import { SiemJob } from '../../../../../components/ml_popover/types';
|
||||
import { ListItems } from './types';
|
||||
import { ML_JOB_STARTED, ML_JOB_STOPPED } from './translations';
|
||||
import { isJobStarted } from '../../../../../../common/detection_engine/ml_helpers';
|
||||
|
||||
enum MessageLevels {
|
||||
info = 'info',
|
||||
|
|
|
@ -17,6 +17,7 @@ import {
|
|||
} from '@elastic/eui';
|
||||
|
||||
import styled from 'styled-components';
|
||||
import { isJobStarted } from '../../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { FieldHook, getFieldValidityAndErrorMessage } from '../../../../../shared_imports';
|
||||
import { useSiemJobs } from '../../../../../components/ml_popover/hooks/use_siem_jobs';
|
||||
import { useKibana } from '../../../../../lib/kibana';
|
||||
|
@ -24,7 +25,6 @@ import {
|
|||
ML_JOB_SELECT_PLACEHOLDER_TEXT,
|
||||
ENABLE_ML_JOB_WARNING,
|
||||
} from '../step_define_rule/translations';
|
||||
import { isJobStarted } from '../../../../../../common/detection_engine/ml_helpers';
|
||||
|
||||
const HelpTextWarningContainer = styled.div`
|
||||
margin-top: 10px;
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import React, { useCallback, useEffect, useState } from 'react';
|
||||
import deepMerge from 'deepmerge';
|
||||
|
||||
import { NOTIFICATION_SUPPORTED_ACTION_TYPES_IDS } from '../../../../../../../../../plugins/siem/common/constants';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { loadActionTypes } from '../../../../../../../../../plugins/triggers_actions_ui/public/application/lib/action_connector_api';
|
||||
import { SelectField } from '../../../../../shared_imports';
|
||||
|
@ -16,7 +17,6 @@ import {
|
|||
} from '../../../../../../../../../plugins/triggers_actions_ui/public';
|
||||
import { AlertAction } from '../../../../../../../../../plugins/alerting/common';
|
||||
import { useKibana } from '../../../../../lib/kibana';
|
||||
import { NOTIFICATION_SUPPORTED_ACTION_TYPES_IDS } from '../../../../../../common/constants';
|
||||
|
||||
type ThrottleSelectField = typeof SelectField;
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ import {
|
|||
EuiText,
|
||||
} from '@elastic/eui';
|
||||
|
||||
import { isMlRule } from '../../../../../../common/detection_engine/ml_helpers';
|
||||
import { RuleType } from '../../../../../../common/detection_engine/types';
|
||||
import { isMlRule } from '../../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { RuleType } from '../../../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
import { FieldHook } from '../../../../../shared_imports';
|
||||
import { useKibana } from '../../../../../lib/kibana';
|
||||
import * as i18n from './translations';
|
||||
|
|
|
@ -9,10 +9,10 @@ import React, { FC, memo, useCallback, useState, useEffect } from 'react';
|
|||
import styled from 'styled-components';
|
||||
import deepEqual from 'fast-deep-equal';
|
||||
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../../../../plugins/siem/common/constants';
|
||||
import { isMlRule } from '../../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { IIndexPattern } from '../../../../../../../../../../src/plugins/data/public';
|
||||
import { useFetchIndexPatterns } from '../../../../../containers/detection_engine/rules';
|
||||
import { DEFAULT_INDEX_KEY } from '../../../../../../common/constants';
|
||||
import { isMlRule } from '../../../../../../common/detection_engine/ml_helpers';
|
||||
import { DEFAULT_TIMELINE_TITLE } from '../../../../../components/timeline/translations';
|
||||
import { useMlCapabilities } from '../../../../../components/ml_popover/hooks/use_ml_capabilities';
|
||||
import { useUiSetting$ } from '../../../../../lib/kibana';
|
||||
|
|
|
@ -9,8 +9,8 @@ import { EuiText } from '@elastic/eui';
|
|||
import { isEmpty } from 'lodash/fp';
|
||||
import React from 'react';
|
||||
|
||||
import { isMlRule } from '../../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { esKuery } from '../../../../../../../../../../src/plugins/data/public';
|
||||
import { isMlRule } from '../../../../../../common/detection_engine/ml_helpers';
|
||||
import { FieldValueQueryBar } from '../query_bar';
|
||||
import {
|
||||
ERROR_CODE,
|
||||
|
|
|
@ -9,7 +9,7 @@ import React, { useCallback } from 'react';
|
|||
import {
|
||||
NOTIFICATION_THROTTLE_RULE,
|
||||
NOTIFICATION_THROTTLE_NO_ACTIONS,
|
||||
} from '../../../../../../common/constants';
|
||||
} from '../../../../../../../../../plugins/siem/common/constants';
|
||||
import { SelectField } from '../../../../../shared_imports';
|
||||
|
||||
export const THROTTLE_OPTIONS = [
|
||||
|
|
|
@ -8,10 +8,10 @@ import { has, isEmpty } from 'lodash/fp';
|
|||
import moment from 'moment';
|
||||
import deepmerge from 'deepmerge';
|
||||
|
||||
import { NOTIFICATION_THROTTLE_NO_ACTIONS } from '../../../../../common/constants';
|
||||
import { transformAlertToRuleAction } from '../../../../../common/detection_engine/transform_actions';
|
||||
import { RuleType } from '../../../../../common/detection_engine/types';
|
||||
import { isMlRule } from '../../../../../common/detection_engine/ml_helpers';
|
||||
import { NOTIFICATION_THROTTLE_NO_ACTIONS } from '../../../../../../../../plugins/siem/common/constants';
|
||||
import { transformAlertToRuleAction } from '../../../../../../../../plugins/siem/common/detection_engine/transform_actions';
|
||||
import { RuleType } from '../../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
import { isMlRule } from '../../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { NewRule } from '../../../../containers/detection_engine/rules';
|
||||
|
||||
import {
|
||||
|
|
|
@ -10,9 +10,12 @@ import moment from 'moment';
|
|||
import memoizeOne from 'memoize-one';
|
||||
import { useLocation } from 'react-router-dom';
|
||||
|
||||
import { RuleAlertAction, RuleType } from '../../../../common/detection_engine/types';
|
||||
import { isMlRule } from '../../../../common/detection_engine/ml_helpers';
|
||||
import { transformRuleToAlertAction } from '../../../../common/detection_engine/transform_actions';
|
||||
import {
|
||||
RuleAlertAction,
|
||||
RuleType,
|
||||
} from '../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
import { isMlRule } from '../../../../../../../plugins/siem/common/detection_engine/ml_helpers';
|
||||
import { transformRuleToAlertAction } from '../../../../../../../plugins/siem/common/detection_engine/transform_actions';
|
||||
import { Filter } from '../../../../../../../../src/plugins/data/public';
|
||||
import { Rule } from '../../../containers/detection_engine/rules';
|
||||
import { FormData, FormHook, FormSchema } from '../../../shared_imports';
|
||||
|
|
|
@ -4,8 +4,11 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import {
|
||||
RuleAlertAction,
|
||||
RuleType,
|
||||
} from '../../../../../../../plugins/siem/common/detection_engine/types';
|
||||
import { AlertAction } from '../../../../../../../plugins/alerting/common';
|
||||
import { RuleAlertAction, RuleType } from '../../../../common/detection_engine/types';
|
||||
import { Filter } from '../../../../../../../../src/plugins/data/common';
|
||||
import { FieldValueQueryBar } from './components/query_bar';
|
||||
import { FormData, FormHook } from '../../../shared_imports';
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { ESTermQuery } from '../../../../../../../plugins/siem/common/typed_json';
|
||||
import { Filter, IIndexPattern } from '../../../../../../../../src/plugins/data/public';
|
||||
import { NarrowDateRange } from '../../../components/ml/types';
|
||||
import { ESTermQuery } from '../../../../common/typed_json';
|
||||
import { InspectQuery, Refetch } from '../../../store/inputs/model';
|
||||
|
||||
import { HostsTableType, HostsType } from '../../../store/hosts/model';
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
import { IIndexPattern } from 'src/plugins/data/public';
|
||||
|
||||
import { ESTermQuery } from '../../../../../../../plugins/siem/common/typed_json';
|
||||
import { NetworkType } from '../../../store/network/model';
|
||||
import { ESTermQuery } from '../../../../common/typed_json';
|
||||
import { InspectQuery, Refetch } from '../../../store/inputs/model';
|
||||
import { FlowTarget, FlowTargetSourceDest } from '../../../graphql/types';
|
||||
import { GlobalTimeArgs } from '../../../containers/global_time';
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
* you may not use this file except in compliance with the Elastic License.
|
||||
*/
|
||||
|
||||
import { ESTermQuery } from '../../../../../../../plugins/siem/common/typed_json';
|
||||
import { IIndexPattern } from '../../../../../../../../src/plugins/data/common/';
|
||||
|
||||
import { NavTab } from '../../../components/navigation/types';
|
||||
import { FlowTargetSourceDest } from '../../../graphql/types';
|
||||
import { networkModel } from '../../../store';
|
||||
import { ESTermQuery } from '../../../../common/typed_json';
|
||||
import { GlobalTimeArgs } from '../../../containers/global_time';
|
||||
|
||||
import { SetAbsoluteRangeDatePicker } from '../types';
|
||||
|
|
|
@ -7,9 +7,9 @@
|
|||
import { EuiButton } from '@elastic/eui';
|
||||
import numeral from '@elastic/numeral';
|
||||
import React, { useEffect, useMemo } from 'react';
|
||||
|
||||
import { Position } from '@elastic/charts';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../common/constants';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { SHOWING, UNIT } from '../../../components/alerts_viewer/translations';
|
||||
import { getDetectionEngineAlertUrl } from '../../../components/link_to/redirect_to_detection_engine';
|
||||
import { MatrixHistogramContainer } from '../../../components/matrix_histogram';
|
||||
|
|
|
@ -10,7 +10,7 @@ import numeral from '@elastic/numeral';
|
|||
import React, { useEffect, useMemo } from 'react';
|
||||
import uuid from 'uuid';
|
||||
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../common/constants';
|
||||
import { DEFAULT_NUMBER_FORMAT } from '../../../../../../../plugins/siem/common/constants';
|
||||
import { SHOWING, UNIT } from '../../../components/events_viewer/translations';
|
||||
import { getTabsOnHostsUrl } from '../../../components/link_to/redirect_to_hosts';
|
||||
import { MatrixHistogramContainer } from '../../../components/matrix_histogram';
|
||||
|
|
|
@ -8,9 +8,12 @@ import { EuiFlexGroup, EuiFlexItem, EuiSpacer } from '@elastic/eui';
|
|||
import React, { useMemo } from 'react';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import {
|
||||
ENABLE_NEWS_FEED_SETTING,
|
||||
NEWS_FEED_URL_SETTING,
|
||||
} from '../../../../../../../plugins/siem/common/constants';
|
||||
import { Filters as RecentCasesFilters } from '../../../components/recent_cases/filters';
|
||||
import { Filters as RecentTimelinesFilters } from '../../../components/recent_timelines/filters';
|
||||
import { ENABLE_NEWS_FEED_SETTING, NEWS_FEED_URL_SETTING } from '../../../../common/constants';
|
||||
import { StatefulRecentCases } from '../../../components/recent_cases';
|
||||
import { StatefulRecentTimelines } from '../../../components/recent_timelines';
|
||||
import { StatefulNewsFeed } from '../../../components/news_feed';
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue