MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MakeUntypedTEvent

Function MakeUntypedTEvent

pkg/telemetry/telemetrydata/telemetrydata.go:206–216  ·  view source on GitHub ↗
(event string, propsMap map[string]any)

Source from the content-addressed store, hash-verified

204}
205
206func MakeUntypedTEvent(event string, propsMap map[string]any) (*TEvent, error) {
207 if event == "" {
208 return nil, fmt.Errorf("event name must be non-empty")
209 }
210 var props TEventProps
211 err := utilfn.ReUnmarshal(&props, propsMap)
212 if err != nil {
213 return nil, fmt.Errorf("error re-marshalling TEvent props: %w", err)
214 }
215 return MakeTEvent(event, props), nil
216}
217
218func (t *TEvent) EnsureTimestamps() {
219 if t.Ts == 0 {

Callers

nothing calls this directly

Calls 2

ReUnmarshalFunction · 0.92
MakeTEventFunction · 0.85

Tested by

no test coverage detected