forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ResponseOps][Rules] Move the params of tracking containment rule typ…
…e to @kbn/response-ops-rule-params package (elastic#210955) Connected with elastic#195188 ## Summary - Moved the params of tracking containment rule type to `@kbn/response-ops-rule-params/geo_containment` package --------- Co-authored-by: kibanamachine <[email protected]>
- Loading branch information
1 parent
0d4be1d
commit d1d1b6b
Showing
5 changed files
with
56 additions
and
19 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
src/platform/packages/shared/response-ops/rule_params/geo_containment/index.ts
This file contains 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,14 @@ | ||
/* | ||
* 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", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
export { trackingContainmentRuleParamsSchema } from './latest'; | ||
export { trackingContainmentRuleParamsSchema as trackingContainmentRuleParamsSchemaV1 } from './latest'; | ||
|
||
export type { TrackingContainmentRuleParams } from './latest'; | ||
export type { TrackingContainmentRuleParams as TrackingContainmentRuleParamsV1 } from './latest'; |
10 changes: 10 additions & 0 deletions
10
src/platform/packages/shared/response-ops/rule_params/geo_containment/latest.ts
This file contains 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,10 @@ | ||
/* | ||
* 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", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
export * from './v1'; |
27 changes: 27 additions & 0 deletions
27
src/platform/packages/shared/response-ops/rule_params/geo_containment/v1.ts
This file contains 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,27 @@ | ||
/* | ||
* 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", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
import { schema, TypeOf } from '@kbn/config-schema'; | ||
|
||
export const trackingContainmentRuleParamsSchema = schema.object({ | ||
index: schema.string({ minLength: 1 }), | ||
indexId: schema.string({ minLength: 1 }), | ||
geoField: schema.string({ minLength: 1 }), | ||
entity: schema.string({ minLength: 1 }), | ||
dateField: schema.string({ minLength: 1 }), | ||
boundaryType: schema.string({ minLength: 1 }), | ||
boundaryIndexTitle: schema.string({ minLength: 1 }), | ||
boundaryIndexId: schema.string({ minLength: 1 }), | ||
boundaryGeoField: schema.string({ minLength: 1 }), | ||
boundaryNameField: schema.maybe(schema.string({ minLength: 1 })), | ||
indexQuery: schema.maybe(schema.any({})), | ||
boundaryIndexQuery: schema.maybe(schema.any({})), | ||
}); | ||
|
||
export type TrackingContainmentRuleParams = TypeOf<typeof trackingContainmentRuleParamsSchema>; |
This file contains 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 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