Перейти к содержимому

Sandbox / SandboxMetricsOpts

Interface: SandboxMetricsOpts ​

Options for request to the Sandbox API.

Extends ​

Properties ​

apiHeaders? ​

optional apiHeaders?: Record<string, string>

Additional headers to send with AgentBox API requests.

Inherited from ​

SandboxForkOpts.apiHeaders


apiKey? ​

optional apiKey?: string

AgentBox API key to use for authentication.

Default ​

ts
AGENTBOX_API_KEY // environment variable

Inherited from ​

SandboxForkOpts.apiKey


domain? ​

optional domain?: string

Domain to use for the API.

Default ​

AGENTBOX_DOMAIN // environment variable or agentbox-runtime.ru

Inherited from ​

SandboxForkOpts.domain


end? ​

optional end?: Date

End time for the metrics, defaults to the current time


requestTimeoutMs? ​

optional requestTimeoutMs?: number

Timeout for requests to the API in milliseconds.

Default ​

ts
60_000 // 60 seconds

Inherited from ​

SandboxForkOpts.requestTimeoutMs


signal? ​

optional signal?: AbortSignal

An optional AbortSignal that can be used to cancel the in-flight request. When the signal is aborted, the underlying fetch is aborted and the returned promise rejects with an AbortError.

Inherited from ​

SandboxForkOpts.signal


start? ​

optional start?: Date

Start time for the metrics, defaults to the start of the sandbox