mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Genai Connectors] Add missing telemetryMetadata field definition (#211733)
As part of https://github.com/elastic/kibana/pull/208180 the telemetryMetadata optional field was added to the schema for the AI connectors, however it seems that one was missing, this PR simply adds it in. Similarly to the above PR, the feature cannot be used in the same week as when it was added, to allow a grace period for serverless. The PR simply adds the schema update itself.
This commit is contained in:
parent
a015f7436a
commit
b85919e6c2
3 changed files with 116 additions and 0 deletions
|
@ -74,6 +74,63 @@ Object {
|
|||
],
|
||||
"type": "any",
|
||||
},
|
||||
"telemetryMetadata": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
"error": [Function],
|
||||
"presence": "optional",
|
||||
},
|
||||
"keys": Object {
|
||||
"aggregateBy": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
"error": [Function],
|
||||
"presence": "optional",
|
||||
},
|
||||
"metas": Array [
|
||||
Object {
|
||||
"x-oas-optional": true,
|
||||
},
|
||||
],
|
||||
"rules": Array [
|
||||
Object {
|
||||
"args": Object {
|
||||
"method": [Function],
|
||||
},
|
||||
"name": "custom",
|
||||
},
|
||||
],
|
||||
"type": "string",
|
||||
},
|
||||
"pluginId": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
"error": [Function],
|
||||
"presence": "optional",
|
||||
},
|
||||
"metas": Array [
|
||||
Object {
|
||||
"x-oas-optional": true,
|
||||
},
|
||||
],
|
||||
"rules": Array [
|
||||
Object {
|
||||
"args": Object {
|
||||
"method": [Function],
|
||||
},
|
||||
"name": "custom",
|
||||
},
|
||||
],
|
||||
"type": "string",
|
||||
},
|
||||
},
|
||||
"metas": Array [
|
||||
Object {
|
||||
"x-oas-optional": true,
|
||||
},
|
||||
],
|
||||
"type": "object",
|
||||
},
|
||||
"timeout": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
|
@ -195,6 +252,63 @@ Object {
|
|||
],
|
||||
"type": "any",
|
||||
},
|
||||
"telemetryMetadata": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
"error": [Function],
|
||||
"presence": "optional",
|
||||
},
|
||||
"keys": Object {
|
||||
"aggregateBy": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
"error": [Function],
|
||||
"presence": "optional",
|
||||
},
|
||||
"metas": Array [
|
||||
Object {
|
||||
"x-oas-optional": true,
|
||||
},
|
||||
],
|
||||
"rules": Array [
|
||||
Object {
|
||||
"args": Object {
|
||||
"method": [Function],
|
||||
},
|
||||
"name": "custom",
|
||||
},
|
||||
],
|
||||
"type": "string",
|
||||
},
|
||||
"pluginId": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
"error": [Function],
|
||||
"presence": "optional",
|
||||
},
|
||||
"metas": Array [
|
||||
Object {
|
||||
"x-oas-optional": true,
|
||||
},
|
||||
],
|
||||
"rules": Array [
|
||||
Object {
|
||||
"args": Object {
|
||||
"method": [Function],
|
||||
},
|
||||
"name": "custom",
|
||||
},
|
||||
],
|
||||
"type": "string",
|
||||
},
|
||||
},
|
||||
"metas": Array [
|
||||
Object {
|
||||
"x-oas-optional": true,
|
||||
},
|
||||
],
|
||||
"type": "object",
|
||||
},
|
||||
"timeout": Object {
|
||||
"flags": Object {
|
||||
"default": [Function],
|
||||
|
|
|
@ -31,6 +31,7 @@ export const RunActionParamsSchema = schema.object({
|
|||
signal: schema.maybe(schema.any()),
|
||||
timeout: schema.maybe(schema.number()),
|
||||
raw: schema.maybe(schema.boolean()),
|
||||
telemetryMetadata: schema.maybe(TelemtryMetadataSchema),
|
||||
});
|
||||
|
||||
export const BedrockMessageSchema = schema.object(
|
||||
|
|
|
@ -173,6 +173,7 @@ export const StreamActionParamsSchema = schema.object({
|
|||
// abort signal from client
|
||||
signal: schema.maybe(schema.any()),
|
||||
timeout: schema.maybe(schema.number()),
|
||||
telemetryMetadata: schema.maybe(TelemtryMetadataSchema),
|
||||
});
|
||||
|
||||
export const StreamingResponseSchema = schema.any();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue