Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveUser ¶
ResolveUser is a placeholder that takes the incoming user from the Sym event and resolves to the right user id for the system you're escalating the user in.
Types ¶
type SymActor ¶
type SymActor struct {
Username string `json:"username"`
}
SymActor has metadata on the user that initiated the Sym Event
type SymEvent ¶
type SymEvent struct {
Actor *SymActor `json:"actor"`
Details *SymEventDetails `json:"event"`
Run *SymRun `json:"run"`
}
Starter model for Sym events, just including the username and event type properties that are required by our example Lambda implementation. For more details on the event object format, refer to our reporting docs: https://docs.symops.com/docs/reporting
type SymEventDetails ¶
type SymEventDetails struct {
Type string `json:"type"`
}
SymEventDetails has data on the kind of event this is
type SymResult ¶
Sym expects your Lambda implementation to return an object a body that can be empty or can include messages your Sym workflow handler processes. The object can also return error messages that will be surfaced to the user and Sym implementer.
func HandleSymEvent ¶
HandleSymEvent includes placeholders to resolve the user and handle escalation/deescalation.
func ResultForError ¶
ResultForError creates a SymResult payload for an error message