Skip to content

UsageRunRow

One run behind a range’s usage. Its usage is kept even after the run itself is deleted.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
processIduuidThe run’s id.
typeProcessTypeThe kind of run.
definitionIduuidThe id of the definition the run was started from.
definitionNamestring | nullThe definition’s name when the run used it.
definitionVersionintegerThe definition’s version the run used.
namespaceIduuid | nullThe id of the definition’s namespace.
namespaceNamestring | nullThe namespace’s name when the run used it.
outcomeUsageOutcomeHow the run ended, or InProgress.
dateStarteddatetime | nullWhen the run started, in UTC.
dateEndeddatetime | nullWhen the run ended, in UTC; null while it is in progress.
datedatetimeThe date the run is listed by: its end or, while it is in progress, its latest usage.
runtimeMsinteger | nullWall-clock time, start to end, in milliseconds; null while in progress.
executionMsinteger | nullThe time the run was actually executing, in milliseconds; null while in progress.
tokensUsageTokenTotalsThe run’s tokens that match the request’s agent, provider, model, engine, credential kind and tier filters (all of them when there are none).
totalTokensUsageTokenTotalsAll of the run’s tokens.
stepsintegerThe code pipeline steps the run ran; 0 for other kinds of run.
toolCallsintegerThe code pipeline’s tool uses; 0 for other kinds of run.
startedByUsageStartedByWhat started the run.
triggerIduuid | nullThe id of the user or automation that started the run; null when another run started it.
triggerNamestring | nullThe user’s or automation’s name, when it can still be found.
parentProcessIduuid | nullThe id of the run that started this one, or null.
parentProcessTypeProcessType| nullThe kind of run parentProcessId is.
rootProcessIduuid | nullThe id of the run at the top of this run’s tree.
rootTypeProcessType| nullThe kind of run at the top of the tree.
rootDefinitionIduuid | nullThe definition id of the run at the top of the tree.
rootDefinitionNamestring | nullThe definition name of the run at the top of the tree.
availablebooleanWhether the run still exists, so it can be read. False once retention has deleted it. A run a retention lease keeps is never deleted, so it is always available.
statusstring | nullThe run’s current status (its kind’s own status name); null once it is deleted.
stateProcessState| nullWhich group status falls into; null once the run is deleted.
retentionLeaseProcessRetentionLease| nullThe retention lease that keeps the run (its own, or one inherited from a retained run that started it), or null.
retentionExpiresAtUtcdatetime | nullWhen the run will be deleted, in UTC. Null while it is retained, while it has not ended, or once it is deleted.
{
"processId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"type": "App",
"definitionId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"definitionName": "...",
"definitionVersion": 0,
"namespaceId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"namespaceName": "...",
"outcome": "InProgress",
"dateStarted": "2026-10-26T12:00:00.0000000Z",
"dateEnded": "2026-10-26T12:00:00.0000000Z",
"date": "2026-10-26T12:00:00.0000000Z",
"runtimeMs": 0,
"executionMs": 0,
"tokens": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"reasoning": 0,
"total": 0
},
"totalTokens": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0,
"reasoning": 0,
"total": 0
},
"steps": 0,
"toolCalls": 0,
"startedBy": "User",
"triggerId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"triggerName": "...",
"parentProcessId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"parentProcessType": "App",
"rootProcessId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"rootType": "App",
"rootDefinitionId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"rootDefinitionName": "...",
"available": false,
"status": "...",
"state": "Active",
"retentionLease": {
"appliedAtUtc": "2026-10-26T12:00:00.0000000Z",
"appliedByUserId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"appliedByUserName": "...",
"note": "...",
"inheritedFromProcessId": "3f2b8c1e-5d4a-4e6b-9c7d-2a1b0c9d8e7f",
"inheritedFromProcessType": "App"
},
"retentionExpiresAtUtc": "2026-10-26T12:00:00.0000000Z"
}