Skip to content

Dashboard Operation Related Models

class SystemUser(BaseModel)

System user information.

Field NameTypeDescription
uidintUser ID (UID)
gidintUser group ID (GID)
usernamestrUsername
homedirstrUser home directory
shellstr | NoneDefault shell interpreter

class SystemInfo(BaseModel)

System basic information.

Field NameTypeDescription
userSystemUserInformation of the currently logged-in user
timeintCurrent system time (Unix timestamp)
totalmemintTotal system memory size (unit: bytes)
freememintFree system memory size (unit: bytes)
typestrOperating system type, e.g., Windows_NT
versionstrOperating system version
nodestrNode.js version on the system
hostnamestrHostname
loadavgtuple[float, float, float]System load average (past 1, 5, 15 minutes)
platformstrOperating system platform, e.g., win32
releasestrSystem release version
uptimefloatSystem uptime (unit: seconds)
cpufloatCurrent CPU usage rate (unit: %)

class RecordInfo(BaseModel)

Security record information.

Field NameTypeDescription
loginedintNumber of successful logins
illegalAccessintNumber of illegal access attempts
banipsintNumber of banned IP addresses
loginFailedintNumber of failed login attempts

class RequestChart(BaseModel)

Application instance operation and API request volume trends.

Field NameTypeDescription
valueintNumber of API requests
totalInstanceintTotal number of instances
runningInstanceintNumber of running instances

class ChartInfo(BaseModel)

Chart data information.

Field NameTypeDescription
systemlist[CpuMemChart]Trends of system resource usage
requestlist[RequestChart]Trends of application instance operation and API request volume

class RemoteCountInfo(BaseModel)

Remote node count statistics information.

Field NameTypeDescription
totalintTotal number of remote nodes
availableintNumber of available remote nodes

Dashboard Operation Related Models

class OverviewModel(BaseModel)

System overview information.

Field NameTypeDescription
versionstrCurrent panel version
specifiedDaemonVersionstrSpecified remote node version
systemSystemInfoSystem information
recordRecordInfoSecurity access records
processProcessInfoProcess status information
chartChartInfoSystem and request statistics charts data
remoteCountRemoteCountInfoRemote node count statistics information
remotelist[DaemonModel]Remote node detailed information

Log Operation Related

class LogType(Enum)

Log operation types.

Enumerated ValueEnumerated ValueDescription
SYSTEM_CONFIG_CHANGEsystem_config_changeSystem configuration modification
USER_LOGINuser_loginUser login
USER_CONFIG_CHANGEuser_config_changeUser configuration modification
USER_DELETEuser_deleteUser deletion
USER_CREATEuser_createUser creation
DAEMON_CONFIG_CHANGEdaemon_config_changeNode configuration modification
DAEMON_REMOVEdaemon_removeNode removal
DAEMON_CREATEdaemon_createNode creation
INSTANCE_TASK_DELETEinstance_task_deleteInstance task deletion
INSTANCE_TASK_CREATEinstance_task_createInstance task creation
INSTANCE_FILE_DELETEinstance_file_deleteInstance file deletion
INSTANCE_FILE_DOWNLOADinstance_file_downloadInstance file download
INSTANCE_FILE_UPDATEinstance_file_updateInstance file update
INSTANCE_FILE_UPLOADinstance_file_uploadInstance file upload
INSTANCE_DELETEinstance_deleteInstance deletion
INSTANCE_CREATEinstance_createInstance creation
INSTANCE_CONFIG_CHANGEinstance_config_changeInstance configuration modification
INSTANCE_KILLinstance_killInstance forced termination
INSTANCE_UPDATEinstance_updateInstance update
INSTANCE_RESTARTinstance_restartInstance restart
INSTANCE_STOPinstance_stopInstance stop
INSTANCE_STARTinstance_startInstance start

class LogDetail(BaseModel)

Operation log details.

Field NameTypeDescription
operation_idstrOperator's UUID
operator_namestr | NoneOperator's username
operation_timestrOperation time (Unix timestamp)
operator_ipstrOperator's IP address (format: ipv6:ipv4)
operation_levelLiteral[info, warning, error, unknown]Log level
typeLogTypeOperation type
instance_namestrInstance name (only exists in instance events)
instance_idstrInstance ID (only exists in instance events)
daemon_idstrDaemon ID (only exists in instance and node events)
login_resultboolLogin result (only exists in login events)
filelist[str] | strOperated file (only exists in file operation events)
task_namestrTask name (only exists in task operation events)

Released under the MIT License.