stats: ensure repsc/repfc metrics are properly decoded

This commit is contained in:
ionutboangiu
2025-08-06 09:28:41 +03:00
committed by Dan Christian Bogos
parent ce04c7e5eb
commit 392c5d3408

View File

@@ -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])
}