code wiki / _hdl_build / nx_apm_dashboard_gate.nx
nx_apm_dashboard_gate.nx
buildroot/runtime/_hdl_build/nx_apm_dashboard_gate.nx
about
nx_apm_dashboard_gate.nx -- SOVEREIGN gate for the APM dashboard renderer (seg-store edition, NO tsv).
Writes synthetic seg-store records (one GREEN daemon, one RED daemon w/ timeouts, one ARTIFACT daemon
w/ slowclose>0 but fast ttfb) to an ISOLATED test store, runs nx_apm_dashboard on it, proves the HTML:
T1 all daemons rendered as cards
T2 DETECTION -- the RED daemon appears in Incidents (<b>name</b>)
T3 NEG-CONTROL -- the GREEN daemon is NOT in Incidents
T4 LIAR-KILL -- the ARTIFACT daemon (fast ttfb, slow close) is NOT in Incidents
T5 the ARTIFACT daemon shows its slowclose info badge
Requires /tmp/nx_apm_dashboard.sov.elf built first. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_apm_dashboard.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 13 | const GD_ELF: *u8 = "/tmp/nx_apm_dashboard.sov.elf" |
| 14 | const GD_STORE: *u8 = "/tmp/ad_store" |
| 15 | const GD_HTML: *u8 = "/tmp/ad_test.html" |
functions
| 17 | func gd_uw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 18 | func gd_wn(v: i64) -> i64 { let b: *u8 = sys_mmap(24); let e: i64 = ad_bn(b, 0, v); sys_write(1, b, e); return 0 } |
| 19 | func gd_contains(hay: *u8, hayn: i64, needle: *u8) -> i64 |
| 31 | func gd_rec(label: *u8, port: i64, conc: i64, oks: i64, p50: i64, mx: i64, to: i64, slow: i64) -> i64 |
| 49 | func main(argc: i64, argv: *i64) -> i64 |