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 |
Documentation
A segment from a trace that has been ingested by the X-Ray service. The
segment can be compiled from documents uploaded with
PutTraceSegments,
or an inferred
segment for a downstream service, generated from a
subsegment sent by the service that called it.
For the full segment document schema, see Amazon Web Services X-Ray Segment Documents in the Amazon Web Services X-Ray Developer Guide.
See: newSegment
smart constructor.
Instances
Eq Segment Source # | |
Read Segment Source # | |
Show Segment Source # | |
Generic Segment Source # | |
NFData Segment Source # | |
Defined in Amazonka.XRay.Types.Segment | |
Hashable Segment Source # | |
Defined in Amazonka.XRay.Types.Segment | |
FromJSON Segment Source # | |
type Rep Segment Source # | |
Defined in Amazonka.XRay.Types.Segment type Rep Segment = D1 ('MetaData "Segment" "Amazonka.XRay.Types.Segment" "libZSservicesZSamazonka-xrayZSamazonka-xray" 'False) (C1 ('MetaCons "Segment'" 'PrefixI 'True) (S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) |
newSegment :: Segment Source #
Create a value of Segment
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:document:Segment'
, segment_document
- The segment document.
$sel:id:Segment'
, segment_id
- The segment's ID.