mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 17:40:24 +08:00
21 lines
483 B
Go
21 lines
483 B
Go
package metrics
|
|
|
|
// MetricKey 指标键值
|
|
type MetricKey struct {
|
|
Id uint64 `field:"id"` // ID
|
|
ItemId uint64 `field:"itemId"` // 指标ID
|
|
Value string `field:"value"` // 值
|
|
Hash string `field:"hash"` // 对值进行Hash
|
|
}
|
|
|
|
type MetricKeyOperator struct {
|
|
Id interface{} // ID
|
|
ItemId interface{} // 指标ID
|
|
Value interface{} // 值
|
|
Hash interface{} // 对值进行Hash
|
|
}
|
|
|
|
func NewMetricKeyOperator() *MetricKeyOperator {
|
|
return &MetricKeyOperator{}
|
|
}
|