Skip to main content

Budget

Description

Per-principal budget tracking for cost control and kill switches

Properties

NameTypeDescriptionNotes
principalIdUUIDReference to the Principal (user/team) this budget applies to[optional]
nameStringBudget name (e.g. "Q4 2025 API Budget")[optional]
periodStartOffsetDateTimeStart of budget period[optional]
periodEndOffsetDateTimeEnd of budget period[optional]
maxCostTokensDoubleMaximum cost tokens allowed in this period[optional]
maxExecutionsIntegerMaximum workflow executions allowed in this period[optional]
currentCostTokensDoubleCurrent cost tokens consumed[optional]
currentExecutionsIntegerCurrent workflow executions count[optional]
alertThresholdDoublePercentage threshold to trigger alerts (e.g. 0.8 for 80%)[optional]
killSwitchEnabledBooleanWhether to block executions when budget exceeded[optional]
statusStatusEnumBudget status[optional]
idUUIDUnique identifier for object in the system[optional] [readonly]
ownerIdUUIDUUID of owner of the object in the system[optional] [readonly]
createdDateOffsetDateTimeDate of object creation[optional] [readonly]
keyHashStringData, including hash of the key(s) used to encrypt this record.[optional] [readonly]
lastAccessedByIdUUIDLast user to access object[optional] [readonly]
lastAccessedDateOffsetDateTimeTimestamp of last access of object[optional] [readonly]
lastModifiedByIdUUIDUnique identifier for user who last modifed the object in the system[optional] [readonly]
lastModifiedDateOffsetDateTimeDate of last object modification[optional] [readonly]

Enum: StatusEnum

NameValue
ACTIVE"ACTIVE"
EXCEEDED"EXCEEDED"
EXPIRED"EXPIRED"

Implemented Interfaces

  • Serializable

Generated Version Details

~value
GENERATOR VERSIONcom.valkyrlabs:ValkyrAI API 1.0.1-SNAPSHOT
API ARTIFACTcom.valkyrlabs.valkyrai-api.jar
GENERATOR VERSIONorg.openapitools.openapi-generator:7.5.0
GENERATOR CLASSorg.openapitools.codegen.languages.SpringCodegen
GENERATED DATE2025-12-03T11:13:18.492704-08:00[America/Los_Angeles]