mirror of
https://github.com/grafana/grafana.git
synced 2025-08-06 01:00:24 +08:00
Logs: Move components to dedicated directory (#65936)
* move log-context components to dedicated directory * fix any * add right format of lerna.json
This commit is contained in:
@ -37,7 +37,7 @@ import { queryLogsVolume } from 'app/core/logsModel';
|
||||
import { getTimeSrv, TimeSrv } from 'app/features/dashboard/services/TimeSrv';
|
||||
import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_srv';
|
||||
|
||||
import { RowContextOptions } from '../../../features/logs/components/LogRowContextProvider';
|
||||
import { RowContextOptions } from '../../../features/logs/components/log-context/types';
|
||||
import { getLogLevelFromKey } from '../../../features/logs/utils';
|
||||
|
||||
import { ElasticResponse } from './ElasticResponse';
|
||||
@ -561,7 +561,7 @@ export class ElasticDatasource
|
||||
return { data: [] };
|
||||
}
|
||||
/**
|
||||
* The LogRowContextProvider requires there is a field in the dataFrame.fields
|
||||
* The LogRowContext requires there is a field in the dataFrame.fields
|
||||
* named `ts` for timestamp and `line` for the actual log line to display.
|
||||
* Unfortunatly these fields are hardcoded and are required for the lines to
|
||||
* be properly displayed. This code just copies the fields based on this.timeField
|
||||
|
Reference in New Issue
Block a user