mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-03 15:00:27 +08:00
13 lines
219 B
Go
13 lines
219 B
Go
package models
|
|
|
|
import "encoding/json"
|
|
|
|
// DecodeKeys 解析Key
|
|
func (this *MetricStat) DecodeKeys() []string {
|
|
var result []string
|
|
if len(this.Keys) > 0 {
|
|
_ = json.Unmarshal(this.Keys, &result)
|
|
}
|
|
return result
|
|
}
|