mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 21:50:47 +08:00
Wire cutover monitor to templates: project binding, multi-sheet evaluate, dual status semantics, and UI expect/HF.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
202196a197
commit
60a663e2f6
11 changed files with 808 additions and 159 deletions
|
|
@ -2016,15 +2016,37 @@ export const bizMigrationListBaselinePorts = (projectId: string) =>
|
|||
}[];
|
||||
}>(`/v1/biz-migration/projects/${encodeURIComponent(projectId)}/baseline-ports`);
|
||||
|
||||
export const bizMigrationEnsurePortHighfreq = (
|
||||
export const bizMigrationListBaselineExpect = (projectId: string) =>
|
||||
apiGet<{
|
||||
batch_id: string;
|
||||
monitor_template_id?: string;
|
||||
sheets: Array<{
|
||||
metric_id: string;
|
||||
key_fields: string[];
|
||||
iface_fields: string[];
|
||||
items: Array<{
|
||||
key: string;
|
||||
keys: string[];
|
||||
mapped_to?: string;
|
||||
label?: string;
|
||||
row?: Record<string, unknown>;
|
||||
}>;
|
||||
}>;
|
||||
mapped?: Record<string, string>;
|
||||
}>(`/v1/biz-migration/projects/${encodeURIComponent(projectId)}/baseline-expect`);
|
||||
|
||||
export const bizMigrationEnsureHighfreq = (
|
||||
projectId: string,
|
||||
body: { interval_sec?: number; retention_days?: number; collect_now?: boolean } = {},
|
||||
) =>
|
||||
apiPost<Record<string, unknown>>(
|
||||
`/v1/biz-migration/projects/${encodeURIComponent(projectId)}/ensure-port-highfreq`,
|
||||
`/v1/biz-migration/projects/${encodeURIComponent(projectId)}/ensure-highfreq`,
|
||||
body,
|
||||
);
|
||||
|
||||
/** @deprecated use bizMigrationEnsureHighfreq */
|
||||
export const bizMigrationEnsurePortHighfreq = bizMigrationEnsureHighfreq;
|
||||
|
||||
export const bizMigrationCollectNow = (projectId: string) =>
|
||||
apiPost<Record<string, unknown>>(
|
||||
`/v1/biz-migration/projects/${encodeURIComponent(projectId)}/collect-now`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue