code wiki / _hdl_build / nx_apistack_slo.nx
nx_apistack_slo.nx
buildroot/runtime/_hdl_build/nx_apistack_slo.nx
about
nx_apistack_slo.nx -- CAP-API-SLO: service-level objective + error budget for /api, computed from the deterministic
health snapshot counts. Pure INTEGER math (no float, no external SLO SaaS = the sovereign exceed): remaining error
budget = allowed_errors - actual_errors; negative = SLO BREACHED. target_permil is the availability target
(999 = 99.9%). license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_apistack_slo_gate.nx
structs
| none |
consts
| none |
functions
| 8 | func slo_allowed_errors(total: i64, target_permil: i64) -> i64 |
| 12 | func slo_error_budget(total: i64, errors: i64, target_permil: i64) -> i64 |
| 16 | func slo_breached(total: i64, errors: i64, target_permil: i64) -> i64 |
| 21 | func slo_availability_permil(total: i64, errors: i64) -> i64 called by 1: main |