first commit
This commit is contained in:
@@ -0,0 +1,64 @@
|
||||
export interface LogContext {
|
||||
ip_address?: string;
|
||||
user_nip?: string;
|
||||
request_uri?: string;
|
||||
total_duration_ms?: number;
|
||||
raw_log?: string;
|
||||
[key: string]: any;
|
||||
}
|
||||
|
||||
export interface LogEntry {
|
||||
timestamp: string;
|
||||
channel: string;
|
||||
level: string;
|
||||
message: string;
|
||||
correlation_id: string;
|
||||
context: LogContext;
|
||||
_seq?: number;
|
||||
}
|
||||
|
||||
export interface LogStats {
|
||||
total: number;
|
||||
login_success: number;
|
||||
login_failed: number;
|
||||
session_expired: number;
|
||||
errors: number;
|
||||
warnings: number;
|
||||
performance_count: number;
|
||||
avg_response_ms: number;
|
||||
brute_force_locked: number;
|
||||
}
|
||||
|
||||
export interface LockedIP {
|
||||
ip: string;
|
||||
attempts: any[];
|
||||
lockout_until: number;
|
||||
}
|
||||
|
||||
export interface BackupFile {
|
||||
filename: string;
|
||||
size_mb: number;
|
||||
mtime: string;
|
||||
}
|
||||
|
||||
export interface UserSession {
|
||||
username: string;
|
||||
name: string;
|
||||
email?: string;
|
||||
login_time: string;
|
||||
auth_type: string;
|
||||
kc_server?: string;
|
||||
kc_realm?: string;
|
||||
}
|
||||
|
||||
export interface FilterState {
|
||||
source: string;
|
||||
date: string;
|
||||
time_start: string;
|
||||
time_end: string;
|
||||
channel: string;
|
||||
level: string;
|
||||
search: string;
|
||||
limit: number;
|
||||
page: number;
|
||||
}
|
||||
Reference in New Issue
Block a user