daemon_state

🟡 Incomplete

This API's output may have additions in the future.


Retrieve state about the status of festivald itself.

Inputs

None

Outputs

FieldTypeDescription
uptimeunsigned integerUptime of festivald in seconds
uptime_readablestringUptime of festivald in human-readable time (60 is 1 minute)
savingbooleanIf festivald is currently saving a recently created Collection to disk
total_requestsunsigned integerTotal amount of requests festivald has received since starting
total_connectionsunsigned integerTotal amount of connections festivald has received since starting
current_connectionsunsigned integerAmount of open connections festivald currently has
restbooleanIf this festivald's REST API is enabled
docsbooleanIf this festivald's documentation serving is enabled
direct_downloadbooleanIf this festivald's REST API has direct_download enabled
authorizationbooleanIf this festivald has authorization enabled
versionstringSemantic version of this festivald
commitstringGit commit of this festivald
osstringThe OS this festivald was built for

Example Request

festival-cli search_daemon
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"daemon_state"}'

Example Response

{
  "jsonrpc": "2.0",
  "result": {
    "uptime": 43,
    "uptime_readable": "43 seconds",
    "saving": false,
    "total_requests": 1447,
    "total_connections": 297,
    "current_connections": 3,
    "rest": true,
    "docs": true,
    "direct_download": false,
    "authorization": false,
    "version": "v1.0.0",
    "commit": "ae086becca9a603b53ded80de870794858c272d0",
    "os": "Linux x64"
  },
  "id": 0
}