[SIEM][Timeline] Minor timeline improvement (#69386)

This commit is contained in:
Christos Nasikas 2020-06-17 17:21:49 +03:00 committed by GitHub
parent f9f1158e1f
commit 208b580061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

View file

@ -1,8 +0,0 @@
/*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
export const ALERTS_RULES_DETAILS_PAGE_TIMELINE_ID = 'alerts-rules-details-page';
export const ALERTS_TIMELINE_ID = 'alerts-page';

View file

@ -11,6 +11,7 @@ import { Query } from 'react-apollo';
import { compose, Dispatch } from 'redux';
import { connect, ConnectedProps } from 'react-redux';
import { TimelineId } from '../../../common/types/timeline';
import { DEFAULT_INDEX_KEY } from '../../../common/constants';
import { IIndexPattern } from '../../../../../../src/plugins/data/common/index_patterns';
import {
@ -27,12 +28,8 @@ import { QueryTemplate, QueryTemplateProps } from '../../common/containers/query
import { EventType } from '../../timelines/store/timeline/model';
import { timelineQuery } from './index.gql_query';
import { timelineActions } from '../../timelines/store/timeline';
import {
ALERTS_TIMELINE_ID as DETECTION_ENGINE_TIMELINE_ID,
ALERTS_RULES_DETAILS_PAGE_TIMELINE_ID as DETECTION_ENGINE_RULES_TIMELINE_ID,
} from '../../alerts/constants';
const timelineIds = [DETECTION_ENGINE_TIMELINE_ID, DETECTION_ENGINE_RULES_TIMELINE_ID];
const timelineIds = [TimelineId.alertsPage, TimelineId.alertsRulesDetailsPage];
export interface TimelineArgs {
events: TimelineItem[];