set apptype = w2

This commit is contained in:
sawka 2024-09-19 11:39:21 -07:00
parent af269fcc8c
commit 88d31bc692
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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"`