// TODO 미사용시작
package com.kamco.cd.training.postgres.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.time.ZonedDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Entity
@Table(name = "system_metrics")
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SystemMetricsEntity {

  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer id;

  @Column(nullable = false)
  private ZonedDateTime timestamp;

  @Column(name = "server_name", nullable = false)
  private String serverName;

  @Column(name = "cpu_user")
  private Float cpuUser;

  @Column(name = "cpu_system")
  private Float cpuSystem;

  @Column(name = "cpu_iowait")
  private Float cpuIowait;

  @Column(name = "cpu_idle")
  private Float cpuIdle;

  @Column(name = "kbmemfree")
  private Long kbmemfree;

  @Column(name = "kbmemused")
  private Long kbmemused;

  @Column(name = "memused")
  private Float memused;
}
// TODO 미사용 끝
