mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 16:43:18 +08:00
feat(UME): 增加后台任务监控并启用5分钟告警自动同步
新增当前告警自动同步后台线程(默认300s一次)并提供开关配置;在 /v1/ume/sync/status 返回 runtime_tasks,前端“当前任务”面板展示保活与自动同步运行状态;同时隐藏历史告警UI但保留后端能力。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d0994f6e53
commit
84cf70cde3
5 changed files with 155 additions and 138 deletions
|
|
@ -93,6 +93,12 @@ export type UmeSyncStatusResponse = {
|
|||
page_size?: number;
|
||||
items: UmeSyncJobItem[];
|
||||
latest_by_domain?: Record<string, UmeSyncJobItem>;
|
||||
runtime_tasks?: Array<{
|
||||
task: string;
|
||||
status: string;
|
||||
last_run_at?: string | null;
|
||||
last_error?: string;
|
||||
}>;
|
||||
};
|
||||
|
||||
export type UmeNeItem = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue