| 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.XRay.Types.Segment
Description
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.
Constructors
| Segment' | |
Instances
| FromJSON Segment Source # | |
| Generic Segment Source # | |
| Read Segment Source # | |
| Show Segment Source # | |
| NFData Segment Source # | |
Defined in Amazonka.XRay.Types.Segment | |
| Eq Segment Source # | |
| Hashable Segment Source # | |
Defined in Amazonka.XRay.Types.Segment | |
| type Rep Segment Source # | |
Defined in Amazonka.XRay.Types.Segment type Rep Segment = D1 ('MetaData "Segment" "Amazonka.XRay.Types.Segment" "amazonka-xray-2.0-EVMSPoflqtHB9ZqvEIOE4Q" '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.