package com.mini.capi.model.info;

import lombok.Data;

import java.io.Serializable;

@Data
public class ServerInfo implements Serializable {

    private String uptime;         // 主机运行时间
    private String os;             // 操作系统
    private String kernelVersion;  // 内核版本
    private String hostname;       // 主机名
    private String ipAddress;      // IP地址
    private String cpuModel;       // CPU型号
    private String memoryTotal;    // 内存总量

    public ServerInfo() {
    }

    public ServerInfo(String uptime, String os, String kernelVersion, String hostname, String ipAddress, String cpuModel, String memoryTotal) {
        this.uptime = uptime;
        this.os = os;
        this.kernelVersion = kernelVersion;
        this.hostname = hostname;
        this.ipAddress = ipAddress;
        this.cpuModel = cpuModel;
        this.memoryTotal = memoryTotal;
    }
}
