feat: add offline PDF status code lookup, date range filter, and daily jobs timeline line chart
This commit is contained in:
@@ -119,6 +119,19 @@ netbackup-insights/
|
||||
* The PDF report table must contain a dedicated **Infra/Cloud** column.
|
||||
* **Rules:** If `Primary Server` contains `srvpalcvnbu01`, classify as `Azure`. If it contains `srvpalcocinbupri01`, classify as `OCI`. Otherwise, label as `Outro`.
|
||||
|
||||
### 6.4 Live Internet Troubleshooting & Diagnostic Engine
|
||||
### 6.4 Offline PDF Troubleshooting & Diagnostic Engine (v2.2 Shift)
|
||||
* For failed jobs that are not cleared by re-runs (`is_rerun_success == 0`), the UI must resolve troubleshooting steps dynamically.
|
||||
* **Mechanism:** Fall back to a local database dictionary (for status codes 2, 25, 26, 57, 58, 96, 156), and perform a real-time HTTP search query against `html.duckduckgo.com` to fetch supplemental resolution notes online.
|
||||
* **Mechanism:** Query a compiled local JSON database (`nbu_status_codes.json`) parsed from the offline reference guide `NBU_StatusCode.pdf`.
|
||||
* **Details:**
|
||||
* For status codes 2, 25, 26, 57, 58, 96, and 156, it merges custom Portuguese guidelines with the official PDF manual guidelines.
|
||||
* For all other status codes, it falls back to the official PDF's description and the first recommended troubleshooting action as a suggestion.
|
||||
* The diagnostic engine runs entirely offline without any internet lookup.
|
||||
|
||||
### 6.5 Sidebar Date Range Filter (v2.3 Shift)
|
||||
* **Objective:** Support daily ingestion and navigation through historical backups.
|
||||
* **Mechanism:** Display a date range selector (`st.sidebar.date_input`) in the sidebar, derived from database bounds.
|
||||
* **Traceability Integration:** Allow ignoring the date filter in the Mitigation Actions tab (Tab 3) via a toggle, ensuring technicians can address unresolved active failures across all dates.
|
||||
|
||||
### 6.6 Daily Executed Jobs Line Chart
|
||||
* **Objective:** Render chronological executed job statistics.
|
||||
* **Mechanism:** Group execution counts by date and display a line chart with markers in the Performance Dashboard, showing a maximum of 30 days of execution.
|
||||
Reference in New Issue
Block a user