Record Class MetricsDTO

java.lang.Object
java.lang.Record
net.flectone.pulse.model.dto.MetricsDTO
Record Components:
serverUUID - the id identifying this install between reports
serverCore - the server software
serverVersion - the server version
osName - the operating system
osVersion - the operating system version
osArchitecture - the cpu architecture
javaVersion - the java version
cpuCores - how many cores the machine has
totalRAM - how much memory the machine has, in bytes
location - the server region
projectVersion - the plugin version
projectLanguage - the configured language
onlineMode - whether the server authenticates with Mojang
proxyMode - which proxy transport is in use
databaseMode - which database is in use
playerCount - how many players were online
modules - which modules are switched on
createdAt - when the report was taken

public record MetricsDTO(String serverUUID, String serverCore, String serverVersion, String osName, String osVersion, String osArchitecture, String javaVersion, int cpuCores, long totalRAM, String location, String projectVersion, String projectLanguage, String onlineMode, String proxyMode, String databaseMode, int playerCount, Map<String,String> modules, String createdAt) extends Record
One anonymous statistics report.
  • Constructor Details

    • MetricsDTO

      public MetricsDTO(String serverUUID, String serverCore, String serverVersion, String osName, String osVersion, String osArchitecture, String javaVersion, int cpuCores, long totalRAM, String location, String projectVersion, String projectLanguage, String onlineMode, String proxyMode, String databaseMode, int playerCount, Map<String,String> modules, String createdAt)
      Creates an instance of a MetricsDTO record class.
      Parameters:
      serverUUID - the value for the serverUUID record component
      serverCore - the value for the serverCore record component
      serverVersion - the value for the serverVersion record component
      osName - the value for the osName record component
      osVersion - the value for the osVersion record component
      osArchitecture - the value for the osArchitecture record component
      javaVersion - the value for the javaVersion record component
      cpuCores - the value for the cpuCores record component
      totalRAM - the value for the totalRAM record component
      location - the value for the location record component
      projectVersion - the value for the projectVersion record component
      projectLanguage - the value for the projectLanguage record component
      onlineMode - the value for the onlineMode record component
      proxyMode - the value for the proxyMode record component
      databaseMode - the value for the databaseMode record component
      playerCount - the value for the playerCount record component
      modules - the value for the modules record component
      createdAt - the value for the createdAt record component
  • Method Details

    • builder

      public static MetricsDTO.MetricsDTOBuilder builder()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • serverUUID

      public String serverUUID()
      Returns the value of the serverUUID record component.
      Returns:
      the value of the serverUUID record component
    • serverCore

      public String serverCore()
      Returns the value of the serverCore record component.
      Returns:
      the value of the serverCore record component
    • serverVersion

      public String serverVersion()
      Returns the value of the serverVersion record component.
      Returns:
      the value of the serverVersion record component
    • osName

      public String osName()
      Returns the value of the osName record component.
      Returns:
      the value of the osName record component
    • osVersion

      public String osVersion()
      Returns the value of the osVersion record component.
      Returns:
      the value of the osVersion record component
    • osArchitecture

      public String osArchitecture()
      Returns the value of the osArchitecture record component.
      Returns:
      the value of the osArchitecture record component
    • javaVersion

      public String javaVersion()
      Returns the value of the javaVersion record component.
      Returns:
      the value of the javaVersion record component
    • cpuCores

      public int cpuCores()
      Returns the value of the cpuCores record component.
      Returns:
      the value of the cpuCores record component
    • totalRAM

      public long totalRAM()
      Returns the value of the totalRAM record component.
      Returns:
      the value of the totalRAM record component
    • location

      public String location()
      Returns the value of the location record component.
      Returns:
      the value of the location record component
    • projectVersion

      public String projectVersion()
      Returns the value of the projectVersion record component.
      Returns:
      the value of the projectVersion record component
    • projectLanguage

      public String projectLanguage()
      Returns the value of the projectLanguage record component.
      Returns:
      the value of the projectLanguage record component
    • onlineMode

      public String onlineMode()
      Returns the value of the onlineMode record component.
      Returns:
      the value of the onlineMode record component
    • proxyMode

      public String proxyMode()
      Returns the value of the proxyMode record component.
      Returns:
      the value of the proxyMode record component
    • databaseMode

      public String databaseMode()
      Returns the value of the databaseMode record component.
      Returns:
      the value of the databaseMode record component
    • playerCount

      public int playerCount()
      Returns the value of the playerCount record component.
      Returns:
      the value of the playerCount record component
    • modules

      public Map<String,String> modules()
      Returns the value of the modules record component.
      Returns:
      the value of the modules record component
    • createdAt

      public String createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component