mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-02-03 05:55:51 +08:00
阶段性提交
This commit is contained in:
22
internal/db/models/node_cluster_metric_item_model.go
Normal file
22
internal/db/models/node_cluster_metric_item_model.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package models
|
||||
|
||||
// NodeClusterMetricItem 集群使用的指标
|
||||
type NodeClusterMetricItem struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
IsOn uint8 `field:"isOn"` // 是否启用
|
||||
ClusterId uint32 `field:"clusterId"` // 集群ID
|
||||
ItemId uint64 `field:"itemId"` // 指标ID
|
||||
State uint8 `field:"state"` // 是否启用
|
||||
}
|
||||
|
||||
type NodeClusterMetricItemOperator struct {
|
||||
Id interface{} // ID
|
||||
IsOn interface{} // 是否启用
|
||||
ClusterId interface{} // 集群ID
|
||||
ItemId interface{} // 指标ID
|
||||
State interface{} // 是否启用
|
||||
}
|
||||
|
||||
func NewNodeClusterMetricItemOperator() *NodeClusterMetricItemOperator {
|
||||
return &NodeClusterMetricItemOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user