ExDaytona.Api.System (ex_daytona v0.1.0)

Copy Markdown View Source

API calls for all endpoints tagged System.

Summary

Functions

Get sandbox resource metrics Latest CPU/memory/disk usage snapshot for the sandbox. cpuUsedPct is the average CPU usage as a percentage of the CPU limit over the last sample window (0 until the first sample completes). Byte fields are in bytes.

Functions

get_system_metrics(connection, opts \\ [])

@spec get_system_metrics(
  Tesla.Env.client(),
  keyword()
) :: {:ok, ExDaytona.Model.SystemMetrics.t()} | {:error, Tesla.Env.t()}

Get sandbox resource metrics Latest CPU/memory/disk usage snapshot for the sandbox. cpuUsedPct is the average CPU usage as a percentage of the CPU limit over the last sample window (0 until the first sample completes). Byte fields are in bytes.

Parameters

  • connection (ExDaytona.Connection): Connection to server
  • opts (keyword): Optional parameters

Returns

  • {:ok, ExDaytona.Model.SystemMetrics.t} on success
  • {:error, Tesla.Env.t} on failure