mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
set apptype = w2
This commit is contained in:
parent
af269fcc8c
commit
88d31bc692
@ -130,7 +130,7 @@ func SendTelemetry(ctx context.Context, clientId string) error {
|
|||||||
}
|
}
|
||||||
log.Printf("[wcloud] sending telemetry data\n")
|
log.Printf("[wcloud] sending telemetry data\n")
|
||||||
dayStr := daystr.GetCurDayStr()
|
dayStr := daystr.GetCurDayStr()
|
||||||
input := TelemetryInputType{ClientId: clientId, UserId: clientId, CurDay: dayStr, Activity: activity}
|
input := TelemetryInputType{ClientId: clientId, UserId: clientId, CurDay: dayStr, Activity: activity, AppType: "w2"}
|
||||||
req, err := makeAnonPostReq(ctx, TelemetryUrl, input)
|
req, err := makeAnonPostReq(ctx, TelemetryUrl, input)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -15,6 +15,7 @@ type NoTelemetryInputType struct {
|
|||||||
type TelemetryInputType struct {
|
type TelemetryInputType struct {
|
||||||
UserId string `json:"userid"`
|
UserId string `json:"userid"`
|
||||||
ClientId string `json:"clientid"`
|
ClientId string `json:"clientid"`
|
||||||
|
AppType string `json:"apptype"`
|
||||||
CurDay string `json:"curday"`
|
CurDay string `json:"curday"`
|
||||||
DefaultShell string `json:"defaultshell"`
|
DefaultShell string `json:"defaultshell"`
|
||||||
Activity []*telemetry.ActivityType `json:"activity"`
|
Activity []*telemetry.ActivityType `json:"activity"`
|
||||||
|
Loading…
Reference in New Issue
Block a user