mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Show UME sync delete counts in API and UME UI
Parse UmeSyncJob.details_json in GET /v1/ume/sync/status for deleted_inventory_ne, deleted_inventory_holders, deleted_stale_current_alarms. Add table columns on UmePage and types. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
340fc8ee7d
commit
a025245c8f
3 changed files with 43 additions and 1 deletions
|
|
@ -241,6 +241,9 @@ export function UmePage() {
|
|||
<th>pulled</th>
|
||||
<th>inserted</th>
|
||||
<th>updated</th>
|
||||
<th title="对账删除的网元行(仅 inventory 全量成功时)">删网元</th>
|
||||
<th title="对账删除的机框行">删机框</th>
|
||||
<th title="对账删除的当前告警行(仅 alarms_current 全量成功时)">删当前告警</th>
|
||||
<th>started_at</th>
|
||||
<th>ended_at</th>
|
||||
<th>error</th>
|
||||
|
|
@ -255,6 +258,9 @@ export function UmePage() {
|
|||
<td>{x.pulled_count}</td>
|
||||
<td>{x.inserted_count}</td>
|
||||
<td>{x.updated_count}</td>
|
||||
<td>{Number(x.deleted_inventory_ne ?? 0)}</td>
|
||||
<td>{Number(x.deleted_inventory_holders ?? 0)}</td>
|
||||
<td>{Number(x.deleted_current_alarms ?? 0)}</td>
|
||||
<td>{formatSystemTime(x.started_at)}</td>
|
||||
<td>{x.ended_at ? formatSystemTime(x.ended_at) : "-"}</td>
|
||||
<td>{x.error_message || "-"}</td>
|
||||
|
|
@ -262,7 +268,7 @@ export function UmePage() {
|
|||
))}
|
||||
{!syncStatusQuery.isLoading && (syncStatusQuery.data?.items || []).length === 0 && (
|
||||
<tr>
|
||||
<td colSpan={9}>暂无同步记录</td>
|
||||
<td colSpan={12}>暂无同步记录</td>
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -82,6 +82,11 @@ export type UmeSyncJobItem = {
|
|||
pulled_count: number;
|
||||
inserted_count: number;
|
||||
updated_count: number;
|
||||
/** Reconcile deletes after full inventory snapshot (netx ume_sync_service). */
|
||||
deleted_inventory_ne?: number;
|
||||
deleted_inventory_holders?: number;
|
||||
/** Reconcile deletes for current alarms after full snapshot. */
|
||||
deleted_current_alarms?: number;
|
||||
error_message?: string;
|
||||
started_at: string;
|
||||
ended_at?: string | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue