Class AnalyticsRecord

java.lang.Object
com.tccc.kos.core.service.analytics.AnalyticsRecord

public class AnalyticsRecord extends Object
Represents an internal form of an analytics event used for classification and database storage. When an event is first recorded using the AnalyticsService, it exists as an AnalyticsEvent. It is then converted into an AnalyticsRecord, which is passed to AnalyticsClassifier to link the event to the correct channels. The event data in this class is stored as escaped JSON, making it suitable for safe storage and internal processing before export.

This contains similar data to AnalyticsExportBean but has different JSON serialization characteristics which incorporates data as escaped JSON instead of inline JSON, making it better for internal storage.

Version:
2024-03-12
  • Constructor Details

    • AnalyticsRecord

      public AnalyticsRecord()
  • Method Details

    • getNodeId

      public String getNodeId()
    • getTimestamp

      public String getTimestamp()
    • getType

      public String getType()
    • getData

      public String getData()
    • getTimestampMs

      public Long getTimestampMs()
    • getPriority

      public Integer getPriority()
    • setNodeId

      public void setNodeId(String nodeId)
    • setTimestamp

      public void setTimestamp(String timestamp)
    • setType

      public void setType(String type)
    • setData

      public void setData(String data)
    • setTimestampMs

      public void setTimestampMs(Long timestampMs)
    • setPriority

      public void setPriority(Integer priority)