stats: ensure repsc/repfc metrics are properly decoded

This commit is contained in:
ionutboangiu
2025-11-04 13:52:46 +02:00
committed by Dan Christian Bogos
parent 42b0ec3abe
commit 1cd4d07cc9

View File

@@ -545,6 +545,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])
}