实现基础的统计指标

This commit is contained in:
GoEdgeLab
2021-06-30 19:59:49 +08:00
parent 799aa13e37
commit d04e3e4f39
22 changed files with 429 additions and 117 deletions

View File

@@ -0,0 +1,12 @@
package models
import "encoding/json"
// DecodeKeys 解析Key
func (this *MetricStat) DecodeKeys() []string {
var result []string
if len(this.Keys) > 0 {
_ = json.Unmarshal([]byte(this.Keys), &result)
}
return result
}