mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
logs: removed unused code (#70758)
This commit is contained in:
parent
c0b64612f8
commit
ebe5e9c2e6
@ -40,7 +40,7 @@ import { BarAlignment, GraphDrawStyle, StackingMode } from '@grafana/schema';
|
||||
import { ansicolor, colors } from '@grafana/ui';
|
||||
import { getThemeColor } from 'app/core/utils/colors';
|
||||
|
||||
import { Attributes, LogsFrame, parseLogsFrame } from '../features/logs/logsFrame';
|
||||
import { LogsFrame, parseLogsFrame } from '../features/logs/logsFrame';
|
||||
import { getLogLevel, getLogLevelFromKey, sortInAscendingOrder } from '../features/logs/utils';
|
||||
|
||||
export const LIMIT_LABEL = 'Line limit';
|
||||
@ -316,16 +316,6 @@ interface LogInfo {
|
||||
frameLabels?: Labels[];
|
||||
}
|
||||
|
||||
export function attributesToLabels(attributes: Attributes): Labels {
|
||||
const result: Labels = {};
|
||||
|
||||
Object.entries(attributes).forEach(([k, v]) => {
|
||||
result[k] = typeof v === 'string' ? v : JSON.stringify(v);
|
||||
});
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts dataFrames into LogsModel. This involves merging them into one list, sorting them and computing metadata
|
||||
* like common labels.
|
||||
|
Loading…
Reference in New Issue
Block a user