MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / TrackLoginSuccess

Function TrackLoginSuccess

cli/internal/analytics/client.go:89–115  ·  view source on GitHub ↗
(ctx context.Context, invocationUUID uuid.UUID)

Source from the content-addressed store, hash-verified

87}
88
89func TrackLoginSuccess(ctx context.Context, invocationUUID uuid.UUID) {
90 if client == nil {
91 return
92 }
93
94 details := refreshSyncEventDetails(ctx)
95 if details == nil {
96 return
97 }
98
99 if details.isCurrentTeamInternal {
100 return
101 }
102
103 _ = client.Enqueue(rudderstack.Track{
104 UserId: details.user.ID.String(),
105 Event: "login_success",
106 Properties: rudderstack.Properties{
107 "invocation_uuid": invocationUUID,
108 "team": details.currentTeam,
109 "environment": details.environment,
110 "$groups": rudderstack.Properties{
111 "team": details.currentTeam,
112 },
113 },
114 })
115}
116
117type SyncStartedEvent struct {
118 Source specs.Source

Callers

nothing calls this directly

Calls 2

refreshSyncEventDetailsFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected