support SUBTRACT
This commit is contained in:
parent
4b3f11418e
commit
7d5d791376
|
@ -87,7 +87,7 @@ func (m *MetricValue) CheckValidity(now int64) (err error) {
|
|||
m.CounterType = GAUGE
|
||||
}
|
||||
|
||||
if m.CounterType != GAUGE && m.CounterType != COUNTER {
|
||||
if m.CounterType != GAUGE && m.CounterType != COUNTER && m.CounterType != SUBTRACT {
|
||||
err = fmt.Errorf("wrong counter type")
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue