mirror of
https://github.com/gravitl/netmaker.git
synced 2024-09-20 23:36:18 +08:00
adding telemetry
This commit is contained in:
parent
4d2a85f879
commit
2f12ded906
|
@ -164,7 +164,7 @@ type ServerUpdateData struct {
|
|||
Node Node `json:"servernode" bson:"servernode"`
|
||||
}
|
||||
|
||||
// ServerUUID - contains UUID of the server
|
||||
// Telemetry - contains UUID of the server and timestamp of last send to posthog
|
||||
type Telemetry struct {
|
||||
UUID string `json:"uuid" bson:"uuid"`
|
||||
LastSend int64 `json:"lastsend" bson:"lastsend"`
|
||||
|
|
|
@ -320,7 +320,7 @@ func IsClientMode() string {
|
|||
return isclient
|
||||
}
|
||||
|
||||
// IsClientMode - checks if it should run in client mode
|
||||
// Telemetry - checks if telemetry data should be sent
|
||||
func Telemetry() string {
|
||||
telemetry := "on"
|
||||
if os.Getenv("TELEMETRY") == "off" {
|
||||
|
|
Loading…
Reference in a new issue