Record Class MetricsDTO
java.lang.Object
java.lang.Record
net.flectone.pulse.model.dto.MetricsDTO
- Record Components:
serverUUID- the id identifying this install between reportsserverCore- the server softwareserverVersion- the server versionosName- the operating systemosVersion- the operating system versionosArchitecture- the cpu architecturejavaVersion- the java versioncpuCores- how many cores the machine hastotalRAM- how much memory the machine has, in byteslocation- the server regionprojectVersion- the plugin versionprojectLanguage- the configured languageonlineMode- whether the server authenticates with MojangproxyMode- which proxy transport is in usedatabaseMode- which database is in useplayerCount- how many players were onlinemodules- which modules are switched oncreatedAt- 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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMetricsDTO(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 aMetricsDTOrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricsDTO.MetricsDTOBuilderbuilder()intcpuCores()Returns the value of thecpuCoresrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedatabaseModerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thejavaVersionrecord component.location()Returns the value of thelocationrecord component.modules()Returns the value of themodulesrecord component.Returns the value of theonlineModerecord component.Returns the value of theosArchitecturerecord component.osName()Returns the value of theosNamerecord component.Returns the value of theosVersionrecord component.intReturns the value of theplayerCountrecord component.Returns the value of theprojectLanguagerecord component.Returns the value of theprojectVersionrecord component.Returns the value of theproxyModerecord component.Returns the value of theserverCorerecord component.Returns the value of theserverUUIDrecord component.Returns the value of theserverVersionrecord component.final StringtoString()Returns a string representation of this record class.longtotalRAM()Returns the value of thetotalRAMrecord component.
-
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 aMetricsDTOrecord class.- Parameters:
serverUUID- the value for theserverUUIDrecord componentserverCore- the value for theserverCorerecord componentserverVersion- the value for theserverVersionrecord componentosName- the value for theosNamerecord componentosVersion- the value for theosVersionrecord componentosArchitecture- the value for theosArchitecturerecord componentjavaVersion- the value for thejavaVersionrecord componentcpuCores- the value for thecpuCoresrecord componenttotalRAM- the value for thetotalRAMrecord componentlocation- the value for thelocationrecord componentprojectVersion- the value for theprojectVersionrecord componentprojectLanguage- the value for theprojectLanguagerecord componentonlineMode- the value for theonlineModerecord componentproxyMode- the value for theproxyModerecord componentdatabaseMode- the value for thedatabaseModerecord componentplayerCount- the value for theplayerCountrecord componentmodules- the value for themodulesrecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
serverUUID
Returns the value of theserverUUIDrecord component.- Returns:
- the value of the
serverUUIDrecord component
-
serverCore
Returns the value of theserverCorerecord component.- Returns:
- the value of the
serverCorerecord component
-
serverVersion
Returns the value of theserverVersionrecord component.- Returns:
- the value of the
serverVersionrecord component
-
osName
-
osVersion
-
osArchitecture
Returns the value of theosArchitecturerecord component.- Returns:
- the value of the
osArchitecturerecord component
-
javaVersion
Returns the value of thejavaVersionrecord component.- Returns:
- the value of the
javaVersionrecord component
-
cpuCores
-
totalRAM
-
location
-
projectVersion
Returns the value of theprojectVersionrecord component.- Returns:
- the value of the
projectVersionrecord component
-
projectLanguage
Returns the value of theprojectLanguagerecord component.- Returns:
- the value of the
projectLanguagerecord component
-
onlineMode
Returns the value of theonlineModerecord component.- Returns:
- the value of the
onlineModerecord component
-
proxyMode
-
databaseMode
Returns the value of thedatabaseModerecord component.- Returns:
- the value of the
databaseModerecord component
-
playerCount
public int playerCount()Returns the value of theplayerCountrecord component.- Returns:
- the value of the
playerCountrecord component
-
modules
-
createdAt
-