提交 7d5d7913 编写于 作者: U Ulric Qin

support SUBTRACT

上级 4b3f1141
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册