mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 19:00:46 +08:00
feat(UME): 增加RESTCONF对接与可视化运维页
- 支持 token 获取/续约/断开、DB共享缓存与跨进程单飞锁、keepalive 保活 - 新增 inventory/current/history 告警同步入库与查询接口,前端增加 UME 对接页面与分页 - 修复 stop_netx.ps1 在部分 PowerShell 版本下 Stop-Job -Force 报错 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ab1b76dd47
commit
7f2e4ec393
15 changed files with 2577 additions and 15 deletions
|
|
@ -73,3 +73,58 @@ export type AiAnalyzeHistoryResponse = {
|
|||
page_size: number;
|
||||
items: AiAnalyzeHistoryItem[];
|
||||
};
|
||||
|
||||
export type UmeSyncJobItem = {
|
||||
id: number;
|
||||
domain: string;
|
||||
status: string;
|
||||
trigger_mode: string;
|
||||
pulled_count: number;
|
||||
inserted_count: number;
|
||||
updated_count: number;
|
||||
error_message?: string;
|
||||
started_at: string;
|
||||
ended_at?: string | null;
|
||||
};
|
||||
|
||||
export type UmeSyncStatusResponse = {
|
||||
total?: number;
|
||||
page?: number;
|
||||
page_size?: number;
|
||||
items: UmeSyncJobItem[];
|
||||
latest_by_domain?: Record<string, UmeSyncJobItem>;
|
||||
};
|
||||
|
||||
export type UmeNeItem = {
|
||||
ne_id: string;
|
||||
ne_name: string;
|
||||
user_label: string;
|
||||
ip_address: string;
|
||||
ne_type: string;
|
||||
last_seen_at?: string;
|
||||
};
|
||||
|
||||
export type UmeAlarmItem = {
|
||||
alarm_key: string;
|
||||
ne_id: string;
|
||||
ne_name: string;
|
||||
user_label: string;
|
||||
object_name: string;
|
||||
event_type: string;
|
||||
native_probable_cause: string;
|
||||
perceived_severity: string;
|
||||
is_cleared: string;
|
||||
time_created: string;
|
||||
last_seen_at?: string;
|
||||
};
|
||||
|
||||
export type UmeTokenStatus = {
|
||||
ok: boolean;
|
||||
has_token: boolean;
|
||||
expires_in_s: number;
|
||||
expires_at_epoch_s: number;
|
||||
auth_header: string;
|
||||
token_preview?: string;
|
||||
error_kind?: string;
|
||||
error?: string;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue