实现基础的统计指标

This commit is contained in:
刘祥超
2021-06-30 19:59:49 +08:00
parent 98a2d61fd1
commit 54dbe1f3e4
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
}