mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 04:20:45 +08:00
Unify sync status deleted into single deleted field
API GET /v1/ume/sync/status exposes deleted only (sum of inventory NE + current-alarm reconcile counts from details_json). UI one column. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
ac1f573508
commit
c06beecfe6
3 changed files with 15 additions and 21 deletions
|
|
@ -241,8 +241,7 @@ export function UmePage() {
|
|||
<th>pulled</th>
|
||||
<th>inserted</th>
|
||||
<th>updated</th>
|
||||
<th title="对账删除的网元行(仅 inventory 全量成功时)">删网元</th>
|
||||
<th title="对账删除的当前告警行(仅 alarms_current 全量成功时)">删当前告警</th>
|
||||
<th title="全量对账删除条数:inventory 为网元行,alarms_current 为当前告警行,其余域多为 0">deleted</th>
|
||||
<th>started_at</th>
|
||||
<th>ended_at</th>
|
||||
<th>error</th>
|
||||
|
|
@ -257,8 +256,7 @@ 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_current_alarms ?? 0)}</td>
|
||||
<td>{Number(x.deleted ?? 0)}</td>
|
||||
<td>{formatSystemTime(x.started_at)}</td>
|
||||
<td>{x.ended_at ? formatSystemTime(x.ended_at) : "-"}</td>
|
||||
<td>{x.error_message || "-"}</td>
|
||||
|
|
@ -266,7 +264,7 @@ export function UmePage() {
|
|||
))}
|
||||
{!syncStatusQuery.isLoading && (syncStatusQuery.data?.items || []).length === 0 && (
|
||||
<tr>
|
||||
<td colSpan={11}>暂无同步记录</td>
|
||||
<td colSpan={10}>暂无同步记录</td>
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
|
|
|
|||
|
|
@ -82,10 +82,8 @@ 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;
|
||||
/** Reconcile deletes for current alarms after full snapshot. */
|
||||
deleted_current_alarms?: number;
|
||||
/** Full-snapshot reconcile deletes (inventory: NE rows; alarms_current: current alarm rows). */
|
||||
deleted?: number;
|
||||
error_message?: string;
|
||||
started_at: string;
|
||||
ended_at?: string | null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue