QuotaTracker
Auto-generated API reference for QuotaTracker.
Interface: QuotaTracker
Defined in: quota.ts:57
#Properties
#check
check: (
tool,runId) =>void
Defined in: quota.ts:59
Throws ToolError(AK_TOOL_QUOTA_EXCEEDED) when the tool is over budget.
#Parameters
tool
string
runId
string
#Returns
void
#record
record: (
tool,runId) =>void
Defined in: quota.ts:61
Records a successful tool invocation against the counters.
#Parameters
tool
string
runId
string
#Returns
void
#resetRun
resetRun: (
runId) =>void
Defined in: quota.ts:63
Reset per-run counters for a finished runtime.run().
#Parameters
runId
string
#Returns
void
#snapshot
snapshot: () =>
QuotaSnapshot
Defined in: quota.ts:65
Inspect counters (debugging / dashboards).