package com.tsi.comm.server.vo.mariadb;

import com.tsi.common.utils.TimeUtils;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public abstract class AbstractDbmsVo {

    public static final int DBMS_NODE_STATUS = 1;
    public static final int DBMS_TPMS_STAT_1S = 2;
    public static final int DBMS_KAFKA_TRANS_HS = 3;
    public static final int DBMS_ALARM_OCCR_HS = 4;
    public static final int DBMS_PROCESS_STATE = 5;
    public static final int DBMS_NODE_IP_UPDATE = 6;

    protected int dbmsType;
    protected String eventDt;
    protected long createTime;

    public AbstractDbmsVo(int dbmsType) {
        this.dbmsType = dbmsType;
        this.eventDt = TimeUtils.getCurrentTimeString();
        this.createTime = System.nanoTime();
    }

}
