Compute budget utilisation ratio for a given budget.
Queries Oxigraph for the budget identified by budgetId and returns the ratio of spentTokens / maxTokens.
budgetId
0.0
1.0
maxTokens
The budget identifier key (must pass SAFE_IRI_KEY_RE)
Gateway configuration
Utilisation ratio clamped to [0.0, 1.0]
If budgetId is unsafe
Compute budget utilisation ratio for a given budget.
Queries Oxigraph for the budget identified by
budgetIdand returns the ratio of spentTokens / maxTokens.0.0if no budget is found for the given id.1.0ifmaxTokensis 0 (fully consumed / degenerate).