Compare commits

...

2 Commits

Author SHA1 Message Date
79bea9002e Added index to requested_at amendments 2025-10-24 09:27:34 +11:00
0e72fa1355 Added Metrics model 2025-10-23 18:04:48 +11:00
2 changed files with 24 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ type DBAmendment struct {
AmendmentColumn string AmendmentColumn string
AmendmentValue string AmendmentValue string
Requestor string Requestor string
RequestedAt time.Time RequestedAt time.Time `gorm:"index"`
Sequence string Sequence string
} }

View File

@@ -105,3 +105,26 @@ type Breakdown struct {
func (Breakdown) TableName() string { func (Breakdown) TableName() string {
return "gc_call_breakdown" return "gc_call_breakdown"
} }
type CallMetrics struct {
ClientConversationId string `gorm:"primaryKey;index"`
//
TotalDuration int
TotalClientResponseDuration int
TotalSystemDuration int
TotalTalkDuration int
//
AgentAlertDuration int
AgentHoldDuration int
AgentTalkDuration int
//
SearchingDuration int
ConfigurationDuration int
QueueDuration int
//
Metadata *string `gorm:"type:json"`
}
func (CallMetrics) TableName() string {
return "gc_call_metrics"
}