Package com.nnamo.models
Class RealtimeMetricModel
java.lang.Object
com.nnamo.models.RealtimeMetricModel
Represents a real-time metric entry, including type, value, and creation
timestamp.
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructor required by OrmLite.RealtimeMetricModel
(RealtimeMetricType type, int value, LocalDateTime createdAt) Constructs a RealtimeMetricModel with the specified type, value, and creation time. -
Method Summary
-
Constructor Details
-
RealtimeMetricModel
public RealtimeMetricModel()Empty constructor required by OrmLite. -
RealtimeMetricModel
Constructs a RealtimeMetricModel with the specified type, value, and creation time.- Parameters:
type
- the metric typevalue
- the metric valuecreatedAt
- the creation time as LocalDateTime
-
-
Method Details
-
getId
public int getId()Gets the unique identifier for the metric entry.- Returns:
- the metric ID
-
getType
Gets the type of the metric.- Returns:
- the metric type
-
getValue
public int getValue()Gets the value of the metric.- Returns:
- the metric value
-
getCreatedAt
Gets the creation timestamp of the metric.- Returns:
- the creation date
-