mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
- new builtin datasource plugin "Logging" (likely going to be renamed) - plugin implements no panel ctrls yet, only ships datasource - new models for logging data as first class citizen (aside from table and time_series model) - Logs as new view for Explore - JSON view for development Testable only against existing logish deployment. Then test with queries like `{job="..."} regexp`.
30 lines
473 B
TypeScript
30 lines
473 B
TypeScript
export enum LogLevel {
|
|
crit = 'crit',
|
|
warn = 'warn',
|
|
err = 'error',
|
|
error = 'error',
|
|
info = 'info',
|
|
debug = 'debug',
|
|
trace = 'trace',
|
|
}
|
|
|
|
export interface LogSearchMatch {
|
|
start: number;
|
|
length: number;
|
|
text?: string;
|
|
}
|
|
|
|
export interface LogRow {
|
|
key: string;
|
|
entry: string;
|
|
logLevel: LogLevel;
|
|
timestamp: string;
|
|
timeFromNow: string;
|
|
timeLocal: string;
|
|
searchMatches?: LogSearchMatch[];
|
|
}
|
|
|
|
export interface LogsModel {
|
|
rows: LogRow[];
|
|
}
|