Skip to content

Commit

Permalink
[Security Solution] Resolver in Timeline (#69728)
Browse files Browse the repository at this point in the history
Display Resolver in Security Solution's Timeline.
  • Loading branch information
Robert Austin committed Jun 29, 2020
1 parent d3a0ab3 commit 8ffdd45
Show file tree
Hide file tree
Showing 40 changed files with 2,002 additions and 1,328 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,19 @@ export const validateChildren = {
legacyEndpointID: schema.maybe(schema.string()),
}),
};

/**
* Used to validate GET requests for 'entities'
*/
export const validateEntities = {
query: schema.object({
/**
* Return the process entities related to the document w/ the matching `_id`.
*/
_id: schema.string(),
/**
* Indices to search in.
*/
indices: schema.arrayOf(schema.string()),
}),
};
5 changes: 5 additions & 0 deletions x-pack/plugins/security_solution/common/endpoint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ export interface EndpointEvent {

export type ResolverEvent = EndpointEvent | LegacyEndpointEvent;

/**
* The response body for the resolver '/entity' index API
*/
export type ResolverEntityIndex = Array<{ entity_id: string }>;

/**
* Takes a @kbn/config-schema 'schema' type and returns a type that represents valid inputs.
* Similar to `TypeOf`, but allows strings as input for `schema.number()` (which is inline
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import { useAlertListSelector } from '../../hooks/use_alerts_selector';
import * as selectors from '../../../store/selectors';
import { MetadataPanel } from './metadata_panel';
import { FormattedDate } from '../../formatted_date';
import { AlertDetailResolver } from '../../resolver';
import { ResolverEvent } from '../../../../../common/endpoint/types';
import { TakeActionDropdown } from './take_action_dropdown';
import { urlFromQueryParams } from '../../url_from_query_params';

Expand Down Expand Up @@ -65,12 +63,11 @@ const AlertDetailsOverviewComponent = memo(() => {
content: (
<>
<EuiSpacer />
<AlertDetailResolver selectedEvent={(alertDetailsData as unknown) as ResolverEvent} />
</>
),
},
];
}, [alertDetailsData]);
}, []);

/* eslint-disable-next-line react-hooks/rules-of-hooks */
const activeTab = useMemo(
Expand Down

This file was deleted.

Loading

0 comments on commit 8ffdd45

Please sign in to comment.