| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Pinpoint.Types.Session
Description
Synopsis
- data Session = Session' {
- duration :: Maybe Int
- stopTimestamp :: Maybe Text
- startTimestamp :: Text
- id :: Text
- newSession :: Text -> Text -> Session
- session_duration :: Lens' Session (Maybe Int)
- session_stopTimestamp :: Lens' Session (Maybe Text)
- session_startTimestamp :: Lens' Session Text
- session_id :: Lens' Session Text
Documentation
Provides information about a session.
See: newSession smart constructor.
Constructors
| Session' | |
Fields
| |
Instances
| ToJSON Session Source # | |
Defined in Amazonka.Pinpoint.Types.Session | |
| Generic Session Source # | |
| Read Session Source # | |
| Show Session Source # | |
| NFData Session Source # | |
Defined in Amazonka.Pinpoint.Types.Session | |
| Eq Session Source # | |
| Hashable Session Source # | |
Defined in Amazonka.Pinpoint.Types.Session | |
| type Rep Session Source # | |
Defined in Amazonka.Pinpoint.Types.Session type Rep Session = D1 ('MetaData "Session" "Amazonka.Pinpoint.Types.Session" "amazonka-pinpoint-2.0-GBFs9S7wa7bFiDe66NqAzt" 'False) (C1 ('MetaCons "Session'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "stopTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "startTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))) | |
Create a value of Session with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:duration:Session', session_duration - The duration of the session, in milliseconds.
$sel:stopTimestamp:Session', session_stopTimestamp - The date and time when the session ended.
$sel:startTimestamp:Session', session_startTimestamp - The date and time when the session began.
$sel:id:Session', session_id - The unique identifier for the session.