-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[Security Solution][Detections] Extend alerts schema to accommodate the list of assigned users (#7647) #166845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
e40pud
merged 5 commits into
elastic:security/feature/alert-user-assignment
from
e40pud:security/feature/alert-user-assignment-7647
Sep 22, 2023
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b79f3f8
[Security Solution][Detections] Extend alerts schema to accommodate t…
e40pud 7c462b3
Feedback: rename field from `workflow_assignees` to `workflow_assigne…
e40pud 8bd99a0
Feedback: rename field from `workflow_assignees` to `workflow_assigne…
e40pud e36611d
Review feedback: make ALERT_WORKFLOW_ASSIGNEE_IDS optional
e40pud 3d49abc
Merge branch 'security/feature/alert-user-assignment' into security/f…
e40pud File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
x-pack/plugins/security_solution/common/api/detection_engine/model/alerts/8.11.0/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| import type { ALERT_WORKFLOW_ASSIGNEE_IDS } from '@kbn/rule-data-utils'; | ||
| import type { AlertWithCommonFields800 } from '@kbn/rule-registry-plugin/common/schemas/8.0.0'; | ||
| import type { | ||
| Ancestor890, | ||
| BaseFields890, | ||
| EqlBuildingBlockFields890, | ||
| EqlShellFields890, | ||
| NewTermsFields890, | ||
| } from '../8.9.0'; | ||
|
|
||
| /* DO NOT MODIFY THIS SCHEMA TO ADD NEW FIELDS. These types represent the alerts that shipped in 8.11.0. | ||
| Any changes to these types should be bug fixes so the types more accurately represent the alerts from 8.11.0. | ||
| If you are adding new fields for a new release of Kibana, create a new sibling folder to this one | ||
| for the version to be released and add the field(s) to the schema in that folder. | ||
| Then, update `../index.ts` to import from the new folder that has the latest schemas, add the | ||
| new schemas to the union of all alert schemas, and re-export the new schemas as the `*Latest` schemas. | ||
| */ | ||
|
|
||
| export type { Ancestor890 as Ancestor8110 }; | ||
|
|
||
| export interface BaseFields8110 extends BaseFields890 { | ||
| [ALERT_WORKFLOW_ASSIGNEE_IDS]: string[] | undefined; | ||
| } | ||
|
|
||
| export interface WrappedFields8110<T extends BaseFields8110> { | ||
| _id: string; | ||
| _index: string; | ||
| _source: T; | ||
| } | ||
|
|
||
| export type GenericAlert8110 = AlertWithCommonFields800<BaseFields8110>; | ||
|
|
||
| export type EqlShellFields8110 = EqlShellFields890 & BaseFields8110; | ||
|
|
||
| export type EqlBuildingBlockFields8110 = EqlBuildingBlockFields890 & BaseFields8110; | ||
|
|
||
| export type NewTermsFields8110 = NewTermsFields890 & BaseFields8110; | ||
|
|
||
| export type NewTermsAlert8110 = NewTermsFields890 & BaseFields8110; | ||
|
|
||
| export type EqlBuildingBlockAlert8110 = AlertWithCommonFields800<EqlBuildingBlockFields890>; | ||
|
|
||
| export type EqlShellAlert8110 = AlertWithCommonFields800<EqlShellFields8110>; | ||
|
|
||
| export type DetectionAlert8110 = | ||
| | GenericAlert8110 | ||
| | EqlShellAlert8110 | ||
| | EqlBuildingBlockAlert8110 | ||
| | NewTermsAlert8110; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.