Documentation
¶
Index ¶
- Constants
- func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (cc.Message, error)
- func Normalize(cfg config.Configuration, bytes []byte) (cc.Message, error)
- type AppsignalException
- type AppsignalMarker
- type AppsignalOutMessage
- type AppsignalPerformance
- type Handler
- func (h Handler) HandleCanonical(hookData models.HookData) []models.ErrorInfo
- func (h Handler) HandleEawsyLambda(event *apigatewayproxyevt.Event, ctx *runtime.Context) (models.AwsAPIGatewayProxyOutput, error)
- func (h Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)
- func (h Handler) HandlerKey() string
- func (h Handler) MessageDirection() string
Constants ¶
View Source
const ( DisplayName = "AppSignal" HandlerKey = "appsignal" MessageDirection = "out" )
Variables ¶
This section is empty.
Functions ¶
func ExampleMessage ¶
func ExampleMessage(cfg config.Configuration, data util.ExampleData, eventSlug string) (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"`
}
type Handler ¶
type Handler struct {
Config config.Configuration
AdapterSet adapters.AdapterSet
MessageBodyType models.MessageBodyType
}
FastHttp request handler for outbound webhook
func NewHandler ¶
func NewHandler(cfg config.Configuration, adapterSet adapters.AdapterSet) Handler
FastHttp request handler constructor for outbound webhook
func (Handler) HandleCanonical ¶ added in v0.2.0
HandleCanonical is the method to handle a processed request.
func (Handler) HandleEawsyLambda ¶ added in v0.2.0
func (h Handler) HandleEawsyLambda(event *apigatewayproxyevt.Event, ctx *runtime.Context) (models.AwsAPIGatewayProxyOutput, error)
HandleEawsyLambda is the method to respond to a fasthttp request.
func (Handler) HandleFastHTTP ¶
func (h Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)
HandleFastHTTP is the method to respond to a fasthttp request.
func (Handler) HandlerKey ¶
func (Handler) MessageDirection ¶
Click to show internal directories.
Click to hide internal directories.