Skip to content

Commit 227c714

Browse files
author
xiejingru
authored
add message type (#254)
1 parent 4f8c306 commit 227c714

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

spec/v1/message.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ const (
4343
MessageCommandLogs = "logs"
4444
// MessageCommandNodeLabel label the edge cluster nodes
4545
MessageCommandNodeLabel = "nodeLabel"
46+
// MessageCommandMultiNodeLabels label multiple nodes
47+
MessageCommandMultiNodeLabels = "multiNodeLabels"
4648
)
4749

4850
// Message general structure for http and ws sync

spec/v1/node.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ type Node struct {
6565
Accelerator string `json:"accelerator,omitempty" yaml:"accelerator,omitempty"`
6666
Mode SyncMode `json:"mode,omitempty" yaml:"mode,omitempty"`
6767
Cluster bool `json:"cluster,omitempty" yaml:"cluster,omitempty"`
68+
GPUMetrics bool `json:"gpuMetrics"`
6869
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty" validate:"omitempty,validLabels"`
6970
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"`
7071
Attributes map[string]interface{} `json:"attr,omitempty" yaml:"attr,omitempty"`
@@ -89,6 +90,7 @@ type NodeView struct {
8990
Description string `json:"description,omitempty" yaml:"description,omitempty"`
9091
Cluster bool `json:"cluster" yaml:"cluster"`
9192
Ready bool `json:"ready"`
93+
GPUMetrics bool `json:"gpuMetrics"`
9294
Mode SyncMode `json:"mode"`
9395
}
9496

0 commit comments

Comments
 (0)