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