Skip to content

Commit fbe7051

Browse files
committed
Cube: changed node & group name
Signed-off-by: Vishal Rana <[email protected]>
1 parent 0588dd1 commit fbe7051

File tree

4 files changed

+8
-167
lines changed

4 files changed

+8
-167
lines changed

barcode.go

Lines changed: 0 additions & 62 deletions
This file was deleted.

cube.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ type (
2525
// LabStack API key
2626
APIKey string
2727

28-
// API node
29-
Node string
28+
// Node name
29+
NodeName string
3030

31-
// API group
32-
Group string
31+
// Node group
32+
NodeGroup string
3333

3434
// Tags
3535
Tags []string
@@ -48,8 +48,6 @@ type (
4848
Request struct {
4949
ID string `json:"id"`
5050
Time time.Time `json:"time"`
51-
Node string `json:"node"`
52-
Group string `json:"group"`
5351
Tags []string `json:"tags,omitempty"`
5452
Host string `json:"host"`
5553
Path string `json:"path"`
@@ -64,6 +62,8 @@ type (
6462
Active int64 `json:"active"`
6563
Error string `json:"error"`
6664
StackTrace string `json:"stack_trace"`
65+
NodeName string `json:"node_name"`
66+
NodeGroup string `json:"node_group"`
6767
Uptime int64 `json:"uptime"`
6868
CPUPercent float32 `json:"cpu_percent"`
6969
MemoryPercent float32 `json:"memory_percent"`
@@ -142,14 +142,14 @@ func (c *Cube) Start(r *http.Request, w http.ResponseWriter) (req *Request) {
142142
req = &Request{
143143
ID: RequestID(r, w),
144144
Time: time.Now(),
145-
Node: c.Node,
146-
Group: c.Group,
147145
Tags: c.Tags,
148146
Host: r.Host,
149147
Path: r.URL.Path,
150148
Method: r.Method,
151149
UserAgent: r.UserAgent(),
152150
RemoteIP: RealIP(r),
151+
NodeName: c.NodeName,
152+
NodeGroup: c.NodeGroup,
153153
Uptime: time.Now().Unix() - start/1000,
154154
CPUPercent: float32(cpu),
155155
MemoryPercent: mem,

dns.go

Lines changed: 0 additions & 55 deletions
This file was deleted.

word.go

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)