mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
stats: ensure repsc/repfc metrics are properly decoded
This commit is contained in:
committed by
Dan Christian Bogos
parent
ce04c7e5eb
commit
392c5d3408
@@ -570,6 +570,10 @@ func (sq *StatQueue) UnmarshalJSON(data []byte) (err error) {
|
||||
metric = new(StatHighest)
|
||||
case utils.MetaLowest:
|
||||
metric = new(StatLowest)
|
||||
case utils.MetaREPSC:
|
||||
metric = new(StatREPSC)
|
||||
case utils.MetaREPFC:
|
||||
metric = new(StatREPFC)
|
||||
default:
|
||||
return fmt.Errorf("unsupported metric type <%s>", metricSplit[0])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user