Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8d857e82e | |||
| ab6b36c12c | |||
| f69b849ed7 |
@@ -7,7 +7,8 @@ type DBQueueLog struct {
|
||||
ConversationId string `gorm:"primaryKey"`
|
||||
Start time.Time `gorm:"index"`
|
||||
End time.Time `gorm:"index"`
|
||||
Result string `gorm:"type:json"`
|
||||
Duration float64
|
||||
Result string `gorm:"type:json"`
|
||||
}
|
||||
|
||||
func (DBQueueLog) TableName() string {
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
package models
|
||||
|
||||
type AnalyticsConversationWithAttributesQuery struct {
|
||||
Conversations []AnalyticsConversationWithAttributes `json:"conversations"`
|
||||
Cursor *string `json:"cursor"`
|
||||
}
|
||||
|
||||
type AnalyticsConversationWithAttributes struct {
|
||||
ConversationEnd string `json:"conversationEnd"`
|
||||
ConversationId string `json:"conversationId"`
|
||||
|
||||
@@ -78,7 +78,7 @@ func ExtractWithoutAttributes(base models.AnalyticsConversationWithoutAttributes
|
||||
Direction: sess.Direction,
|
||||
Dnis: sess.DNIS,
|
||||
EdgeId: sess.EdgeId,
|
||||
Id: sess.SessionId,
|
||||
Id: fmt.Sprintf("%s_%s", p.ParticipantId, sess.SessionId),
|
||||
MediaEndpointStats: string(mediaEndpointStatsBytes),
|
||||
MediaType: sess.MediaType,
|
||||
Metrics: string(metricsBytes),
|
||||
@@ -336,7 +336,7 @@ func ExtractWithAttributes(base models.AnalyticsConversationWithAttributes) (mod
|
||||
Direction: sess.Direction,
|
||||
Dnis: sess.DNIS,
|
||||
EdgeId: sess.EdgeId,
|
||||
Id: sess.SessionId,
|
||||
Id: fmt.Sprintf("%s_%s", p.ParticipantId, sess.SessionId),
|
||||
MediaEndpointStats: string(mediaEndpointStatsBytes),
|
||||
MediaType: sess.MediaType,
|
||||
Metrics: string(metricsBytes),
|
||||
|
||||
Reference in New Issue
Block a user