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 BugsnagAccount
- type BugsnagComment
- type BugsnagError
- type BugsnagErrorDevice
- type BugsnagErrorIssue
- type BugsnagErrorStackTrace
- type BugsnagOutMessage
- type BugsnagProject
- type BugsnagRelease
- type BugsnagSnoozeRule
- type BugsnagSourceControl
- type BugsnagTrigger
- type BugsnagUser
- type BugsnaggErrorApp
Constants ¶
View Source
const ( DisplayName = "Bugsnag" HandlerKey = "bugsnag" 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 ¶
func Normalize ¶
func Normalize(cfg config.Configuration, hReq handlers.HandlerRequest) (cc.Message, error)
Types ¶
type BugsnagAccount ¶
type BugsnagComment ¶
type BugsnagComment struct{}
type BugsnagError ¶
type BugsnagError struct { ID string `json:"id,omitempty"` ErrorID string `json:"errorId,omitempty"` ExceptionClass string `json:"exceptionClass,omitempty"` Message string `json:"message,omitempty"` Context string `json:"context,omitempty"` FirstReceived time.Time `json:"firstReceived,omitempty"` ReceivedAt time.Time `json:"receivedAt,omitempty"` RequestURL string `json:"requestUrl,omitempty"` AssignedUserID string `json:"assignedUserId,omitempty"` URL string `json:"url,omitempty"` Severity string `json:"severity,omitempty"` Status string `json:"status,omitempty"` Unhandled bool `json:"unhandled,omitempty"` CreatedIssue BugsnagErrorIssue `json:"createdIssue,omitempty"` User BugsnagUser `json:"user,omitempty"` App BugsnaggErrorApp `json:"app,omitempty"` Device BugsnagErrorDevice `json:"device,omitempty"` StackTrace []BugsnagErrorStackTrace `json:"stackTrace,omitempty"` }
type BugsnagErrorDevice ¶
type BugsnagErrorDevice struct { ID string `json:"id,omitempty"` Manufacturer string `json:"manufacturer,omitempty"` Model string `json:"model,omitempty"` ModelNumber string `json:"modelNumber,omitempty"` OsName string `json:"osName,omitempty"` OsVersion string `json:"osVersion,omitempty"` FreeMemory int `json:"freeMemory,omitempty"` TotalMemory int `json:"totalMemory,omitempty"` FreeDisk int `json:"freeDisk,omitempty"` BrowserName string `json:"browserName,omitempty"` BrowserVersion string `json:"browserVersion,omitempty"` Jailbroken bool `json:"jailbroken,omitempty"` Orientation string `json:"orientation,omitempty"` Locale string `json:"locale,omitempty"` Charging bool `json:"charging,omitempty"` BatteryLevel float32 `json:"batteryLevel,omitempty"` Time time.Time `json:"time,omitempty"` Timezone string `json:"timezone,omitempty"` }
type BugsnagErrorIssue ¶
type BugsnagErrorStackTrace ¶
type BugsnagErrorStackTrace struct { InProject bool `json:"inProject,omitempty"` LineNumber json.Number `json:"lineNumber,omitempty"` ColumnNumber json.Number `json:"columnNumber,omitempty"` File string `json:"file,omitempty"` Method string `json:"method,omitempty"` Code map[string]string `json:"code,omitempty"` }
func (*BugsnagErrorStackTrace) Location ¶
func (st *BugsnagErrorStackTrace) Location() string
Location returns a string per the Slack integration
type BugsnagOutMessage ¶
type BugsnagOutMessage struct { Account BugsnagAccount `json:"account,omitempty"` Project BugsnagProject `json:"project,omitempty"` Trigger BugsnagTrigger `json:"trigger,omitempty"` Comment BugsnagComment `json:"created_at,omitempty"` User BugsnagUser `json:"user,omitempty"` Error BugsnagError `json:"error,omitempty"` Release BugsnagRelease `json:"release,omitempty"` }
func BugsnagOutMessageFromBytes ¶
func BugsnagOutMessageFromBytes(bytes []byte) (BugsnagOutMessage, error)
func (*BugsnagOutMessage) ReleaseStage ¶
func (msg *BugsnagOutMessage) ReleaseStage() string
type BugsnagProject ¶
type BugsnagProject struct { ID string `json:"id,omitempty"` Name string `json:"name,omitempty"` URL string `json:"url,omitempty"` }
func (*BugsnagProject) MarkdownLink ¶
func (bp *BugsnagProject) MarkdownLink() string
type BugsnagRelease ¶
type BugsnagRelease struct { ID string `json:"id,omitempty"` Version string `json:"version,omitempty"` VersionCode string `json:"versionCode,omitempty"` BundleVersion string `json:"bundleVersion,omitempty"` ReleaseStage string `json:"releaseStage,omitempty"` URL string `json:"url,omitempty"` ReleaseTime time.Time `json:"releaseTime,omitempty"` ReleasedBy string `json:"releasedBy,omitempty"` SourceControl BugsnagSourceControl `json:"sourceControl,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
type BugsnagSnoozeRule ¶
type BugsnagSourceControl ¶
type BugsnagTrigger ¶
type BugsnagTrigger struct { Type string `json:"type,omitempty"` Message string `json:"message,omitempty"` SnoozeRule BugsnagSnoozeRule `json:"snoozeRule,omitempty"` Rate int32 `json:"rate,omitempty"` StateChange string `json:"stateChange,omitempty"` }
type BugsnagUser ¶
type BugsnaggErrorApp ¶
type BugsnaggErrorApp struct { ID string `json:"id,omitempty"` Version string `json:"version,omitempty"` VersionCode string `json:"versionCode,omitempty"` BundleVersion string `json:"bundleVersion,omitempty"` CodeBundleID string `json:"codeBundleId,omitempty"` BuildUUID string `json:"buildUUID,omitempty"` ReleaseStage string `json:"releaseStage,omitempty"` Type string `json:"type,omitempty"` DsymUUIDs []string `json:"dsymUUIDs,omitempty"` Duration int `json:"duration,omitempty"` DurationInForeground int `json:"durationInForeground,omitempty"` InForeground bool `json:"inForeground,omitempty"` }
Click to show internal directories.
Click to hide internal directories.