logs: send more info to getLogRowContext (#52130)

This commit is contained in:
Gábor Farkas
2022-07-15 14:02:43 +00:00
committed by GitHub
parent 57273d4846
commit 1d3cd0103e
2 changed files with 10 additions and 4 deletions
+3 -2
View File
@@ -149,13 +149,14 @@ export enum LogsDedupDescription {
* Data sources that allow showing context rows around the provided LowRowModel should implement this method.
* This will enable "context" button in Logs Panel.
*/
export interface DataSourceWithLogsContextSupport {
export interface DataSourceWithLogsContextSupport<TQuery extends DataQuery = DataQuery> {
/**
* Retrieve context for a given log row
*/
getLogRowContext: <TContextQueryOptions extends {}>(
row: LogRowModel,
options?: TContextQueryOptions
options?: TContextQueryOptions,
query?: TQuery
) => Promise<DataQueryResponse>;
/**