mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Security Solution] Add version header to alert table actions (#169731)
## Summary Some add to timeline actions are missing version header when sending requests. This is preventing user from adding alerts (of the rule types below) to timeline - clicking `investigate in timeline` will throw a `failed to create ... timeline` error. This PR adds version header to api calls related to: 1. alert suppression 2. threshold rule 3. new term rule ### For maintainers - [ ] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
This commit is contained in:
parent
abcab94762
commit
8500600393
1 changed files with 3 additions and 0 deletions
|
@ -451,6 +451,7 @@ const createThresholdTimeline = async (
|
|||
const alertResponse = await KibanaServices.get().http.fetch<
|
||||
estypes.SearchResponse<{ '@timestamp': string; [key: string]: unknown }>
|
||||
>(DETECTION_ENGINE_QUERY_SIGNALS_URL, {
|
||||
version: '2023-10-31',
|
||||
method: 'POST',
|
||||
body: JSON.stringify(buildAlertsQuery([ecsData._id])),
|
||||
});
|
||||
|
@ -608,6 +609,7 @@ const createNewTermsTimeline = async (
|
|||
const alertResponse = await KibanaServices.get().http.fetch<
|
||||
estypes.SearchResponse<{ '@timestamp': string; [key: string]: unknown }>
|
||||
>(DETECTION_ENGINE_QUERY_SIGNALS_URL, {
|
||||
version: '2023-10-31',
|
||||
method: 'POST',
|
||||
body: JSON.stringify(buildAlertsQuery([ecsData._id])),
|
||||
});
|
||||
|
@ -773,6 +775,7 @@ const createSuppressedTimeline = async (
|
|||
const alertResponse = await KibanaServices.get().http.fetch<
|
||||
estypes.SearchResponse<{ '@timestamp': string; [key: string]: unknown }>
|
||||
>(DETECTION_ENGINE_QUERY_SIGNALS_URL, {
|
||||
version: '2023-10-31',
|
||||
method: 'POST',
|
||||
body: JSON.stringify(buildAlertsQuery([ecsData._id])),
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue