You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This protocol defines the communication mechanism between a client and server for monitoring system information. The server runs on a specified port and is protected by a password. The client sends a GET request to the server's /api endpoint, providing the password as an authentication header. The expected response is a JSON object containing various system metrics.
Server Configuration
Port Configuration: The server runs on port 3040 by default, but it can be configured using the PORT environment variable.
Password Protection: The server is protected by a password, and the password is set using the PASSWORD environment variable.
API Endpoint
Endpoint:/api
Method: GET
Authentication: Password provided in the Authorization header.
Expected Response
The server responds with a JSON object containing the following system metrics:
Response Fields
Response Fields
software
version: String representing the server software version.
server
id: String identifying the server.
uptime: Integer representing the server uptime in seconds.
hostname: String representing the server hostname.
cpu
usage: Integer representing the CPU usage percentage.
arch: String representing the CPU architecture.
model: String representing the CPU model.
ram
percent: Integer representing the percentage of RAM used.
free: Integer representing available RAM in kilobytes.
max: Integer representing the maximum amount of RAM in kilobytes.
os
type: String representing the operating system type.
platform: String representing the operating system platform.
version: String representing the operating system version.
release: String representing the operating system release version.
The response field was updated to organize the information into more specific categories, such as software, server, cpu, ram, and os, providing a clearer representation of the server's response
The protocol draft has been reviewed and accepted, as such client and server implementations will have to follow the new protocol specification. If further discussion is needed, this issue will be reopened.
This protocol defines the communication mechanism between a client and server for monitoring system information. The server runs on a specified port and is protected by a password. The client sends a GET request to the server's
/api
endpoint, providing the password as an authentication header. The expected response is a JSON object containing various system metrics.Server Configuration
Port Configuration: The server runs on port 3040 by default, but it can be configured using the
PORT
environment variable.Password Protection: The server is protected by a password, and the password is set using the
PASSWORD
environment variable.API Endpoint
/api
Authorization
header.Expected Response
The server responds with a JSON object containing the following system metrics:
Response Fields
Response Fields
software
version
: String representing the server software version.server
id
: String identifying the server.uptime
: Integer representing the server uptime in seconds.hostname
: String representing the server hostname.cpu
usage
: Integer representing the CPU usage percentage.arch
: String representing the CPU architecture.model
: String representing the CPU model.ram
percent
: Integer representing the percentage of RAM used.free
: Integer representing available RAM in kilobytes.max
: Integer representing the maximum amount of RAM in kilobytes.os
type
: String representing the operating system type.platform
: String representing the operating system platform.version
: String representing the operating system version.release
: String representing the operating system release version.Example Usage
Request
Response
The text was updated successfully, but these errors were encountered: