-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Saved Object Mapping for Entity Source Sync Configuration #219680
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
Changes from 60 commits
5596af3
990132a
2bc807b
e4c5383
25e346f
6a17bac
1253a07
4771fde
6bd8d77
44c176f
bf92e49
ea6ed20
9f61b4a
681d3f5
23567cd
a2a72ab
82b13e8
99a9843
9d21e44
dc02b6e
b954470
72d9ec4
aa4e5a7
fa605a2
d47399d
d722cd8
51d3a70
1c21320
3f4cf81
e55d087
0a3ce14
bb34621
dd1fc6b
08e91ae
82640da
f5ff787
299e469
514bd3e
c9ad81f
08c50e8
1d0365b
2734e42
56421dc
f4e2146
bd56ba7
cfe73c0
f0f126d
ed55f03
606e74d
f9701e7
aa89ae8
fd52407
59a5312
f00f4d0
1efef05
0f23d39
1dc32ca
5313ebb
6332210
ba4646d
25e005c
d5e1b93
21b3e4a
a364ec8
23fec8f
6cdf28c
616ff78
cd27928
7d11fa7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1042,6 +1042,51 @@ | |
| "dynamic": false, | ||
| "properties": {} | ||
| }, | ||
| "entity-analytics-monitoring-entity-source": { | ||
| "dynamic": false, | ||
| "properties": { | ||
| "enabled": { | ||
| "type": "boolean" | ||
| }, | ||
| "error": { | ||
| "type": "keyword" | ||
| }, | ||
| "filter": { | ||
| "dynamic": false, | ||
| "type": "object" | ||
| }, | ||
| "indexPattern": { | ||
| "index": false, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! I was trying to change these to using dynamic: false but I am unsure of this use case -- My aim here is to make both matchers.find and matchers.values required and non searchable. To achieve this, can I change this to something like this where I rely on the top level - the child attributes should pick be non searchable from here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok I think I have my answer from the docs, this should be good according to the example below:
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @hop-dev I have updated to dynamic now :D but quick reference for the mappings - properties I was a bit blocked with. Time to merge? 🥳
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. go for it! |
||
| "type": "keyword" | ||
| }, | ||
| "integrationName": { | ||
| "type": "keyword" | ||
| }, | ||
| "managed": { | ||
| "type": "boolean" | ||
| }, | ||
| "matchers": { | ||
| "dynamic": false, | ||
| "properties": { | ||
| "fields": { | ||
| "index": false, | ||
| "type": "keyword" | ||
| }, | ||
| "values": { | ||
| "index": false, | ||
| "type": "keyword" | ||
| } | ||
| }, | ||
| "type": "object" | ||
| }, | ||
| "name": { | ||
| "type": "keyword" | ||
| }, | ||
| "type": { | ||
| "type": "keyword" | ||
| } | ||
| } | ||
| }, | ||
| "entity-definition": { | ||
| "dynamic": false, | ||
| "properties": { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| /* | ||
| * 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. | ||
| */ | ||
|
|
||
| /* | ||
| * NOTICE: Do not edit this file manually. | ||
| * This file is automatically generated by the OpenAPI Generator, @kbn/openapi-generator. | ||
| * | ||
| * info: | ||
| * title: Monitoring Entity Source Schema | ||
| * version: 1 | ||
| */ | ||
|
|
||
| import { z } from '@kbn/zod'; | ||
|
|
||
| export type MonitoringEntitySourceDescriptor = z.infer<typeof MonitoringEntitySourceDescriptor>; | ||
| export const MonitoringEntitySourceDescriptor = z.object({ | ||
| type: z.string(), | ||
| name: z.string(), | ||
| managed: z.boolean().optional(), | ||
| indexPattern: z.string().optional(), | ||
| enabled: z.boolean().optional(), | ||
| error: z.string().optional(), | ||
| integrationName: z.string().optional(), | ||
| matchers: z | ||
| .array( | ||
| z.object({ | ||
| fields: z.array(z.string()), | ||
| values: z.array(z.string()), | ||
| }) | ||
| ) | ||
| .optional(), | ||
| filter: z.object({}).optional(), | ||
| }); | ||
|
|
||
| export type MonitoringEntitySourceResponse = z.infer<typeof MonitoringEntitySourceResponse>; | ||
| export const MonitoringEntitySourceResponse = z.object({ | ||
|
CAWilson94 marked this conversation as resolved.
|
||
| id: z.string().optional(), | ||
| name: z.string().optional(), | ||
| type: z.string().optional(), | ||
| indexPattern: z.string().optional(), | ||
| integrationName: z.string().optional(), | ||
| enabled: z.boolean().optional(), | ||
| matchers: z | ||
| .array( | ||
| z.object({ | ||
| fields: z.array(z.string()), | ||
| values: z.array(z.string()), | ||
| }) | ||
| ) | ||
| .optional(), | ||
| }); | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,145 @@ | ||
| openapi: 3.0.0 | ||
| info: | ||
| title: Monitoring Entity Source Schema | ||
| description: Schema for managing entity source configurations in the monitoring system. | ||
| version: "1" | ||
|
|
||
| paths: | ||
| /api/entity_analytics/monitoring/entity_source: | ||
| post: | ||
| operationId: createEntitySource | ||
| summary: Create a new entity source configuration | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceDescriptor" | ||
| responses: | ||
| "200": | ||
| description: Entity source created successfully | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceResponse" | ||
|
|
||
| /api/entity_analytics/monitoring/entity_source/{id}: | ||
|
CAWilson94 marked this conversation as resolved.
|
||
| get: | ||
| operationId: getEntitySource | ||
| summary: Get an entity source configuration by ID | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| "200": | ||
| description: Entity source details retrieved | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceResponse" | ||
|
|
||
| put: | ||
| operationId: updateEntitySource | ||
| summary: Update an entity source configuration | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| requestBody: | ||
| required: true | ||
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: "#/components/schemas/MonitoringEntitySourceDescriptor" | ||
| responses: | ||
| "200": | ||
| description: Entity source updated successfully | ||
|
|
||
| delete: | ||
| operationId: deleteEntitySource | ||
| summary: Delete an entity source configuration | ||
| parameters: | ||
| - name: id | ||
| in: path | ||
| required: true | ||
| schema: | ||
| type: string | ||
| responses: | ||
| "200": | ||
| description: Entity source deleted successfully | ||
|
|
||
| components: | ||
| schemas: | ||
| MonitoringEntitySourceDescriptor: | ||
| type: object | ||
| required: [type, name] | ||
| properties: | ||
| type: | ||
| type: string | ||
| name: | ||
| type: string | ||
| managed: | ||
| type: boolean | ||
| indexPattern: | ||
| type: string | ||
| enabled: | ||
| type: boolean | ||
| error: | ||
| type: string | ||
| integrationName: | ||
| type: string | ||
| matchers: | ||
| type: array | ||
| items: | ||
| type: object | ||
| required: | ||
| - fields | ||
| - values | ||
| properties: | ||
| fields: | ||
| type: array | ||
| items: | ||
| type: string | ||
| values: | ||
| type: array | ||
| items: | ||
| type: string | ||
| filter: | ||
| type: object | ||
|
|
||
| MonitoringEntitySourceResponse: | ||
| type: object | ||
| properties: | ||
| id: | ||
| type: string | ||
| name: | ||
| type: string | ||
| type: | ||
| type: string | ||
| indexPattern: | ||
| type: string | ||
| integrationName: | ||
| type: string | ||
| enabled: | ||
| type: boolean | ||
| matchers: | ||
| type: array | ||
| items: | ||
| type: object | ||
| required: | ||
| - fields | ||
| - values | ||
| properties: | ||
| fields: | ||
| type: array | ||
| items: | ||
| type: string | ||
| values: | ||
| type: array | ||
| items: | ||
| type: string | ||
Uh oh!
There was an error while loading. Please reload this page.