Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Session = Session' {
- stopTimestamp :: Maybe Text
- duration :: Maybe Int
- startTimestamp :: Text
- id :: Text
- newSession :: Text -> Text -> Session
- session_stopTimestamp :: Lens' Session (Maybe Text)
- session_duration :: Lens' Session (Maybe Int)
- session_startTimestamp :: Lens' Session Text
- session_id :: Lens' Session Text
Documentation
Provides information about a session.
See: newSession
smart constructor.
Session' | |
|
Instances
Eq Session Source # | |
Read Session Source # | |
Show Session Source # | |
Generic Session Source # | |
NFData Session Source # | |
Defined in Amazonka.Pinpoint.Types.Session | |
Hashable Session Source # | |
Defined in Amazonka.Pinpoint.Types.Session | |
ToJSON 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" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "Session'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "stopTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))) :*: (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:stopTimestamp:Session'
, session_stopTimestamp
- The date and time when the session ended.
$sel:duration:Session'
, session_duration
- The duration of the session, in milliseconds.
$sel:startTimestamp:Session'
, session_startTimestamp
- The date and time when the session began.
$sel:id:Session'
, session_id
- The unique identifier for the session.