mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-09-29 07:56:37 +08:00
57 lines
1.0 KiB
Java
57 lines
1.0 KiB
Java
package com.admin.common.dto;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
|
import lombok.Data;
|
|
|
|
/**
|
|
* 系统信息DTO
|
|
* 对应Go客户端上报的系统信息结构
|
|
*/
|
|
@Data
|
|
public class SystemInfoDto {
|
|
|
|
/**
|
|
* 主机IP地址
|
|
*/
|
|
@JsonProperty("host_ip")
|
|
private String hostIp;
|
|
|
|
/**
|
|
* 开机时间(秒)
|
|
*/
|
|
@JsonProperty("uptime")
|
|
private Long uptime;
|
|
|
|
/**
|
|
* 接收字节数
|
|
*/
|
|
@JsonProperty("bytes_received")
|
|
private Long bytesReceived;
|
|
|
|
/**
|
|
* 发送字节数
|
|
*/
|
|
@JsonProperty("bytes_transmitted")
|
|
private Long bytesTransmitted;
|
|
|
|
/**
|
|
* CPU使用率(百分比)
|
|
*/
|
|
@JsonProperty("cpu_usage")
|
|
private Double cpuUsage;
|
|
|
|
/**
|
|
* 内存使用率(百分比)
|
|
*/
|
|
@JsonProperty("memory_usage")
|
|
private Double memoryUsage;
|
|
|
|
/**
|
|
* 上报时间戳
|
|
*/
|
|
private Long timestamp;
|
|
|
|
public SystemInfoDto() {
|
|
this.timestamp = System.currentTimeMillis();
|
|
}
|
|
} |