Runtime Models
Runtime metadata, resources, command results, and operation options.
RuntimeInfo
Section titled “RuntimeInfo”Describes a runtime’s identity, resources, lifecycle state, and ingress settings.
RuntimeInfo declaration
Section titled “RuntimeInfo declaration”interface RuntimeInfoRuntimeInfo properties
Section titled “RuntimeInfo properties”| Name | Type | Description |
|---|---|---|
agent? |
RuntimeAgentInfo |
Runtime-agent metadata, when an agent was requested. |
displayName |
string |
Human-readable resource name. |
egressPolicy |
EgressPolicy |
Runtime egress policy. |
id |
string |
Unique resource UUID. |
idleSuspendAfterSecs? |
number |
Idle duration before automatic suspension. |
ingressSpecs |
IngressSpec[] |
Runtime ingress configuration. |
resources |
RuntimeResources |
Runtime resource configuration. |
status |
RuntimeStatus |
Current lifecycle or execution state. |
RuntimeAgentInfo
Section titled “RuntimeAgentInfo”Runtime-agent status metadata.
RuntimeAgentInfo declaration
Section titled “RuntimeAgentInfo declaration”interface RuntimeAgentInfoRuntimeAgentInfo properties
Section titled “RuntimeAgentInfo properties”| Name | Type | Description |
|---|---|---|
error |
string | null |
Runtime-agent failure message, when present. |
key |
string |
Runtime-agent identifier. |
logPath |
string |
Path to the runtime-agent log. |
status |
RuntimeAgentStatus |
Current lifecycle or execution state. |
updatedAt |
string | null |
Timestamp of the latest runtime-agent update. |
CommandResult
Section titled “CommandResult”Buffered command result returned by runtime execution methods.
CommandResult declaration
Section titled “CommandResult declaration”interface CommandResultCommandResult properties
Section titled “CommandResult properties”| Name | Type | Description |
|---|---|---|
durationMs |
number |
Command duration in milliseconds. |
durationSeconds |
number |
Command duration in seconds. |
exitCode |
number |
Process exit code. |
stderr |
string |
Captured standard error bytes. |
stderrText |
string |
Captured standard error decoded as text. |
stderrTruncated |
boolean |
Whether standard error exceeded the configured limit. |
stdout |
string |
Captured standard output bytes. |
stdoutText |
string |
Captured standard output decoded as text. |
stdoutTruncated |
boolean |
Whether standard output exceeded the configured limit. |
CreateRuntimeOptions
Section titled “CreateRuntimeOptions”Configures runtime creation, resources, readiness waiting, and initial egress.
CreateRuntimeOptions declaration
Section titled “CreateRuntimeOptions declaration”interface CreateRuntimeOptionsCreateRuntimeOptions properties
Section titled “CreateRuntimeOptions properties”| Name | Type | Description |
|---|---|---|
checkpointId? |
string | null |
Checkpoint UUID used to restore the new runtime. |
egressPolicy? |
EgressPolicy |
Initial runtime egress policy. |
idleSuspendAfterSecs? |
number | null |
Idle duration before automatic suspension. |
ingressSpecs? |
IngressSpec[] |
Initial runtime ingress configuration. |
memoryMaxMib? |
number |
Maximum autoscaled memory in MiB. Defaults to the initial memory request. |
memoryMib? |
number |
Initial runtime memory in MiB. |
name? |
string | null |
Optional human-readable runtime name. |
pollIntervalMs? |
number |
Polling interval in milliseconds. |
resources? |
CreateRuntimeResources |
Runtime resource configuration. |
runtimeAgent? |
string | null |
Runtime-agent key to start after creation. |
timeoutMs? |
number |
Request timeout in milliseconds. |
vcpus? |
number |
Virtual CPU count. |
wait? |
boolean |
Whether to wait for the operation to become ready. |
PatchRuntimeOptions
Section titled “PatchRuntimeOptions”Options accepted when updating a runtime.
PatchRuntimeOptions declaration
Section titled “PatchRuntimeOptions declaration”interface PatchRuntimeOptionsPatchRuntimeOptions properties
Section titled “PatchRuntimeOptions properties”| Name | Type | Description |
|---|---|---|
egressPolicy? |
EgressPolicy |
Replacement runtime egress policy. |
idleSuspendAfterSecs? |
number | null |
Replacement idle-suspension delay in seconds. |
resources? |
PatchRuntimeResources |
Updated runtime resource configuration. |
ExecOptions
Section titled “ExecOptions”Configures environment, input, timeout, and output limits for a command.
ExecOptions declaration
Section titled “ExecOptions declaration”interface ExecOptionsExecOptions properties
Section titled “ExecOptions properties”| Name | Type | Description |
|---|---|---|
cwd? |
string | null |
Runtime working directory for the command. |
env? |
Record<string, string> | null |
Environment variables passed to the command. |
maxOutputBytes? |
number | null |
Maximum buffered bytes per output stream. |
stdin? |
string | Uint8Array<ArrayBufferLike> | null |
Standard input passed to the command. |
timeoutSecs? |
number | null |
Command timeout in seconds. |
LifecycleOptions
Section titled “LifecycleOptions”Runtime lifecycle behavior and wait settings.
LifecycleOptions declaration
Section titled “LifecycleOptions declaration”interface LifecycleOptionsLifecycleOptions properties
Section titled “LifecycleOptions properties”| Name | Type | Description |
|---|---|---|
pollIntervalMs? |
number |
Polling interval in milliseconds. |
timeoutMs? |
number |
Request timeout in milliseconds. |
wait? |
boolean |
Whether to wait for the operation to become ready. |
WaitOptions
Section titled “WaitOptions”Polling and timeout settings for wait operations.
WaitOptions declaration
Section titled “WaitOptions declaration”interface WaitOptionsWaitOptions properties
Section titled “WaitOptions properties”| Name | Type | Description |
|---|---|---|
pollIntervalMs? |
number |
Polling interval in milliseconds. |
timeoutMs? |
number |
Request timeout in milliseconds. |
IngressSpec
Section titled “IngressSpec”Ingress protocol and runtime port mapping.
IngressSpec declaration
Section titled “IngressSpec declaration”interface IngressSpecIngressSpec properties
Section titled “IngressSpec properties”| Name | Type | Description |
|---|---|---|
protocol |
string |
Ingress protocol, such as tcp or http. |
runtimePort |
number |
Port exposed by the runtime. |
CreateRuntimeResourceRequests
Section titled “CreateRuntimeResourceRequests”Resource requests accepted while creating a runtime.
CreateRuntimeResourceRequests declaration
Section titled “CreateRuntimeResourceRequests declaration”interface CreateRuntimeResourceRequestsCreateRuntimeResourceRequests properties
Section titled “CreateRuntimeResourceRequests properties”| Name | Type | Description |
|---|---|---|
memoryMib? |
number |
Initial requested memory in MiB. |
vcpus? |
number |
Virtual CPU count. |
CreateRuntimeResources
Section titled “CreateRuntimeResources”Structured resource configuration accepted while creating a runtime.
CreateRuntimeResources declaration
Section titled “CreateRuntimeResources declaration”interface CreateRuntimeResourcesCreateRuntimeResources properties
Section titled “CreateRuntimeResources properties”| Name | Type | Description |
|---|---|---|
limits? |
RuntimeResourceLimits |
Maximum runtime resources. |
requests? |
CreateRuntimeResourceRequests |
Requested runtime resources. |
PatchRuntimeResourceRequests
Section titled “PatchRuntimeResourceRequests”Resource requests accepted while updating a runtime.
PatchRuntimeResourceRequests declaration
Section titled “PatchRuntimeResourceRequests declaration”interface PatchRuntimeResourceRequestsPatchRuntimeResourceRequests properties
Section titled “PatchRuntimeResourceRequests properties”| Name | Type | Description |
|---|---|---|
memoryMib? |
number |
Replacement requested memory in MiB. |
PatchRuntimeResources
Section titled “PatchRuntimeResources”Structured resource configuration accepted while updating a runtime.
PatchRuntimeResources declaration
Section titled “PatchRuntimeResources declaration”interface PatchRuntimeResourcesPatchRuntimeResources properties
Section titled “PatchRuntimeResources properties”| Name | Type | Description |
|---|---|---|
limits? |
RuntimeResourceLimits |
Maximum runtime resources. |
requests? |
PatchRuntimeResourceRequests |
Requested runtime resources. |
RuntimeResourceRequests
Section titled “RuntimeResourceRequests”Requested runtime memory and CPU allocation.
RuntimeResourceRequests declaration
Section titled “RuntimeResourceRequests declaration”interface RuntimeResourceRequestsRuntimeResourceRequests properties
Section titled “RuntimeResourceRequests properties”| Name | Type | Description |
|---|---|---|
memoryMib |
number |
Memory amount in MiB. |
vcpus |
number |
Virtual CPU count. |
RuntimeResourceLimits
Section titled “RuntimeResourceLimits”Maximum runtime memory allocation.
RuntimeResourceLimits declaration
Section titled “RuntimeResourceLimits declaration”interface RuntimeResourceLimitsRuntimeResourceLimits properties
Section titled “RuntimeResourceLimits properties”| Name | Type | Description |
|---|---|---|
memoryMib |
number |
Memory amount in MiB. |
RuntimeResources
Section titled “RuntimeResources”Effective runtime resource requests and limits.
RuntimeResources declaration
Section titled “RuntimeResources declaration”interface RuntimeResourcesRuntimeResources properties
Section titled “RuntimeResources properties”| Name | Type | Description |
|---|---|---|
limits |
RuntimeResourceLimits |
Maximum runtime resources. |
requests |
RuntimeResourceRequests |
Requested runtime resources. |
