Callaba
Callaba home

Additional utilities

Use these methods to inspect an Engine instance, measure current network throughput, look up its detected location, or clear collected error logs.

getLocation is public. getStat, speedTest, and clearErrorLogs require x-access-token.

Operational boundaries

Run a speed test outside a live production window: it measures the current path and can compete with live traffic. Location is an operational hint, not precise physical geolocation. Clearing error logs is irreversible; retain evidence needed for support before calling it.

4 endpoints
POST
/api/utils/getStat
API token required

Use this method for a fast instance-health snapshot. It is the quickest way to see CPU, RAM, disk, public version context, and accumulated process or SRT errors before the team goes deeper into module-specific debugging.

Request body parameters
This method has no parameters
Get utility stat
curl --request POST \
  --url http://localhost/api/utils/getStat \
  --header 'x-access-token: <your_api_token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
Response
Machine health
cpuUsage / drive / RAM
mixed
Copy direct link

Current CPU, disk, and memory snapshot for the engine host.

Versioning
publicVersion
array
Copy direct link

Published version metadata used by the dashboard to compare the local build with available public versions.

Error visibility
srtErrors / processErrors
array
Copy direct link

Current accumulated SRT and process-error sets that operations can review before clearing them.

Operation result
success
boolean
Copy direct link

Successful responses expose success: true.

Response: Get utility stat
{
  "cpuUsage": 12.4,
  "drive": {
    "totalGb": "250.00",
    "usedGb": "81.00",
    "usedPercentage": "32.4"
  },
  "RAM": {
    "totalMemMb": 16384,
    "usedMemMb": 6240,
    "usedMemPercentage": 38.1
  },
  "publicVersion": [
    {
      "version_name": "stable",
      "version_number": "8.2"
    }
  ],
  "srtErrors": [],
  "processErrors": [],
  "success": true
}
POST
/api/utils/speedTest
API token required
POST
/api/utils/clearErrorLogs
API token required
POST
/api/utils/getLocation
Public endpoint
Workflow examples and help
REST solution recipe

Preflight an instance network before a live event

Resolve the public location signal and run a speed test as one part of deployment validation before connecting live sources.

  1. Confirm public locationUse the resolved address data to catch an unexpected deployment region.POST /api/utils/getLocation
  2. Run the preflight testRecord the result beside the real SRT or RTMP path test.POST /api/utils/speedTest

A speed test is a point-in-time signal, not a capacity guarantee. Validate sustained throughput, packet loss, latency, and the real media path.

Ask AI