code wiki / _hdl_build / nx_apistack_slo.nx

nx_apistack_slo.nx

buildroot/runtime/_hdl_build/nx_apistack_slo.nx

1229 B24 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic apistack
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_apistack_slo.nx nx_apistack_slo_gate.nx

imports: nx_syscalls.nx

imported by: nx_apistack_slo_gate.nx

structs

none

consts

none

functions

8func slo_allowed_errors(total: i64, target_permil: i64) -> i64
12func slo_error_budget(total: i64, errors: i64, target_permil: i64) -> i64
called by 2: slo_breachedmain calls 1: slo_allowed_errors
16func slo_breached(total: i64, errors: i64, target_permil: i64) -> i64
called by 1: main calls 1: slo_error_budget
21func slo_availability_permil(total: i64, errors: i64) -> i64
called by 1: main