package com.eactive.eai.rms.data.entity.onl.statistics;


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.Comment;

import com.eactive.eai.data.entity.AbstractEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;


@Data
@EqualsAndHashCode(onlyExplicitlyIncluded = true, callSuper = true)

@Entity
@Table(name = "tseaist05")
@org.hibernate.annotations.Table(appliesTo = "tseaist05", comment = "시스템성능통계")
public class SystemPerformanceStatistics extends AbstractEntity<String>
						implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(unique = true, nullable = false, length = 16)
	private String statcgathrhms;

	@Column(precision = 10)
	@Comment("시스템 전체 cpu 사용률")
	private Long cpusysuseval;

	@Column(precision = 10)
	@Comment("사용자 cpu 사용률")
	private Long cpuuseruseval;

	@Column(precision = 10)
	@Comment("cup 대기시간")
	private Long cpuwaitval;

	@Column(length = 20)
	@Comment("서버인스턴스명")
	private String eaisevrinstncname;

	@Column(precision = 10)
	@Comment("메모리 총용량")
	private Long mmryinspcval;

	@Column(precision = 10)
	@Comment("메모리 캐시 데이터의양")
	private Long mmryitrchval;

	@Column(precision = 10)
	@Comment("메모리 사용가능양")
	private Long mmryretunval;


	@Override
	public @NonNull String getId() {
		return statcgathrhms;
	}
}