mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
rename logs_model.ts->logsModel.ts; update references (#51468)
This commit is contained in:
@@ -28,7 +28,7 @@ import {
|
||||
LIMIT_LABEL,
|
||||
logSeriesToLogsModel,
|
||||
queryLogsVolume,
|
||||
} from './logs_model';
|
||||
} from './logsModel';
|
||||
|
||||
describe('dedupLogRows()', () => {
|
||||
test('should return rows as is when dedup is set to none', () => {
|
||||
@@ -35,7 +35,7 @@ import {
|
||||
Themeable2,
|
||||
} from '@grafana/ui';
|
||||
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
|
||||
import { dedupLogRows, filterLogLevels } from 'app/core/logs_model';
|
||||
import { dedupLogRows, filterLogLevels } from 'app/core/logsModel';
|
||||
import store from 'app/core/store';
|
||||
import { ExploreId } from 'app/types/explore';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
} from '@grafana/data';
|
||||
import { config } from '@grafana/runtime';
|
||||
|
||||
import { dataFrameToLogsModel } from '../../../core/logs_model';
|
||||
import { dataFrameToLogsModel } from '../../../core/logsModel';
|
||||
import { refreshIntervalToSortOrder } from '../../../core/utils/explore';
|
||||
import { ExplorePanelData } from '../../../types';
|
||||
import { preProcessPanelData } from '../../query/state/runRequest';
|
||||
|
||||
@@ -22,7 +22,7 @@ import { selectors } from '@grafana/e2e-selectors';
|
||||
import { reportInteraction } from '@grafana/runtime';
|
||||
import { Button, Spinner, Table } from '@grafana/ui';
|
||||
import { config } from 'app/core/config';
|
||||
import { dataFrameToLogsModel } from 'app/core/logs_model';
|
||||
import { dataFrameToLogsModel } from 'app/core/logsModel';
|
||||
import { PanelModel } from 'app/features/dashboard/state';
|
||||
import { GetDataOptions } from 'app/features/query/state/PanelQueryRunner';
|
||||
import { transformToJaeger } from 'app/plugins/datasource/jaeger/responseTransform';
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
} from '@grafana/data';
|
||||
import { BackendSrvRequest, getBackendSrv, getDataSourceSrv } from '@grafana/runtime';
|
||||
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
|
||||
import { queryLogsVolume } from 'app/core/logs_model';
|
||||
import { queryLogsVolume } from 'app/core/logsModel';
|
||||
import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_srv';
|
||||
|
||||
import { ElasticsearchAnnotationsQueryEditor } from './components/QueryEditor/AnnotationQueryEditor';
|
||||
|
||||
@@ -28,7 +28,7 @@ function processStreamFrame(
|
||||
): DataFrame {
|
||||
const custom: Record<string, string> = {
|
||||
...frame.meta?.custom, // keep the original meta.custom
|
||||
// used by logs_model
|
||||
// used by logsModel
|
||||
lokiQueryStatKey: 'Summary: total bytes processed',
|
||||
};
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ import {
|
||||
} from '@grafana/data';
|
||||
import { FetchError, config, DataSourceWithBackend } from '@grafana/runtime';
|
||||
import { RowContextOptions } from '@grafana/ui/src/components/Logs/LogRowContextProvider';
|
||||
import { queryLogsVolume } from 'app/core/logs_model';
|
||||
import { queryLogsVolume } from 'app/core/logsModel';
|
||||
import { convertToWebSocketUrl } from 'app/core/utils/explore';
|
||||
import { getTimeSrv, TimeSrv } from 'app/features/dashboard/services/TimeSrv';
|
||||
import { getTemplateSrv, TemplateSrv } from 'app/features/templating/template_srv';
|
||||
|
||||
@@ -12,12 +12,10 @@ import {
|
||||
DataHoverEvent,
|
||||
} from '@grafana/data';
|
||||
import { LogRows, CustomScrollbar, LogLabels, useStyles2, usePanelContext } from '@grafana/ui';
|
||||
import { dataFrameToLogsModel, dedupLogRows } from 'app/core/logs_model';
|
||||
import { dataFrameToLogsModel, dedupLogRows, COMMON_LABELS } from 'app/core/logsModel';
|
||||
import { getFieldLinksForExplore } from 'app/features/explore/utils/links';
|
||||
import { PanelDataErrorView } from 'app/features/panel/components/PanelDataErrorView';
|
||||
|
||||
import { COMMON_LABELS } from '../../../core/logs_model';
|
||||
|
||||
import { Options } from './types';
|
||||
|
||||
interface LogsPanelProps extends PanelProps<Options> {}
|
||||
|
||||
Reference in New Issue
Block a user