Package com.bytedesk.core.server
Class ServerEntity
java.lang.Object
com.bytedesk.core.base.BaseEntityNoOrg
com.bytedesk.core.server.ServerEntity
- All Implemented Interfaces:
Serializable
Server entity for monitoring server resources and status
Provides server monitoring functionality for system administration
Database Table: bytedesk_core_server
Purpose: Stores server information, resource usage, and monitoring data
Note: Only super administrators can access server monitoring data
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Application versionprivate Double
Alert threshold for CPU usageprivate Double
CPU usage percentage (0-100)private String
Server descriptionprivate Double
Alert threshold for disk usageprivate Double
Disk usage percentage (0-100)private String
Environment (DEV, TEST, PROD, etc.)private String
Java version (if applicable)private ZonedDateTime
Last heartbeat timeprivate String
Server location or data centerprivate Double
Alert threshold for memory usageprivate Double
Memory usage percentage (0-100)private Boolean
Monitoring enabled flagprivate String
Operating system informationprivate String
Server IP addressprivate String
Server hostname or identifierprivate Integer
Server port (if applicable)private ZonedDateTime
Server start timeprivate String
Server status (ONLINE, OFFLINE, MAINTENANCE, etc.)private Long
Total disk space in GBprivate Long
Total memory in MBprivate String
Server type (APPLICATION, DATABASE, CACHE, etc.)private Long
Server uptime in secondsprivate Long
Used disk space in GBprivate Long
Used memory in MB -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseEntityNoOrg
getCreatedAtString, getUpdatedAtString
-
Field Details
-
serverName
Server hostname or identifier -
serverIp
Server IP address -
type
Server type (APPLICATION, DATABASE, CACHE, etc.) -
status
Server status (ONLINE, OFFLINE, MAINTENANCE, etc.) -
description
Server description -
cpuUsage
CPU usage percentage (0-100) -
memoryUsage
Memory usage percentage (0-100) -
totalMemoryMb
Total memory in MB -
usedMemoryMb
Used memory in MB -
diskUsage
Disk usage percentage (0-100) -
totalDiskGb
Total disk space in GB -
usedDiskGb
Used disk space in GB -
uptimeSeconds
Server uptime in seconds -
startTime
Server start time -
lastHeartbeat
Last heartbeat time -
serverPort
Server port (if applicable) -
osInfo
Operating system information -
javaVersion
Java version (if applicable) -
appVersion
Application version -
environment
Environment (DEV, TEST, PROD, etc.) -
location
Server location or data center -
monitoringEnabled
Monitoring enabled flag -
cpuAlertThreshold
Alert threshold for CPU usage -
memoryAlertThreshold
Alert threshold for memory usage -
diskAlertThreshold
Alert threshold for disk usage
-
-
Constructor Details
-
ServerEntity
public ServerEntity()
-