We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a7baf commit 6783081Copy full SHA for 6783081
internal/api/statistics/statistics.go
@@ -9,6 +9,7 @@ package statistics
9
import (
10
"fmt"
11
12
+ "github.com/ergoapi/util/zos"
13
"github.com/imroc/req/v3"
14
15
"github.com/easysoft/qcadmin/common"
@@ -22,6 +23,7 @@ type CollectData struct {
22
23
Type string `json:"type"`
24
Action string `json:"action"`
25
Devops bool `json:"devops,omitempty"`
26
+ OS string `json:"os,omitempty"`
27
}
28
29
type Result struct {
@@ -39,6 +41,7 @@ func SendStatistics(action string) error {
39
41
Type: cfg.Quickon.Type.String(),
40
42
Action: action,
43
Devops: cfg.Quickon.DevOps,
44
+ OS: zos.GetDistro(),
45
46
47
// send statistics
0 commit comments