feat: train record session.
This commit is contained in:
@@ -34,6 +34,7 @@ type trainingSessionPayload struct {
|
||||
Type string `json:"type"`
|
||||
EventType string `json:"eventType"`
|
||||
TestID string `json:"testId"`
|
||||
TrainId string `json:"trainId"`
|
||||
RegionID string `json:"regionId"`
|
||||
Flavor string `json:"flavor"`
|
||||
AppName string `json:"appName"`
|
||||
@@ -400,6 +401,7 @@ func buildTrainingSessionRecord(topic string, payload []byte, now int64) (*model
|
||||
FlavorType: flavorType,
|
||||
RawFlavor: event.Flavor,
|
||||
AppName: event.AppName,
|
||||
TrainId: event.TrainId,
|
||||
PublishedAt: publishedAt,
|
||||
ReceivedAt: now,
|
||||
RawPayload: string(payload),
|
||||
|
||||
Reference in New Issue
Block a user