diff --git a/config/cdrstatsconfig.go b/config/cdrstatsconfig.go index bae761bfb..ea96360fb 100644 --- a/config/cdrstatsconfig.go +++ b/config/cdrstatsconfig.go @@ -23,9 +23,12 @@ import ( ) type CdrStatsConfig struct { - RatedCdrs bool // Build the stats for rated cdrs instead of raw ones - QueuedItems int64 // Number of items in the stats buffer - SetupInterval []time.Time // 2 or less items (>= start interval,< stop_interval) + Id string // Config id, unique per config instance + RatedCdrs bool // Build the stats for rated cdrs instead of raw ones + QueuedItems int64 // Number of items in the stats buffer + TimeWindow time.Duration // Will only keep the CDRs who's call setup time is not older than time.Now()-TimeWindow + ProcessedStats []string // ASR, ACD, ACC + SetupInterval []time.Time // 2 or less items (>= start interval,< stop_interval) TOR []string CdrHost []string CdrSource []string @@ -39,4 +42,14 @@ type CdrStatsConfig struct { UsageInterval []time.Duration // 2 or less items (>= Usage, =Cost,