MCPcopy Create free account
hub / github.com/auth0/auth0-cli / newEvent

Function newEvent

internal/analytics/analytics.go:113–131  ·  view source on GitHub ↗
(eventName string, id string, properties map[string]string)

Source from the content-addressed store, hash-verified

111}
112
113func newEvent(eventName string, id string, properties map[string]string) *event {
114 eventProperties := map[string]string{
115 versionKey: buildinfo.Version,
116 osKey: runtime.GOOS,
117 archKey: runtime.GOARCH,
118 }
119
120 for k, v := range properties {
121 eventProperties[k] = v
122 }
123
124 return &event{
125 App: appID,
126 ID: id,
127 Event: eventName,
128 Timestamp: timestamp(),
129 Properties: eventProperties,
130 }
131}
132
133func generateRunEventName(command string) string {
134 return generateEventName(command, "Run")

Callers 2

trackMethod · 0.85
TestNewEventFunction · 0.85

Calls 1

timestampFunction · 0.85

Tested by 1

TestNewEventFunction · 0.68