forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Obs AI Assistant] Send custom telemetry event on Insight response (e…
…lastic#202353) ## Summary ### Problem There is no custom Telemetry event for Insights at the moment. Therefore the clicks are differentiated based on the HTML of the elements of the UI, however sometimes these clicks can come from clusters with a connector or without a connector. Because of this behaviour there is no way to differentiate which clusters have a GenAI connector and which clusters don't. ### Solution - Introduce a custom Telemetry event - `InsightResponse = 'observability_ai_assistant_insight_response'` - Send this event when the LLM generates a response for an insight. ### Checklist - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- Loading branch information
1 parent
05c83f5
commit 419433e
Showing
4 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
...vability_solution/observability_ai_assistant/public/analytics/schemas/insight_response.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,25 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import type { EventTypeOpts } from '@kbn/core/public'; | ||
import { ObservabilityAIAssistantTelemetryEventType } from '../telemetry_event_type'; | ||
|
||
export interface InsightResponse { | ||
'@timestamp': string; | ||
} | ||
|
||
export const insightResponseEventSchema: EventTypeOpts<InsightResponse> = { | ||
eventType: ObservabilityAIAssistantTelemetryEventType.InsightResponse, | ||
schema: { | ||
'@timestamp': { | ||
type: 'text', | ||
_meta: { | ||
description: 'The timestamp of the last response from the LLM.', | ||
}, | ||
}, | ||
}, | ||
}; |
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