|
| 1 | +/* |
| 2 | + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one |
| 3 | + * or more contributor license agreements. Licensed under the Elastic License |
| 4 | + * 2.0; you may not use this file except in compliance with the Elastic License |
| 5 | + * 2.0. |
| 6 | + */ |
| 7 | + |
| 8 | +import type { ALERT_WORKFLOW_ASSIGNEES } from '@kbn/rule-data-utils'; |
| 9 | +import type { AlertWithCommonFields800 } from '@kbn/rule-registry-plugin/common/schemas/8.0.0'; |
| 10 | +import type { |
| 11 | + Ancestor890, |
| 12 | + BaseFields890, |
| 13 | + EqlBuildingBlockFields890, |
| 14 | + EqlShellFields890, |
| 15 | + NewTermsFields890, |
| 16 | +} from '../8.9.0'; |
| 17 | + |
| 18 | +/* DO NOT MODIFY THIS SCHEMA TO ADD NEW FIELDS. These types represent the alerts that shipped in 8.11.0. |
| 19 | +Any changes to these types should be bug fixes so the types more accurately represent the alerts from 8.11.0. |
| 20 | +If you are adding new fields for a new release of Kibana, create a new sibling folder to this one |
| 21 | +for the version to be released and add the field(s) to the schema in that folder. |
| 22 | +Then, update `../index.ts` to import from the new folder that has the latest schemas, add the |
| 23 | +new schemas to the union of all alert schemas, and re-export the new schemas as the `*Latest` schemas. |
| 24 | +*/ |
| 25 | + |
| 26 | +export type { Ancestor890 as Ancestor8110 }; |
| 27 | + |
| 28 | +export interface BaseFields8110 extends BaseFields890 { |
| 29 | + [ALERT_WORKFLOW_ASSIGNEES]: string[]; |
| 30 | +} |
| 31 | + |
| 32 | +export interface WrappedFields8110<T extends BaseFields8110> { |
| 33 | + _id: string; |
| 34 | + _index: string; |
| 35 | + _source: T; |
| 36 | +} |
| 37 | + |
| 38 | +export type GenericAlert8110 = AlertWithCommonFields800<BaseFields8110>; |
| 39 | + |
| 40 | +export type EqlShellFields8110 = EqlShellFields890 & BaseFields8110; |
| 41 | + |
| 42 | +export type EqlBuildingBlockFields8110 = EqlBuildingBlockFields890 & BaseFields8110; |
| 43 | + |
| 44 | +export type NewTermsFields8110 = NewTermsFields890 & BaseFields8110; |
| 45 | + |
| 46 | +export type NewTermsAlert8110 = NewTermsFields890 & BaseFields8110; |
| 47 | + |
| 48 | +export type EqlBuildingBlockAlert8110 = AlertWithCommonFields800<EqlBuildingBlockFields890>; |
| 49 | + |
| 50 | +export type EqlShellAlert8110 = AlertWithCommonFields800<EqlShellFields8110>; |
| 51 | + |
| 52 | +export type DetectionAlert8110 = |
| 53 | + | GenericAlert8110 |
| 54 | + | EqlShellAlert8110 |
| 55 | + | EqlBuildingBlockAlert8110 |
| 56 | + | NewTermsAlert8110; |
0 commit comments