bugsnag-hs-0.2.0.8: A Bugsnag client for Haskell.
Safe HaskellNone
LanguageHaskell2010

Network.Bugsnag

Description

A module for building Bugsnag report payloads. Please see the README at https://github.com/jwoudenberg/bugsnag-hs.

Synopsis

Sending reports

sendEvents :: Manager -> ApiKey -> [Event] -> IO (Either HttpException ()) Source #

Send a batch of Events to Rollbar using a single HTTP request.

ApiKey

data ApiKey Source #

The API Key associated with the project. Informs Bugsnag which project has generated this error.

Instances

Instances details
Show ApiKey Source # 
Instance details

Defined in Network.Bugsnag

Generic ApiKey Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep ApiKey :: Type -> Type #

Methods

from :: ApiKey -> Rep ApiKey x #

to :: Rep ApiKey x -> ApiKey #

ToJSON ApiKey Source # 
Instance details

Defined in Network.Bugsnag

FromJSON ApiKey Source # 
Instance details

Defined in Network.Bugsnag

type Rep ApiKey Source # 
Instance details

Defined in Network.Bugsnag

type Rep ApiKey = D1 ('MetaData "ApiKey" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "ApiKey" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

apiKey :: Text -> ApiKey Source #

Construct an ApiKey value.

Report

data Report Source #

The payload of a POST request to https://notify.bugsnag.com/

Instances

Instances details
Show Report Source # 
Instance details

Defined in Network.Bugsnag

Generic Report Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Report :: Type -> Type #

Methods

from :: Report -> Rep Report x #

to :: Rep Report x -> Report #

ToJSON Report Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Report Source # 
Instance details

Defined in Network.Bugsnag

type Rep Report Source # 
Instance details

Defined in Network.Bugsnag

type Rep Report = D1 ('MetaData "Report" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Report" 'PrefixI 'True) ((S1 ('MetaSel ('Just "report_apiKey") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ApiKey)) :*: S1 ('MetaSel ('Just "report_payloadVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 PayloadVersion)) :*: (S1 ('MetaSel ('Just "report_notifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Notifier) :*: S1 ('MetaSel ('Just "report_events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Event]))))

defaultReport :: Report Source #

A default report.

report_apiKey :: Report -> Maybe ApiKey Source #

The API Key associated with the project. Informs Bugsnag which project has generated this error. This is provided for legacy notifiers. It is preferable to use the Bugsnag-Api-Key header instead.

report_payloadVersion :: Report -> PayloadVersion Source #

The version number of the payload. This is currently 5. The Bugsnag-Payload-Version header should be included as well, for compatibility reasons.

report_notifier :: Report -> Notifier Source #

Describes the notifier itself. These properties are used within Bugsnag to track error rates from a notifier.

report_events :: Report -> [Event] Source #

An array of error events that Bugsnag should be notified of. A notifier can choose to group notices into an array to minimize network traffic, or can notify Bugsnag each time an event occurs.

Event

data Event Source #

An array of error events that Bugsnag should be notified of. A notifier can choose to group notices into an array to minimize network traffic, or can notify Bugsnag each time an event occurs.

Instances

Instances details
Show Event Source # 
Instance details

Defined in Network.Bugsnag

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

ToJSON Event Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Event Source # 
Instance details

Defined in Network.Bugsnag

type Rep Event Source # 
Instance details

Defined in Network.Bugsnag

type Rep Event = D1 ('MetaData "Event" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Event" 'PrefixI 'True) (((S1 ('MetaSel ('Just "event_exceptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Exception]) :*: (S1 ('MetaSel ('Just "event_breadcrumbs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Breadcrumb])) :*: S1 ('MetaSel ('Just "event_request") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Request)))) :*: ((S1 ('MetaSel ('Just "event_threads") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Thread])) :*: S1 ('MetaSel ('Just "event_context") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "event_groupingHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "event_unhandled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool))))) :*: ((S1 ('MetaSel ('Just "event_severity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Severity)) :*: (S1 ('MetaSel ('Just "event_severityReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SeverityReason)) :*: S1 ('MetaSel ('Just "event_user") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe User)))) :*: ((S1 ('MetaSel ('Just "event_app") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe App)) :*: S1 ('MetaSel ('Just "event_device") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Device))) :*: (S1 ('MetaSel ('Just "event_session") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Session)) :*: S1 ('MetaSel ('Just "event_metaData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Object)))))))

defaultEvent :: Event Source #

A default event.

event_exceptions :: Event -> [Exception] Source #

An array of exceptions that occurred during this event. There must be at least one entry. Most of the time there will only be one exception, but some languages support "nested" or "caused by" exceptions. In this case, exceptions should be unwrapped and added to the array one at a time. The first exception raised should be first in this array.

event_breadcrumbs :: Event -> Maybe [Breadcrumb] Source #

An array of user- and system-initiated events which led up to an error, providing additional context. This list is sequential and ordered newest to oldest.

event_request :: Event -> Maybe Request Source #

Details about the web request from the client that experienced the error, if relevant. To display custom request data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in a request object.

event_threads :: Event -> Maybe [Thread] Source #

An array of background threads. This is optional but recommended for apps that rely heavily on threading. Threads should be in an order that makes sense for your application.

event_context :: Event -> Maybe Text Source #

A string representing what was happening in the application at the time of the error. This string could be used for grouping purposes, depending on the event. Usually this would represent the controller and action in a server based project. It could represent the screen that the user was interacting with in a client side project. For example: - On Ruby on Rails the context could be controller#action. - In Android, the context could be the top most Activity. - In iOS, the context could be the name of the top most UIViewController.

event_groupingHash :: Event -> Maybe Text Source #

Bugsnag's default error grouping can be overridden by specifying a custom grouping hash.

event_unhandled :: Event -> Maybe Bool Source #

Whether the error was unhandled. If true, the error was detected by the notifier because it was not handled by the application. If false, the errors was handled and reported using Bugsnag.notify.

event_severity :: Event -> Maybe Severity Source #

The severity of the error

event_severityReason :: Event -> Maybe SeverityReason Source #

Information about why the severity was picked.

event_user :: Event -> Maybe User Source #

Information about the user affected by the error. These fields are optional but highly recommended. To display custom user data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in a user object.

event_app :: Event -> Maybe App Source #

Information about the app where the error occurred. These fields are optional but highly recommended. To display custom app data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in an app object.

event_device :: Event -> Maybe Device Source #

Information about the computer/device running the app. These fields are optional but highly recommended. To display custom device data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in a device object.

event_session :: Event -> Maybe Session Source #

Details of any session information associated with the event. This can be used alongside the Bugsnag Session Tracking API to associate the event with a session so that a release's crash rate can be determined.

event_metaData :: Event -> Maybe Object Source #

An object containing any further data you wish to attach to this error event. This should contain one or more objects, with each object being displayed in its own tab on the event details on Bugsnag.

Exception

data Exception Source #

An exception that occurred during this event.

Instances

Instances details
Show Exception Source # 
Instance details

Defined in Network.Bugsnag

Generic Exception Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Exception :: Type -> Type #

ToJSON Exception Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Exception Source # 
Instance details

Defined in Network.Bugsnag

type Rep Exception Source # 
Instance details

Defined in Network.Bugsnag

type Rep Exception = D1 ('MetaData "Exception" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Exception" 'PrefixI 'True) ((S1 ('MetaSel ('Just "exception_errorClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "exception_message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "exception_stacktrace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [StackFrame]) :*: S1 ('MetaSel ('Just "exception_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ExceptionType)))))

defaultException :: Exception Source #

A default exception.

exception_errorClass :: Exception -> Text Source #

The class of error which occurred. This field is used to group the errors together so should not contain any contextual information that would prevent correct grouping. This would ordinarily be the Exception name when dealing with an exception.

exception_message :: Exception -> Maybe Text Source #

The error message associated with the error. Usually this will contain some information about this specific instance of the error and is not used to group the errors.

exception_stacktrace :: Exception -> [StackFrame] Source #

An array of stackframe objects. Each object represents one line in the exception's stacktrace. Bugsnag uses this information to help with error grouping, as well as displaying it to the user.

exception_type :: Exception -> Maybe ExceptionType Source #

This should be set for the following platforms so that the stacktrace can be parsed correctly:

StackFrame

data StackFrame Source #

Each stackrame represents one line in the exception's stacktrace. Bugsnag uses this information to help with error grouping, as well as displaying it to the user.

Instances

Instances details
Show StackFrame Source # 
Instance details

Defined in Network.Bugsnag

Generic StackFrame Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep StackFrame :: Type -> Type #

ToJSON StackFrame Source # 
Instance details

Defined in Network.Bugsnag

FromJSON StackFrame Source # 
Instance details

Defined in Network.Bugsnag

type Rep StackFrame Source # 
Instance details

Defined in Network.Bugsnag

type Rep StackFrame = D1 ('MetaData "StackFrame" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "StackFrame" 'PrefixI 'True) ((S1 ('MetaSel ('Just "stackFrame_file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "stackFrame_lineNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "stackFrame_columnNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "stackFrame_method") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "stackFrame_inProject") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "stackFrame_code") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (HashMap Int Text)))))))

defaultStackFrame :: StackFrame Source #

A default stackFrame.

stackFrame_file :: StackFrame -> Text Source #

The file that this stack frame was executing. It is recommended that you strip any unnecessary or common information from the beginning of the path.

stackFrame_lineNumber :: StackFrame -> Int Source #

The line of the file that this frame of the stack was in.

stackFrame_columnNumber :: StackFrame -> Maybe Int Source #

The column of the file that this frame of the stack was in.

stackFrame_method :: StackFrame -> Text Source #

The method that this particular stack frame is within.

stackFrame_inProject :: StackFrame -> Maybe Bool Source #

If this stacktrace line is in the user's project code, set this to true. It is useful for developers to be able to see which lines of a stacktrace are within their own application, and which are within third party libraries. This boolean field allows Bugsnag to display this information in the stacktrace as well as use the information to help group errors better.

stackFrame_code :: StackFrame -> Maybe (HashMap Int Text) Source #

The code in this file surrounding this line. This is an object containing key value pairs where each key is a line number and each value is the code from that line. You can include up to three lines on either side of the line where the error occurred. These will be displayed on the bugsnag dashboard when you expand that line.

Breadcrumb

data Breadcrumb Source #

User- and system-initiated event which led up to an error, providing additional context.

Instances

Instances details
Show Breadcrumb Source # 
Instance details

Defined in Network.Bugsnag

Generic Breadcrumb Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Breadcrumb :: Type -> Type #

ToJSON Breadcrumb Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Breadcrumb Source # 
Instance details

Defined in Network.Bugsnag

type Rep Breadcrumb Source # 
Instance details

Defined in Network.Bugsnag

type Rep Breadcrumb = D1 ('MetaData "Breadcrumb" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Breadcrumb" 'PrefixI 'True) ((S1 ('MetaSel ('Just "breadcrumb_timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "breadcrumb_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "breadcrumb_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 BreadcrumbType) :*: S1 ('MetaSel ('Just "breadcrumb_metaData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (HashMap Text Text))))))

defaultBreadcrumb :: Breadcrumb Source #

A default breadcrumb.

breadcrumb_timestamp :: Breadcrumb -> Text Source #

The time at which the event occurred, in ISO 8601 format.

breadcrumb_name :: Breadcrumb -> Text Source #

A short summary describing the event, such as the user action taken or a new application state.

breadcrumb_type :: Breadcrumb -> BreadcrumbType Source #

A category which describes the breadcrumb, from the list of allowed values.

breadcrumb_metaData :: Breadcrumb -> Maybe (HashMap Text Text) Source #

Additional information about the event, as key/value pairs.

Request

data Request Source #

Details about the web request from the client that experienced the error, if relevant. To display custom request data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in a request object.

Instances

Instances details
Show Request Source # 
Instance details

Defined in Network.Bugsnag

Generic Request Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Request :: Type -> Type #

Methods

from :: Request -> Rep Request x #

to :: Rep Request x -> Request #

ToJSON Request Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Request Source # 
Instance details

Defined in Network.Bugsnag

type Rep Request Source # 
Instance details

Defined in Network.Bugsnag

type Rep Request = D1 ('MetaData "Request" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Request" 'PrefixI 'True) ((S1 ('MetaSel ('Just "request_clientIp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "request_headers") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "request_httpMethod") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "request_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "request_referer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

defaultRequest :: Request Source #

A default request.

request_clientIp :: Request -> Maybe Text Source #

The IP address of the client that experienced the error.

request_headers :: Request -> Maybe (HashMap Text Text) Source #

The headers sent with the request.

request_httpMethod :: Request -> Maybe Text Source #

The HTTP method used.

request_url :: Request -> Maybe Text Source #

The URL of the request.

Thread

data Thread Source #

An array of background threads. This is optional but recommended for apps that rely heavily on threading. Threads should be in an order that makes sense for your application.

Instances

Instances details
Show Thread Source # 
Instance details

Defined in Network.Bugsnag

Generic Thread Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Thread :: Type -> Type #

Methods

from :: Thread -> Rep Thread x #

to :: Rep Thread x -> Thread #

ToJSON Thread Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Thread Source # 
Instance details

Defined in Network.Bugsnag

type Rep Thread Source # 
Instance details

Defined in Network.Bugsnag

type Rep Thread = D1 ('MetaData "Thread" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Thread" 'PrefixI 'True) ((S1 ('MetaSel ('Just "thread_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "thread_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "thread_errorReportingThread") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "thread_stacktrace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [StackFrame])) :*: S1 ('MetaSel ('Just "thread_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe ThreadType))))))

defaultThread :: Thread Source #

A default thread.

thread_id :: Thread -> Maybe Text Source #

The id of the thread in your application.

thread_name :: Thread -> Maybe Text Source #

A human readable name for the thread.

thread_errorReportingThread :: Thread -> Maybe Bool Source #

If this is the thread that the error was reported from (either an unhandled error or a call to bugsnag.notify), set this to true.

thread_stacktrace :: Thread -> Maybe [StackFrame] Source #

An array of stacktrace objects. Each object represents one line in the stacktrace of the thread at the point that the error occurred.

thread_type :: Thread -> Maybe ThreadType Source #

Setting this allows the stacktrace to be parsed correctly.

SeverityReason

data SeverityReason Source #

Information about why the severity was picked.

Instances

Instances details
Show SeverityReason Source # 
Instance details

Defined in Network.Bugsnag

Generic SeverityReason Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep SeverityReason :: Type -> Type #

ToJSON SeverityReason Source # 
Instance details

Defined in Network.Bugsnag

FromJSON SeverityReason Source # 
Instance details

Defined in Network.Bugsnag

type Rep SeverityReason Source # 
Instance details

Defined in Network.Bugsnag

type Rep SeverityReason = D1 ('MetaData "SeverityReason" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "SeverityReason" 'PrefixI 'True) (S1 ('MetaSel ('Just "severityReason_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SeverityReasonType) :*: S1 ('MetaSel ('Just "severityReason_attributes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SeverityReasonAttributes)))

defaultSeverityReason :: SeverityReason Source #

A default severityReason.

severityReason_type :: SeverityReason -> SeverityReasonType Source #

A type key that represents the reason for the assigned severity.

severityReason_attributes :: SeverityReason -> SeverityReasonAttributes Source #

Optional attributes to provide extra information about the severity reason.

SeverityReasonAttributes

data SeverityReasonAttributes Source #

Optional attributes to provide extra information about the severity reason.

Instances

Instances details
Show SeverityReasonAttributes Source # 
Instance details

Defined in Network.Bugsnag

Generic SeverityReasonAttributes Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep SeverityReasonAttributes :: Type -> Type #

ToJSON SeverityReasonAttributes Source # 
Instance details

Defined in Network.Bugsnag

FromJSON SeverityReasonAttributes Source # 
Instance details

Defined in Network.Bugsnag

type Rep SeverityReasonAttributes Source # 
Instance details

Defined in Network.Bugsnag

type Rep SeverityReasonAttributes = D1 ('MetaData "SeverityReasonAttributes" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "SeverityReasonAttributes" 'PrefixI 'True) ((S1 ('MetaSel ('Just "severityReasonAttributes_errorType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "severityReasonAttributes_level") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "severityReasonAttributes_signalType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "severityReasonAttributes_violationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "severityReasonAttributes_errorClass") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))

severityReasonAttributes_errorClass :: SeverityReasonAttributes -> Maybe Text Source #

Included for errorClass severity reason. Specifies the error class that is automatically sent.

User

data User Source #

Information about the user affected by the error. These fields are optional but highly recommended. To display custom user data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in a user object.

Instances

Instances details
Show User Source # 
Instance details

Defined in Network.Bugsnag

Methods

showsPrec :: Int -> User -> ShowS #

show :: User -> String #

showList :: [User] -> ShowS #

Generic User Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep User :: Type -> Type #

Methods

from :: User -> Rep User x #

to :: Rep User x -> User #

ToJSON User Source # 
Instance details

Defined in Network.Bugsnag

FromJSON User Source # 
Instance details

Defined in Network.Bugsnag

type Rep User Source # 
Instance details

Defined in Network.Bugsnag

type Rep User = D1 ('MetaData "User" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "User" 'PrefixI 'True) (S1 ('MetaSel ('Just "user_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "user_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "user_email") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))

defaultUser :: User Source #

A default user.

user_id :: User -> Maybe Text Source #

A unique identifier for a user affected by this event. This could be any distinct identifier that makes sense for your application/platform.

user_name :: User -> Maybe Text Source #

The user's name, or a string you use to identify them.

user_email :: User -> Maybe Text Source #

The user's email address.

App

data App Source #

Information about the app where the error occurred. These fields are optional but highly recommended. To display custom app data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in an app object.

Instances

Instances details
Show App Source # 
Instance details

Defined in Network.Bugsnag

Methods

showsPrec :: Int -> App -> ShowS #

show :: App -> String #

showList :: [App] -> ShowS #

Generic App Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep App :: Type -> Type #

Methods

from :: App -> Rep App x #

to :: Rep App x -> App #

ToJSON App Source # 
Instance details

Defined in Network.Bugsnag

FromJSON App Source # 
Instance details

Defined in Network.Bugsnag

type Rep App Source # 
Instance details

Defined in Network.Bugsnag

type Rep App = D1 ('MetaData "App" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "App" 'PrefixI 'True) (((S1 ('MetaSel ('Just "app_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "app_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "app_versionCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "app_bundleVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "app_codeBundleId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "app_buildUUID") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "app_releaseStage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "app_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "app_dsymUUIDs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [Text])))) :*: ((S1 ('MetaSel ('Just "app_duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "app_durationInForeground") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "app_inForeground") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "app_binaryArch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe BinaryArch)))))))

defaultApp :: App Source #

A default app.

app_id :: App -> Maybe Text Source #

A unique ID for the application.

app_version :: App -> Maybe Text Source #

The version number of the application which generated the error.

app_versionCode :: App -> Maybe Int Source #

The version code of the application (Android only)

app_bundleVersion :: App -> Maybe Text Source #

The bundle version/build number of the application (iOSmacOStvOS only)

app_codeBundleId :: App -> Maybe Text Source #

A unique identifier to identify a code bundle release when using tools like CodePush (mobile only).

app_buildUUID :: App -> Maybe Text Source #

A build ID that is required to identify a specific build when the version and version code are the same.

app_releaseStage :: App -> Maybe Text Source #

The release stage that this error occurred in, for example "development", "staging" or "production".

app_type :: App -> Maybe Text Source #

A specialized type of the application, such as the worker queue or web framework used, like "rails", "mailman", or "celery".

app_dsymUUIDs :: App -> Maybe [Text] Source #

The UUIDs of the debug symbols file corresponding to this application, if any.

app_duration :: App -> Maybe Int Source #

How long the app has been running for in milliseconds.

app_durationInForeground :: App -> Maybe Int Source #

How long the app has been in the foreground of the device in milliseconds.

app_inForeground :: App -> Maybe Bool Source #

Whether or not the app was in the foreground when the error occurred.

app_binaryArch :: App -> Maybe BinaryArch Source #

The architecture of the running binary (Android only).

Device

data Device Source #

Information about the computer/device running the app. These fields are optional but highly recommended. To display custom device data alongside these standard fields on the Bugsnag website, the custom data should be included in the metaData object in a device object.

Instances

Instances details
Show Device Source # 
Instance details

Defined in Network.Bugsnag

Generic Device Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Device :: Type -> Type #

Methods

from :: Device -> Rep Device x #

to :: Rep Device x -> Device #

ToJSON Device Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Device Source # 
Instance details

Defined in Network.Bugsnag

type Rep Device Source # 
Instance details

Defined in Network.Bugsnag

type Rep Device = D1 ('MetaData "Device" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Device" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "device_hostname") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "device_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "device_manufacturer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "device_model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "device_modelNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "device_osName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "device_osVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "device_freeMemory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))))) :*: (((S1 ('MetaSel ('Just "device_totalMemory") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "device_freeDisk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int))) :*: (S1 ('MetaSel ('Just "device_browserName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "device_browserVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "device_jailBroken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "device_orientation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "device_time") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "device_cpuAbi") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [CpuAbi])) :*: S1 ('MetaSel ('Just "device_runtimeVersions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe RuntimeVersions))))))))

defaultDevice :: Device Source #

A default device.

device_hostname :: Device -> Maybe Text Source #

The hostname of the server running your code, if applicable.

device_id :: Device -> Maybe Text Source #

A unique identifier for the device.

device_manufacturer :: Device -> Maybe Text Source #

The manufacturer of the device.

device_model :: Device -> Maybe Text Source #

The model of the device.

device_modelNumber :: Device -> Maybe Text Source #

The model number of the device.

device_osName :: Device -> Maybe Text Source #

The device's operating system name.

device_osVersion :: Device -> Maybe Text Source #

The device's operating system version.

device_freeMemory :: Device -> Maybe Int Source #

The number of bytes unused in the device's RAM.

device_totalMemory :: Device -> Maybe Int Source #

The number of total bytes in the device's RAM.

device_freeDisk :: Device -> Maybe Int Source #

The number of unused bytes on the drive running the application.

device_browserName :: Device -> Maybe Text Source #

If a web application, the web browser used by the device.

device_browserVersion :: Device -> Maybe Text Source #

If a web application, the version of the browser used by the device.

device_jailBroken :: Device -> Maybe Bool Source #

Whether or not the device has been modified to give users root access.

device_orientation :: Device -> Maybe Text Source #

The orientation of the device at the time of the error.

device_time :: Device -> Maybe Text Source #

The time at which the error occurred, in ISO 8601 format.

device_cpuAbi :: Device -> Maybe [CpuAbi] Source #

The ABIs supported by the device (Android only).

device_runtimeVersions :: Device -> Maybe RuntimeVersions Source #

The versions of the relevant runtimes, languages and/or frameworks for the platform.

RuntimeVersions

data RuntimeVersions Source #

The versions of the relevant runtimes, languages and/or frameworks for the platform.

Instances

Instances details
Show RuntimeVersions Source # 
Instance details

Defined in Network.Bugsnag

Generic RuntimeVersions Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep RuntimeVersions :: Type -> Type #

ToJSON RuntimeVersions Source # 
Instance details

Defined in Network.Bugsnag

FromJSON RuntimeVersions Source # 
Instance details

Defined in Network.Bugsnag

type Rep RuntimeVersions Source # 
Instance details

Defined in Network.Bugsnag

type Rep RuntimeVersions = D1 ('MetaData "RuntimeVersions" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "RuntimeVersions" 'PrefixI 'True) (((((S1 ('MetaSel ('Just "runtimeVersions_androidApi") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_bottle") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_celery") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "runtimeVersions_clangVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_cocos2dx") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_delayedJob") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_django") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_dotnet") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_dotnetApiCompatibility") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "runtimeVersions_dotnetClr") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_dotnetScriptingRuntime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_eventMachine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "runtimeVersions_expoApp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_expoSdk") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_flask") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "runtimeVersions_gin") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_go") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_javaType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_javaVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_jruby") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_laravel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_lumen") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_magento") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "runtimeVersions_mailman") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_martini") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))))) :*: ((((S1 ('MetaSel ('Just "runtimeVersions_negroni") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_node") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_osBuild") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "runtimeVersions_php") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_python") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_que") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_rack") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_rails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_rake") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_reactNative") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_reactNativeJsEngine") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "runtimeVersions_resque") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_revel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))) :*: (((S1 ('MetaSel ('Just "runtimeVersions_ruby") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_shoryoken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_sidekiq") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "runtimeVersions_silex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_sinatra") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_springBoot") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_springFramework") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "runtimeVersions_swift") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_symfony") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "runtimeVersions_tornado") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_unity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "runtimeVersions_unityScriptingBackend") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "runtimeVersions_wordpress") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)))))))))

defaultRuntimeVersions :: RuntimeVersions Source #

A default runtimeVersions.

runtimeVersions_androidApi :: RuntimeVersions -> Maybe Text Source #

The Android API level (Android only).

runtimeVersions_bottle :: RuntimeVersions -> Maybe Text Source #

Bottle framework version (Python only).

runtimeVersions_celery :: RuntimeVersions -> Maybe Text Source #

Celery task queue version (Python only).

runtimeVersions_clangVersion :: RuntimeVersions -> Maybe Text Source #

Clang compiler version (iOStvOSmacOS only).

runtimeVersions_cocos2dx :: RuntimeVersions -> Maybe Text Source #

Cocos2d-x framework version (Cocos2d-x only).

runtimeVersions_delayedJob :: RuntimeVersions -> Maybe Text Source #

Delayed Job framework version (Ruby only).

runtimeVersions_django :: RuntimeVersions -> Maybe Text Source #

Django framework version (Python only).

runtimeVersions_dotnet :: RuntimeVersions -> Maybe Text Source #

Description of the framework (.NET only).

runtimeVersions_dotnetApiCompatibility :: RuntimeVersions -> Maybe Text Source #

.NET API compatibility level (Unity only).

runtimeVersions_dotnetClr :: RuntimeVersions -> Maybe Text Source #

Version of .NET Common Language Runtime (.NET only).

runtimeVersions_dotnetScriptingRuntime :: RuntimeVersions -> Maybe Text Source #

.NET scripting runtime version (Unity only).

runtimeVersions_eventMachine :: RuntimeVersions -> Maybe Text Source #

EventMachine library version (Ruby only).

runtimeVersions_expoApp :: RuntimeVersions -> Maybe Text Source #

Expo app version (Expo only).

runtimeVersions_expoSdk :: RuntimeVersions -> Maybe Text Source #

Expo SDK version (Expo only).

runtimeVersions_flask :: RuntimeVersions -> Maybe Text Source #

Flask framework version (Python only).

runtimeVersions_gin :: RuntimeVersions -> Maybe Text Source #

Gin framework version (Go only).

runtimeVersions_go :: RuntimeVersions -> Maybe Text Source #

Go language version (Go only).

runtimeVersions_javaType :: RuntimeVersions -> Maybe Text Source #

Java platform implementation type (Java only).

runtimeVersions_javaVersion :: RuntimeVersions -> Maybe Text Source #

Java platform implementation type (Java only).

runtimeVersions_jruby :: RuntimeVersions -> Maybe Text Source #

Version of JRuby (Ruby only).

runtimeVersions_laravel :: RuntimeVersions -> Maybe Text Source #

Laravel framework version (PHP only).

runtimeVersions_lumen :: RuntimeVersions -> Maybe Text Source #

Lumen framework version (PHP only).

runtimeVersions_magento :: RuntimeVersions -> Maybe Text Source #

Magento platform version (PHP only).

runtimeVersions_mailman :: RuntimeVersions -> Maybe Text Source #

Mailman framework version (Ruby only).

runtimeVersions_martini :: RuntimeVersions -> Maybe Text Source #

Martini framework version (Go only).

runtimeVersions_negroni :: RuntimeVersions -> Maybe Text Source #

Negroni framework version (Go only).

runtimeVersions_node :: RuntimeVersions -> Maybe Text Source #

Node.js version (Javascript only).

runtimeVersions_osBuild :: RuntimeVersions -> Maybe Text Source #

Build number of the OS (iOStvOSmacOS only).

runtimeVersions_php :: RuntimeVersions -> Maybe Text Source #

Version of PHP (PHP only).

runtimeVersions_python :: RuntimeVersions -> Maybe Text Source #

Version of Python (Python only).

runtimeVersions_que :: RuntimeVersions -> Maybe Text Source #

Que job queue version (Ruby only).

runtimeVersions_rack :: RuntimeVersions -> Maybe Text Source #

Rack webserver version (Ruby only).

runtimeVersions_rails :: RuntimeVersions -> Maybe Text Source #

Ruby on Rails version (Ruby only).

runtimeVersions_rake :: RuntimeVersions -> Maybe Text Source #

Rake tool version (Ruby only).

runtimeVersions_reactNative :: RuntimeVersions -> Maybe Text Source #

Version of React Native (React Native/Expo only).

runtimeVersions_reactNativeJsEngine :: RuntimeVersions -> Maybe Text Source #

Javascript engine type (React Native/Expo only).

runtimeVersions_resque :: RuntimeVersions -> Maybe Text Source #

Resque library version (Ruby only).

runtimeVersions_revel :: RuntimeVersions -> Maybe Text Source #

Revel framework version (Go only).

runtimeVersions_ruby :: RuntimeVersions -> Maybe Text Source #

Version of Ruby (Ruby only).

runtimeVersions_shoryoken :: RuntimeVersions -> Maybe Text Source #

Shoryoken framework version (Ruby only).

runtimeVersions_sidekiq :: RuntimeVersions -> Maybe Text Source #

Sidekiq scheduler version (Ruby only).

runtimeVersions_silex :: RuntimeVersions -> Maybe Text Source #

Silex framework version (PHP only).

runtimeVersions_sinatra :: RuntimeVersions -> Maybe Text Source #

Sinatra DSL version (Ruby only).

runtimeVersions_springBoot :: RuntimeVersions -> Maybe Text Source #

Spring Boot framework version (Java only).

runtimeVersions_springFramework :: RuntimeVersions -> Maybe Text Source #

Spring framework version (Java only).

runtimeVersions_swift :: RuntimeVersions -> Maybe Text Source #

Swift language version (iOStvOSmacOS only).

runtimeVersions_symfony :: RuntimeVersions -> Maybe Text Source #

Symfony framework version (PHP only).

runtimeVersions_tornado :: RuntimeVersions -> Maybe Text Source #

Tornado framework version (Python only).

runtimeVersions_unityScriptingBackend :: RuntimeVersions -> Maybe Text Source #

The Unity scripting backend - Mono or IL2CPP (Unity only).

runtimeVersions_wordpress :: RuntimeVersions -> Maybe Text Source #

Wordpress version (PHP only).

Session

data Session Source #

Details of any session information associated with the event. This can be used alongside the Bugsnag Session Tracking API to associate the event with a session so that a release's crash rate can be determined.

Instances

Instances details
Show Session Source # 
Instance details

Defined in Network.Bugsnag

Generic Session Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Session :: Type -> Type #

Methods

from :: Session -> Rep Session x #

to :: Rep Session x -> Session #

ToJSON Session Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Session Source # 
Instance details

Defined in Network.Bugsnag

type Rep Session Source # 
Instance details

Defined in Network.Bugsnag

type Rep Session = D1 ('MetaData "Session" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Session" 'PrefixI 'True) (S1 ('MetaSel ('Just "session_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "session_startedAt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "session_events") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SessionEvents))))

defaultSession :: Session Source #

A default session.

session_id :: Session -> Text Source #

The unique identifier of the session.

session_startedAt :: Session -> Text Source #

The time (in ISO 8601 format) at which the session started.

session_events :: Session -> SessionEvents Source #

Details of the number of handled and unhandled events that have occurred so far in this session.

SessionEvents

data SessionEvents Source #

Details of the number of handled and unhandled events that have occurred so far in this session.

Instances

Instances details
Show SessionEvents Source # 
Instance details

Defined in Network.Bugsnag

Generic SessionEvents Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep SessionEvents :: Type -> Type #

ToJSON SessionEvents Source # 
Instance details

Defined in Network.Bugsnag

FromJSON SessionEvents Source # 
Instance details

Defined in Network.Bugsnag

type Rep SessionEvents Source # 
Instance details

Defined in Network.Bugsnag

type Rep SessionEvents = D1 ('MetaData "SessionEvents" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "SessionEvents" 'PrefixI 'True) (S1 ('MetaSel ('Just "sessionEvents_handled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "sessionEvents_unhandled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)))

defaultSessionEvents :: SessionEvents Source #

A default sessionEvents.

sessionEvents_handled :: SessionEvents -> Int Source #

Details of the number of handled and unhandled events that have occurred so far in this session.

sessionEvents_unhandled :: SessionEvents -> Int Source #

The number of unhandled events that have occurred in this session (including this event)

PayloadVersion

data PayloadVersion Source #

The version number of the payload. This is currently 5. The Bugsnag-Payload-Version header should be included as well, for compatibility reasons.

Instances

Instances details
Show PayloadVersion Source # 
Instance details

Defined in Network.Bugsnag

Generic PayloadVersion Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep PayloadVersion :: Type -> Type #

ToJSON PayloadVersion Source # 
Instance details

Defined in Network.Bugsnag

FromJSON PayloadVersion Source # 
Instance details

Defined in Network.Bugsnag

type Rep PayloadVersion Source # 
Instance details

Defined in Network.Bugsnag

type Rep PayloadVersion = D1 ('MetaData "PayloadVersion" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "PayloadVersion" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

payloadVersion5 :: PayloadVersion Source #

This API only supports payload version 5.

Notifier

data Notifier Source #

Describes the notifier itself. These properties are used within Bugsnag to track error rates from a notifier.

Instances

Instances details
Show Notifier Source # 
Instance details

Defined in Network.Bugsnag

Generic Notifier Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Notifier :: Type -> Type #

Methods

from :: Notifier -> Rep Notifier x #

to :: Rep Notifier x -> Notifier #

ToJSON Notifier Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Notifier Source # 
Instance details

Defined in Network.Bugsnag

type Rep Notifier Source # 
Instance details

Defined in Network.Bugsnag

type Rep Notifier = D1 ('MetaData "Notifier" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'False) (C1 ('MetaCons "Notifier" 'PrefixI 'True) (S1 ('MetaSel ('Just "notifier_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "notifier_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "notifier_url") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))

thisNotifier :: Notifier Source #

Information describing the notifier in this module.

ExceptionType

data ExceptionType Source #

This should be set for the following platforms so that the stacktrace can be parsed correctly:

Instances

Instances details
Show ExceptionType Source # 
Instance details

Defined in Network.Bugsnag

Generic ExceptionType Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep ExceptionType :: Type -> Type #

ToJSON ExceptionType Source # 
Instance details

Defined in Network.Bugsnag

FromJSON ExceptionType Source # 
Instance details

Defined in Network.Bugsnag

type Rep ExceptionType Source # 
Instance details

Defined in Network.Bugsnag

type Rep ExceptionType = D1 ('MetaData "ExceptionType" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "ExceptionType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

cocoaExceptionType :: ExceptionType Source #

For cocoa (iOStvOSmacOS)

browserjsExceptionType :: ExceptionType Source #

For browser-based JavaScript

expojsExceptionType :: ExceptionType Source #

For JavaScript in Expo

nodejsExceptionType :: ExceptionType Source #

For JavaScript in Node

BreadcrumbType

data BreadcrumbType Source #

A category which describes the breadcrumb, from the list of allowed values.

Instances

Instances details
Show BreadcrumbType Source # 
Instance details

Defined in Network.Bugsnag

Generic BreadcrumbType Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep BreadcrumbType :: Type -> Type #

ToJSON BreadcrumbType Source # 
Instance details

Defined in Network.Bugsnag

FromJSON BreadcrumbType Source # 
Instance details

Defined in Network.Bugsnag

type Rep BreadcrumbType Source # 
Instance details

Defined in Network.Bugsnag

type Rep BreadcrumbType = D1 ('MetaData "BreadcrumbType" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "BreadcrumbType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

navigationBreadcrumbType :: BreadcrumbType Source #

Changing screens or content being displayed, with a defined destination and optionally a previous location.

requestBreadcrumbType :: BreadcrumbType Source #

Sending and receiving requests and responses.

processBreadcrumbType :: BreadcrumbType Source #

Performing an intensive task or query.

logBreadcrumbType :: BreadcrumbType Source #

Messages and severity sent to a logging platform.

userBreadcrumbType :: BreadcrumbType Source #

Actions performed by the user, like text input, button presses, or confirming/cancelling an alert dialog.

stateBreadcrumbType :: BreadcrumbType Source #

Changing the overall state of an app, such as closing, pausing, or being moved to the background, as well as device state changes like memory or battery warnings and network connectivity changes.

errorBreadcrumbType :: BreadcrumbType Source #

An error which was reported to Bugsnag encountered in the same session.

manualBreadcrumbType :: BreadcrumbType Source #

User-defined, manually added breadcrumbs.

Thread

data ThreadType Source #

Used for parsing the stack trace correctly.

Instances

Instances details
Show ThreadType Source # 
Instance details

Defined in Network.Bugsnag

Generic ThreadType Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep ThreadType :: Type -> Type #

ToJSON ThreadType Source # 
Instance details

Defined in Network.Bugsnag

FromJSON ThreadType Source # 
Instance details

Defined in Network.Bugsnag

type Rep ThreadType Source # 
Instance details

Defined in Network.Bugsnag

type Rep ThreadType = D1 ('MetaData "ThreadType" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "ThreadType" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

cocoaThreadType :: ThreadType Source #

For cocoa (iOStvOSmacOS)

browserjsThreadType :: ThreadType Source #

For browser-based JavaScript

Severity

data Severity Source #

The severity of the error

Instances

Instances details
Show Severity Source # 
Instance details

Defined in Network.Bugsnag

Generic Severity Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep Severity :: Type -> Type #

Methods

from :: Severity -> Rep Severity x #

to :: Rep Severity x -> Severity #

ToJSON Severity Source # 
Instance details

Defined in Network.Bugsnag

FromJSON Severity Source # 
Instance details

Defined in Network.Bugsnag

type Rep Severity Source # 
Instance details

Defined in Network.Bugsnag

type Rep Severity = D1 ('MetaData "Severity" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "Severity" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

errorSeverity :: Severity Source #

The default for unhandled errors.

warningSeverity :: Severity Source #

The default when Bugsnag.notify is called.

infoSeverity :: Severity Source #

Can be used in manual Bugsnag.notify calls.

SeverityReasonType

data SeverityReasonType Source #

A type key that represents the reason for the assigned severity.

unhandledExceptionSeverityReasonType :: SeverityReasonType Source #

Whenever an uncaught exception is discovered (generic).

unhandledErrorSeverityReasonType :: SeverityReasonType Source #

When an error is discovered (PHP).

logSeverityReasonType :: SeverityReasonType Source #

Whenever a log message is sent (generic).

signalSeverityReasonType :: SeverityReasonType Source #

Whenever a "fatal" signal is discovered (iOS).

strictModeSeverityReasonType :: SeverityReasonType Source #

Whenever a strictMode issue is discovered (Android).

unhandledPromiseRejectionSeverityReasonType :: SeverityReasonType Source #

Whenever an unhandled promise rejection is discovered (JSNode JSReact Native).

errorClassSeverityReasonType :: SeverityReasonType Source #

Whenever an exception with a particular class is automatically sent (Ruby).

unhandledPanicSeverityReasonType :: SeverityReasonType Source #

When a panic is unhandled and crashes the app (Go).

userCallbackSetSeveritySeverityReasonType :: SeverityReasonType Source #

Whenever a callback changes a report's severity (generic).

userSpecifiedSeveritySeverityReasonType :: SeverityReasonType Source #

Whenever a severity is set through a manual notify call (generic).

handledExceptionSeverityReasonType :: SeverityReasonType Source #

Whenever a handled exception is sent through (generic).

handledErrorSeverityReasonType :: SeverityReasonType Source #

Whenever a handled error is sent through (PHP).

handledPanicSeverityReasonType :: SeverityReasonType Source #

Whenever a panic is handled through AutoNotify or Recover (Go).

userContextSetSeveritySeverityReasonType :: SeverityReasonType Source #

Whenever a panic is handled through AutoNotify or Recover (Go).

anrErrorSeverityReasonType :: SeverityReasonType Source #

Whenever an ANR is detected (Android).

outOfMemorySeverityReasonType :: SeverityReasonType Source #

When an app is terminated because it used too much memory (Cocoa).

BinaryArch

data BinaryArch Source #

The architecture of the running binary (Android only).

Instances

Instances details
Show BinaryArch Source # 
Instance details

Defined in Network.Bugsnag

Generic BinaryArch Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep BinaryArch :: Type -> Type #

ToJSON BinaryArch Source # 
Instance details

Defined in Network.Bugsnag

FromJSON BinaryArch Source # 
Instance details

Defined in Network.Bugsnag

type Rep BinaryArch Source # 
Instance details

Defined in Network.Bugsnag

type Rep BinaryArch = D1 ('MetaData "BinaryArch" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "BinaryArch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

x86BinaryArch :: BinaryArch Source #

x86/i386 (32-bit).

arm32BinaryArch :: BinaryArch Source #

armeabi/armeabi-v7a (32-bit).

arm64BinaryArch :: BinaryArch Source #

arm64-v8a (64-bit).

CpuAbi

data CpuAbi Source #

The ABIs supported by the device (Android only).

Instances

Instances details
Show CpuAbi Source # 
Instance details

Defined in Network.Bugsnag

Generic CpuAbi Source # 
Instance details

Defined in Network.Bugsnag

Associated Types

type Rep CpuAbi :: Type -> Type #

Methods

from :: CpuAbi -> Rep CpuAbi x #

to :: Rep CpuAbi x -> CpuAbi #

ToJSON CpuAbi Source # 
Instance details

Defined in Network.Bugsnag

FromJSON CpuAbi Source # 
Instance details

Defined in Network.Bugsnag

type Rep CpuAbi Source # 
Instance details

Defined in Network.Bugsnag

type Rep CpuAbi = D1 ('MetaData "CpuAbi" "Network.Bugsnag" "bugsnag-hs-0.2.0.8-57uxdm2mPxxCkkiECqtRI8" 'True) (C1 ('MetaCons "CpuAbi" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))