appsignal

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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)

func Normalize

func Normalize(cfg config.Configuration, bytes []byte) (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 AppsignalMarker struct {
	User        string `json:"user,omitempty"`
	Site        string `json:"site,omitempty"`
	Environment string `json:"environment,omitempty"`
	Revision    string `json:"revision,omitempty"`
	Repository  string `json:"repository,omitempty"`
	URL         string `json:"url,omitempty"`
}

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
	Adapter adapters.Adapter
}

FastHttp request handler for outbound webhook

func NewHandler

func NewHandler(cfg config.Configuration, adapter adapters.Adapter) Handler

FastHttp request handler constructor for outbound webhook

func (Handler) HandleFastHTTP

func (h Handler) HandleFastHTTP(ctx *fasthttp.RequestCtx)

HandleFastHTTP is the method to respond to a fasthttp request.

func (Handler) HandlerKey

func (h Handler) HandlerKey() string

func (Handler) MessageDirection

func (h Handler) MessageDirection() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL