mirror of
https://github.com/hansjone/netx.git
synced 2026-10-10 16:50:47 +08:00
UME: system time for alarm time_created, 48h inventory auto-sync, runtime pause/resume
- formatSystemTime for current alarm time_created\n- Background thread inventory_auto_sync (NETX_UME_SYNC_INVENTORY_AUTO_ENABLED, NETX_UME_SYNC_INVENTORY_EVERY_HOURS default 48)\n- Pause/resume for token_keepalive, alarms_current_auto_sync, inventory_auto_sync via POST /v1/ume/runtime/tasks/{task}/pause|resume\n- UmePage后台任务列操作 暂停/开始
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
edad7b24fa
commit
1741965de6
4 changed files with 129 additions and 5 deletions
|
|
@ -42,12 +42,13 @@ class Settings(BaseSettings):
|
|||
ume_keepalive_renew_before_s: int = 900
|
||||
ume_sync_alarms_current_enabled: bool = True
|
||||
ume_sync_alarms_current_interval_s: int = 300
|
||||
ume_sync_inventory_auto_enabled: bool = True
|
||||
ume_sync_inventory_every_hours: int = 48
|
||||
ume_token_path: str = "/restconf/operations/zte-security:oauth_token"
|
||||
ume_token_handshake_path: str = "/restconf/operations/zte-security:oauth_handshake"
|
||||
ume_token_logout_path: str = "/restconf/operations/zte-security:oauth_token"
|
||||
ume_ne_path: str = "/restconf/data/zte-resources-module:network-elements"
|
||||
ume_alarms_path: str = "/restconf/data/zte-alarms:alarms/alarm-list"
|
||||
ume_sync_inventory_every_hours: int = 24
|
||||
ume_sync_alarms_history_every_hours: int = 24
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue