wai-middleware-rollbar-0.6.0: Middleware that communicates to Rollbar.

Copyright(c) Hardy Jones 2017
LicenseBSD3
Maintainerjones3.hardy@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Rollbar.Item.Data

Description

The majority of this module is metadata that is reported for each item.

Synopsis

Documentation

data Data body headers Source #

The main payload of an item. Most of this is metadata.

N.B. While it's entirely possible for you to create one of these yourself, it's usually easier to use helpers like info and error.

Constructors

Data 

Fields

Instances

Eq body => Eq (Data body headers) Source # 

Methods

(==) :: Data body headers -> Data body headers -> Bool #

(/=) :: Data body headers -> Data body headers -> Bool #

Show body => Show (Data body headers) Source # 

Methods

showsPrec :: Int -> Data body headers -> ShowS #

show :: Data body headers -> String #

showList :: [Data body headers] -> ShowS #

Generic (Data body headers) Source # 

Associated Types

type Rep (Data body headers) :: * -> * #

Methods

from :: Data body headers -> Rep (Data body headers) x #

to :: Rep (Data body headers) x -> Data body headers #

FromJSON body => FromJSON (Data body headers) Source # 

Methods

parseJSON :: Value -> Parser (Data body headers) #

parseJSONList :: Value -> Parser [Data body headers] #

(RemoveHeaders headers, ToJSON body) => ToJSON (Data body headers) Source # 

Methods

toJSON :: Data body headers -> Value #

toEncoding :: Data body headers -> Encoding #

toJSONList :: [Data body headers] -> Value #

toEncodingList :: [Data body headers] -> Encoding #

type Rep (Data body headers) Source # 
type Rep (Data body headers) = D1 (MetaData "Data" "Rollbar.Item.Data" "wai-middleware-rollbar-0.6.0-Cpbn259FJmr8TOO6h8UIus" False) (C1 (MetaCons "Data" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "body") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Body body))) (S1 (MetaSel (Just Symbol "codeVersion") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe CodeVersion)))) ((:*:) (S1 (MetaSel (Just Symbol "context") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Context))) (S1 (MetaSel (Just Symbol "custom") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (HashMap Text Value)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "environment") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Environment)) (S1 (MetaSel (Just Symbol "fingerprint") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Fingerprint)))) ((:*:) (S1 (MetaSel (Just Symbol "framework") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Framework))) (S1 (MetaSel (Just Symbol "language") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Hardcoded "haskell")))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "level") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Level)) (S1 (MetaSel (Just Symbol "notifier") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Notifier))) ((:*:) (S1 (MetaSel (Just Symbol "person") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Person))) (S1 (MetaSel (Just Symbol "platform") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Platform)))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "request") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (Request headers)))) (S1 (MetaSel (Just Symbol "server") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Server)))) ((:*:) (S1 (MetaSel (Just Symbol "timestamp") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UTCTime))) ((:*:) (S1 (MetaSel (Just Symbol "title") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Title))) (S1 (MetaSel (Just Symbol "uuid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe UUID4)))))))))

newtype Context Source #

The place in the code where this item came from.

Constructors

Context Text 

newtype Title Source #

The title of the item.

Constructors

Title Text 

newtype UUID4 Source #

A unique identifier for each item.

Constructors

UUID4 UUID 

Instances

Eq UUID4 Source # 

Methods

(==) :: UUID4 -> UUID4 -> Bool #

(/=) :: UUID4 -> UUID4 -> Bool #

Show UUID4 Source # 

Methods

showsPrec :: Int -> UUID4 -> ShowS #

show :: UUID4 -> String #

showList :: [UUID4] -> ShowS #

Generic UUID4 Source # 

Associated Types

type Rep UUID4 :: * -> * #

Methods

from :: UUID4 -> Rep UUID4 x #

to :: Rep UUID4 x -> UUID4 #

FromJSON UUID4 Source # 
ToJSON UUID4 Source # 
type Rep UUID4 Source # 
type Rep UUID4 = D1 (MetaData "UUID4" "Rollbar.Item.Data" "wai-middleware-rollbar-0.6.0-Cpbn259FJmr8TOO6h8UIus" True) (C1 (MetaCons "UUID4" PrefixI False) (S1 (MetaSel (Nothing Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UUID)))

class RemoveHeaders headers Source #

Remove the headers given from the underlying request headers.

Minimal complete definition

removeHeaders

Instances

RemoveHeaders ([] Symbol) Source # 
(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders ((:) Symbol header headers) Source # 

Methods

removeHeaders :: MissingHeaders ((Symbol ': header) headers) -> RequestHeaders