Documentation ¶
Index ¶
- Constants
- func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
- func NewHandler() handlers.Handler
- func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
- type AppsignalException
- type AppsignalMarker
- type AppsignalOutMessage
- type AppsignalPerformance
Constants ¶
View Source
const ( DisplayName = "AppSignal" HandlerKey = "appsignal" MessageDirection = "out" MessageBodyType = models.JSON )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
func NewHandler ¶
// FastHttp request handler for outbound webhook
type Handler struct { Config config.Configuration AdapterSet adapters.AdapterSet MessageBodyType models.MessageBodyType }
// FastHttp request handler constructor for outbound webhook
func NewHandler(cfg config.Configuration, adapterSet adapters.AdapterSet) Handler { return Handler{Config: cfg, AdapterSet: adapterSet} }
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
Types ¶
type AppsignalException ¶
type AppsignalException struct { Exception string `json:"exception,omitempty"` Site string `json:"site,omitempty"` Message string `json:"message,omitempty"` Action string `json:"action,omitempty"` Path string `json:"path,omitempty"` Revision string `json:"revision,omitempty"` User string `json:"user,omitempty"` Hostname string `json:"hostname,omitempty"` FirstBacktraceLine string `json:"first_backtrace_line,omitempty"` URL string `json:"url,omitempty"` Environment string `json:"environment,omitempty"` Namespace string `json:"namespace,omitempty"` }
type AppsignalMarker ¶
type AppsignalOutMessage ¶
type AppsignalOutMessage struct { Marker AppsignalMarker `json:"marker,omitempty"` Exception AppsignalException `json:"exception,omitempty"` Performance AppsignalPerformance `json:"performance,omitempty"` Test string `json:"test,omitempty"` }
func AppsignalOutMessageFromBytes ¶
func AppsignalOutMessageFromBytes(bytes []byte) (AppsignalOutMessage, error)
type AppsignalPerformance ¶
type AppsignalPerformance struct { Site string `json:"site,omitempty"` Action string `json:"action,omitempty"` Path string `json:"path,omitempty"` Duration float64 `json:"duration,omitempty"` Status int64 `json:"status,omitempty"` Hostname string `json:"hostname,omitempty"` Revision string `json:"revision,omitempty"` User string `json:"user,omitempty"` URL string `json:"url,omitempty"` Environment string `json:"environment,omitempty"` }
Click to show internal directories.
Click to hide internal directories.