Class RealtimeMetricModel

java.lang.Object
com.nnamo.models.RealtimeMetricModel

public class RealtimeMetricModel extends Object
Represents a real-time metric entry, including type, value, and creation timestamp.
  • Constructor Details

    • RealtimeMetricModel

      public RealtimeMetricModel()
      Empty constructor required by OrmLite.
    • RealtimeMetricModel

      public RealtimeMetricModel(RealtimeMetricType type, int value, LocalDateTime createdAt)
      Constructs a RealtimeMetricModel with the specified type, value, and creation time.
      Parameters:
      type - the metric type
      value - the metric value
      createdAt - the creation time as LocalDateTime
  • Method Details

    • getId

      public int getId()
      Gets the unique identifier for the metric entry.
      Returns:
      the metric ID
    • getType

      public RealtimeMetricType 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

      public Date getCreatedAt()
      Gets the creation timestamp of the metric.
      Returns:
      the creation date