forked from SigNoz/signoz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logs.ts
32 lines (30 loc) · 987 Bytes
/
logs.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { LogViewMode } from 'container/LogsTable';
import { Pagination } from 'hooks/queryPagination';
import { ILogQLParsedQueryItem } from 'lib/logql/types';
import { OrderPreferenceItems } from 'pages/Logs/config';
import { IFields } from 'types/api/logs/fields';
import { TLogsLiveTailState } from 'types/api/logs/liveTail';
import { ILog } from 'types/api/logs/log';
import { ILogsAggregate } from 'types/api/logs/logAggregate';
export interface ILogsReducer {
fields: IFields;
searchFilter: {
queryString: string;
parsedQuery: ILogQLParsedQueryItem[];
};
logs: ILog[];
logLinesPerPage: Pagination['limit'];
linesPerRow: number;
viewMode: LogViewMode;
idEnd: string;
idStart: string;
isLoading: boolean;
isLoadingAggregate: boolean;
logsAggregate: ILogsAggregate[];
selectedLogId: string | null;
detailedLog: null | ILog;
liveTail: TLogsLiveTailState;
liveTailStartRange: number; // time in minutes
order: OrderPreferenceItems;
}
export default ILogsReducer;