Created
April 2, 2019 01:37
-
-
Save sendya/84a57a5255aac653083d36d4a525aa65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.tooko.talk.entity; | |
import java.math.BigDecimal; | |
import com.baomidou.mybatisplus.annotation.IdType; | |
import com.baomidou.mybatisplus.annotation.TableId; | |
import com.baomidou.mybatisplus.annotation.TableName; | |
import java.math.BigInteger; | |
import java.time.LocalDateTime; | |
import io.tooko.talk.entity.base.GenericEntity; | |
import com.baomidou.mybatisplus.annotation.TableField; | |
import lombok.*; | |
import lombok.experimental.Accessors; | |
/** | |
* | |
* | |
* @author Sendya | |
* @since 2019-01-13 | |
*/ | |
@Data | |
@Builder | |
@Getter | |
@Setter | |
@ToString | |
@TableName("t_server_agent_log") | |
@NoArgsConstructor | |
@AllArgsConstructor | |
public class ServerAgentLog extends GenericEntity<String> { | |
private static final long serialVersionUID = 1L; | |
@TableId(value = "id", type = IdType.UUID) | |
private String id; | |
/** | |
* Agent 监控脚本号 | |
*/ | |
private String agent; | |
private Integer connections; | |
/** | |
* CPU 核心数 | |
*/ | |
@TableField("cpu_core") | |
private Integer cpuCore; | |
/** | |
* CPU 频率 | |
*/ | |
@TableField("cpu_freq") | |
private Double cpuFreq; | |
/** | |
* CPU 名称 | |
*/ | |
@TableField("cpu_name") | |
private String cpuName; | |
@TableField("create_time") | |
private LocalDateTime createTime; | |
@TableField("disk_total") | |
private Long diskTotal; | |
@TableField("disk_usage") | |
private Long diskUsage; | |
/** | |
* 文件句柄数 | |
*/ | |
@TableField("file_handles") | |
private Integer fileHandles; | |
/** | |
* 文件句柄数最大值 | |
*/ | |
@TableField("file_handles_limit") | |
private Integer fileHandlesLimit; | |
private String ipv4; | |
private String ipv6; | |
/** | |
* 系统负载 1|5|15 分钟计 | |
*/ | |
private String load; | |
/** | |
* CPU 负载 | |
*/ | |
@TableField("load_cpu") | |
private Double loadCpu; | |
/** | |
* IO 负载 | |
*/ | |
@TableField("load_io") | |
private Double loadIo; | |
private String nic; | |
/** | |
* 系统位 | |
*/ | |
@TableField("os_arch") | |
private String osArch; | |
/** | |
* 系统内核 | |
*/ | |
@TableField("os_kernel") | |
private String osKernel; | |
/** | |
* 系统名称 | |
*/ | |
@TableField("os_name") | |
private String osName; | |
/** | |
* 进程数 | |
*/ | |
private Integer processes; | |
@TableField("ram_total") | |
private Long ramTotal; | |
@TableField("ram_usage") | |
private Long ramUsage; | |
private BigInteger rx; | |
@TableField("rx_gap") | |
private Integer rxGap; | |
/** | |
* 用户服务器ID | |
*/ | |
@TableField("server_id") | |
private Long serverId; | |
/** | |
* 会话数 | |
*/ | |
private Integer sessions; | |
@TableField("swap_total") | |
private Long swapTotal; | |
@TableField("swap_usage") | |
private Long swapUsage; | |
private BigInteger tx; | |
@TableField("tx_gap") | |
private Integer txGap; | |
/** | |
* 开机时长 | |
*/ | |
private Integer uptime; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment