Record Class MetricsDTO
java.lang.Object
java.lang.Record
net.flectone.pulse.model.dto.MetricsDTO
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
-
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
Returns the value of theosNamerecord component.- Returns:
- the value of the
osNamerecord component
-
osVersion
Returns the value of theosVersionrecord component.- Returns:
- the value of the
osVersionrecord component
-
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
public int cpuCores()Returns the value of thecpuCoresrecord component.- Returns:
- the value of the
cpuCoresrecord component
-
totalRAM
public long totalRAM()Returns the value of thetotalRAMrecord component.- Returns:
- the value of the
totalRAMrecord component
-
location
Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord component
-
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
Returns the value of theproxyModerecord component.- Returns:
- the value of the
proxyModerecord component
-
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
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-