rollbar-hs-0.3.1.0: Core Rollbar data types and APIs.

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 # 
Instance details

Defined in Rollbar.Item.Data

Methods

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

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

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

Defined in Rollbar.Item.Data

Methods

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

show :: Data body headers -> String #

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

Generic (Data body headers) Source # 
Instance details

Defined in Rollbar.Item.Data

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 #

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

Defined in Rollbar.Item.Data

Methods

toJSON :: Data body headers -> Value #

toEncoding :: Data body headers -> Encoding #

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

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

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

Defined in Rollbar.Item.Data

Methods

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

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

type Rep (Data body headers) Source # 
Instance details

Defined in Rollbar.Item.Data

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

newtype Context Source #

The place in the code where this item came from.

Constructors

Context Text 
Instances
Eq Context Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

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

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

Show Context Source # 
Instance details

Defined in Rollbar.Item.Data

IsString Context Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

fromString :: String -> Context #

ToJSON Context Source # 
Instance details

Defined in Rollbar.Item.Data

FromJSON Context Source # 
Instance details

Defined in Rollbar.Item.Data

newtype Fingerprint Source #

How to group the item.

Constructors

Fingerprint Text 

newtype Framework Source #

The framework that is using this package. E.g. "scotty", "servant", "yesod"

Constructors

Framework Text 
Instances
Eq Framework Source # 
Instance details

Defined in Rollbar.Item.Data

Show Framework Source # 
Instance details

Defined in Rollbar.Item.Data

IsString Framework Source # 
Instance details

Defined in Rollbar.Item.Data

ToJSON Framework Source # 
Instance details

Defined in Rollbar.Item.Data

FromJSON Framework Source # 
Instance details

Defined in Rollbar.Item.Data

newtype Title Source #

The title of the item.

Constructors

Title Text 
Instances
Eq Title Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

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

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

Show Title Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

showsPrec :: Int -> Title -> ShowS #

show :: Title -> String #

showList :: [Title] -> ShowS #

IsString Title Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

fromString :: String -> Title #

ToJSON Title Source # 
Instance details

Defined in Rollbar.Item.Data

FromJSON Title Source # 
Instance details

Defined in Rollbar.Item.Data

newtype UUID4 Source #

A unique identifier for each item.

Constructors

UUID4 UUID 
Instances
Eq UUID4 Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

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

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

Show UUID4 Source # 
Instance details

Defined in Rollbar.Item.Data

Methods

showsPrec :: Int -> UUID4 -> ShowS #

show :: UUID4 -> String #

showList :: [UUID4] -> ShowS #

Generic UUID4 Source # 
Instance details

Defined in Rollbar.Item.Data

Associated Types

type Rep UUID4 :: * -> * #

Methods

from :: UUID4 -> Rep UUID4 x #

to :: Rep UUID4 x -> UUID4 #

ToJSON UUID4 Source # 
Instance details

Defined in Rollbar.Item.Data

FromJSON UUID4 Source # 
Instance details

Defined in Rollbar.Item.Data

type Rep UUID4 Source # 
Instance details

Defined in Rollbar.Item.Data

type Rep UUID4 = D1 (MetaData "UUID4" "Rollbar.Item.Data" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" True) (C1 (MetaCons "UUID4" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 UUID)))

class RemoveHeaders (headers :: [Symbol]) Source #

Remove the headers given from the underlying request headers.

Minimal complete definition

removeHeaders

Instances
RemoveHeaders ([] :: [Symbol]) Source # 
Instance details

Defined in Rollbar.Item.MissingHeaders

(KnownSymbol header, RemoveHeaders headers) => RemoveHeaders (header ': headers) Source # 
Instance details

Defined in Rollbar.Item.MissingHeaders

Methods

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