BoopErrorTracker.Event (BoopErrorTracker v1.0.0)

Copy Markdown View Source

Translates an ErrorTracker error + occurrence into a Boop.Event.

Works on the %ErrorTracker.Error{} / %ErrorTracker.Occurrence{} structs but only reads fields, so plain maps with the same keys work too (that is how the tests drive it).

Summary

Functions

Builds the Boop event for trigger (:new, :unresolved, :occurrence).

Functions

build(error, occurrence, trigger, config)

Builds the Boop event for trigger (:new, :unresolved, :occurrence).