Logs: Add new LogRowContext types to @grafana/data (#66404)

* Logs: Add new LogRowContext types to grafana/data

* use right type for `RowContextOptions`

* add missing renames
This commit is contained in:
Sven Grossmann
2023-04-13 13:07:28 +02:00
committed by GitHub
parent 38ee910e39
commit 7bc0692801
15 changed files with 68 additions and 55 deletions
+2 -2
View File
@@ -26,6 +26,7 @@ import {
DataHoverClearEvent,
EventBus,
DataSourceWithLogsContextSupport,
LogRowContextOptions,
} from '@grafana/data';
import { reportInteraction } from '@grafana/runtime';
import { DataQuery } from '@grafana/schema';
@@ -44,7 +45,6 @@ import store from 'app/core/store';
import { ExploreId } from 'app/types/explore';
import { LogRows } from '../logs/components/LogRows';
import { RowContextOptions } from '../logs/components/log-context/types';
import { LogsMetaRow } from './LogsMetaRow';
import LogsNavigation from './LogsNavigation';
@@ -79,7 +79,7 @@ interface Props extends Themeable2 {
onClickFilterOutLabel: (key: string, value: string) => void;
onStartScanning?: () => void;
onStopScanning?: () => void;
getRowContext?: (row: LogRowModel, options?: RowContextOptions) => Promise<any>;
getRowContext?: (row: LogRowModel, options?: LogRowContextOptions) => Promise<any>;
getLogRowContextUi?: DataSourceWithLogsContextSupport['getLogRowContextUi'];
getFieldLinks: (field: Field, rowIndex: number, dataFrame: DataFrame) => Array<LinkModel<Field>>;
addResultsToCache: () => void;