Class ServerStatsData

java.lang.Object
com.morpheusdata.model.ServerStatsData

public class ServerStatsData extends Object
Representation of server statistics data for a specific point in time. Used to track historical metrics for compute servers including CPU, memory, and storage usage. This is a POJO (Plain Old Java Object) that encapsulates the server metrics data.
Since:
1.2.14
  • Field Details

    • id

      protected Long id
    • date

      protected Date date
    • usedMemory

      protected Long usedMemory
    • maxMemory

      protected Long maxMemory
    • freeMemory

      protected Long freeMemory
    • maxStorage

      protected Long maxStorage
    • usedStorage

      protected Long usedStorage
    • freeStorage

      protected Long freeStorage
    • cpuUsage

      protected Float cpuUsage
    • running

      protected Boolean running
  • Constructor Details

    • ServerStatsData

      public ServerStatsData()
      Default constructor
  • Method Details

    • getId

      public Long getId()
      Get the compute server ID
      Returns:
      the server ID
    • setId

      public void setId(Long id)
      Set the compute server ID
      Parameters:
      id - the server ID
    • getDate

      public Date getDate()
      Get the timestamp for this stats data point
      Returns:
      the date/time of the stats
    • setDate

      public void setDate(Date date)
      Set the timestamp for this stats data point
      Parameters:
      date - the date/time of the stats
    • getUsedMemory

      public Long getUsedMemory()
      Get the used memory in bytes
      Returns:
      used memory in bytes
    • setUsedMemory

      public void setUsedMemory(Long usedMemory)
      Set the used memory in bytes
      Parameters:
      usedMemory - used memory in bytes
    • getMaxMemory

      public Long getMaxMemory()
      Get the maximum memory available in bytes
      Returns:
      max memory in bytes
    • setMaxMemory

      public void setMaxMemory(Long maxMemory)
      Set the maximum memory available in bytes
      Parameters:
      maxMemory - max memory in bytes
    • getFreeMemory

      public Long getFreeMemory()
      Get the free memory in bytes
      Returns:
      free memory in bytes
    • setFreeMemory

      public void setFreeMemory(Long freeMemory)
      Set the free memory in bytes
      Parameters:
      freeMemory - free memory in bytes
    • getMaxStorage

      public Long getMaxStorage()
      Get the maximum storage available in bytes
      Returns:
      max storage in bytes
    • setMaxStorage

      public void setMaxStorage(Long maxStorage)
      Set the maximum storage available in bytes
      Parameters:
      maxStorage - max storage in bytes
    • getUsedStorage

      public Long getUsedStorage()
      Get the used storage in bytes
      Returns:
      used storage in bytes
    • setUsedStorage

      public void setUsedStorage(Long usedStorage)
      Set the used storage in bytes
      Parameters:
      usedStorage - used storage in bytes
    • getFreeStorage

      public Long getFreeStorage()
      Get the free storage in bytes
      Returns:
      free storage in bytes
    • setFreeStorage

      public void setFreeStorage(Long freeStorage)
      Set the free storage in bytes
      Parameters:
      freeStorage - free storage in bytes
    • getCpuUsage

      public Float getCpuUsage()
      Get the CPU usage as a percentage (0-100)
      Returns:
      CPU usage percentage
    • setCpuUsage

      public void setCpuUsage(Float cpuUsage)
      Set the CPU usage as a percentage (0-100)
      Parameters:
      cpuUsage - CPU usage percentage
    • getRunning

      public Boolean getRunning()
      Get whether the server is running
      Returns:
      true if the server is running, false otherwise
    • setRunning

      public void setRunning(Boolean running)
      Set whether the server is running
      Parameters:
      running - true if the server is running, false otherwise