mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[eem] add managed flag to entity definition resources (#187965)
Add managed meta property to entity definition resources. a flag will show up in the corresponding UIs  
This commit is contained in:
parent
168390a1b6
commit
c38011f075
12 changed files with 14 additions and 0 deletions
|
@ -30,6 +30,7 @@ export async function createAndInstallHistoryIngestPipeline(
|
|||
processors: historyProcessors,
|
||||
_meta: {
|
||||
definitionVersion: definition.version,
|
||||
managed: definition.managed,
|
||||
},
|
||||
}),
|
||||
{ logger }
|
||||
|
@ -56,6 +57,7 @@ export async function createAndInstallLatestIngestPipeline(
|
|||
processors: latestProcessors,
|
||||
_meta: {
|
||||
definitionVersion: definition.version,
|
||||
managed: definition.managed,
|
||||
},
|
||||
}),
|
||||
{ logger }
|
||||
|
|
|
@ -40,6 +40,7 @@ const assertHasCreatedDefinition = (
|
|||
processors: expect.anything(),
|
||||
_meta: {
|
||||
definitionVersion: '0.1.0',
|
||||
managed: true,
|
||||
},
|
||||
});
|
||||
expect(esClient.ingest.putPipeline).toBeCalledWith({
|
||||
|
@ -47,6 +48,7 @@ const assertHasCreatedDefinition = (
|
|||
processors: expect.anything(),
|
||||
_meta: {
|
||||
definitionVersion: '0.1.0',
|
||||
managed: true,
|
||||
},
|
||||
});
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ exports[`generateHistoryTransform(definition) should generate a valid latest tra
|
|||
Object {
|
||||
"_meta": Object {
|
||||
"definitionVersion": "999.999.999",
|
||||
"managed": false,
|
||||
},
|
||||
"defer_validation": true,
|
||||
"dest": Object {
|
||||
|
|
|
@ -4,6 +4,7 @@ exports[`generateLatestTransform(definition) should generate a valid latest tran
|
|||
Object {
|
||||
"_meta": Object {
|
||||
"definitionVersion": "999.999.999",
|
||||
"managed": false,
|
||||
},
|
||||
"defer_validation": true,
|
||||
"dest": Object {
|
||||
|
|
|
@ -36,6 +36,7 @@ export function generateHistoryTransform(
|
|||
transform_id: generateHistoryTransformId(definition),
|
||||
_meta: {
|
||||
definitionVersion: definition.version,
|
||||
managed: definition.managed,
|
||||
},
|
||||
defer_validation: true,
|
||||
source: {
|
||||
|
|
|
@ -27,6 +27,7 @@ export function generateLatestTransform(
|
|||
transform_id: generateLatestTransformId(definition),
|
||||
_meta: {
|
||||
definitionVersion: definition.version,
|
||||
managed: definition.managed,
|
||||
},
|
||||
defer_validation: true,
|
||||
source: {
|
||||
|
|
|
@ -15,6 +15,7 @@ export const entitiesHistoryBaseComponentTemplateConfig: ClusterPutComponentTemp
|
|||
"Component template for the ECS fields used in the Elastic Entity Model's entity discovery framework's history data set",
|
||||
documentation: 'https://www.elastic.co/guide/en/ecs/current/ecs-base.html',
|
||||
ecs_version: '8.0.0',
|
||||
managed: true,
|
||||
},
|
||||
template: {
|
||||
mappings: {
|
||||
|
|
|
@ -15,6 +15,7 @@ export const entitiesLatestBaseComponentTemplateConfig: ClusterPutComponentTempl
|
|||
"Component template for the ECS fields used in the Elastic Entity Model's entity discovery framework's latest data set",
|
||||
documentation: 'https://www.elastic.co/guide/en/ecs/current/ecs-base.html',
|
||||
ecs_version: '8.0.0',
|
||||
managed: true,
|
||||
},
|
||||
template: {
|
||||
mappings: {
|
||||
|
|
|
@ -14,6 +14,7 @@ export const entitiesEntityComponentTemplateConfig: ClusterPutComponentTemplateR
|
|||
description:
|
||||
"Component template for the entity fields used in the Elastic Entity Model's entity discovery framework",
|
||||
ecs_version: '8.0.0',
|
||||
managed: true,
|
||||
},
|
||||
template: {
|
||||
mappings: {
|
||||
|
|
|
@ -15,6 +15,7 @@ export const entitiesEventComponentTemplateConfig: ClusterPutComponentTemplateRe
|
|||
"Component template for the event fields used in the Elastic Entity Model's entity discovery framework",
|
||||
documentation: 'https://www.elastic.co/guide/en/ecs/current/ecs-event.html',
|
||||
ecs_version: '8.0.0',
|
||||
managed: true,
|
||||
},
|
||||
template: {
|
||||
mappings: {
|
||||
|
|
|
@ -20,6 +20,7 @@ export const entitiesHistoryIndexTemplateConfig: IndicesPutIndexTemplateRequest
|
|||
description:
|
||||
"Index template for indices managed by the Elastic Entity Model's entity discovery framework for the history dataset",
|
||||
ecs_version: '8.0.0',
|
||||
managed: true,
|
||||
},
|
||||
composed_of: [
|
||||
ENTITY_HISTORY_BASE_COMPONENT_TEMPLATE_V1,
|
||||
|
|
|
@ -20,6 +20,7 @@ export const entitiesLatestIndexTemplateConfig: IndicesPutIndexTemplateRequest =
|
|||
description:
|
||||
"Index template for indices managed by the Elastic Entity Model's entity discovery framework for the latest dataset",
|
||||
ecs_version: '8.0.0',
|
||||
managed: true,
|
||||
},
|
||||
composed_of: [
|
||||
ENTITY_LATEST_BASE_COMPONENT_TEMPLATE_V1,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue