CopyableBuilder<Trace.Builder,Trace>
, SdkBuilder<Trace.Builder,Trace>
public static interface Trace.Builder extends CopyableBuilder<Trace.Builder,Trace>
Modifier and Type | Method | Description |
---|---|---|
Trace.Builder |
duration(Double duration) |
The length of time in seconds between the start time of the root segment and the end time of the last segment
that completed.
|
Trace.Builder |
id(String id) |
The unique identifier for the request that generated the trace's segments and subsegments.
|
Trace.Builder |
segments(Collection<Segment> segments) |
Segment documents for the segments and subsegments that comprise the trace.
|
Trace.Builder |
segments(Segment... segments) |
Segment documents for the segments and subsegments that comprise the trace.
|
copy
apply, build
Trace.Builder id(String id)
The unique identifier for the request that generated the trace's segments and subsegments.
id
- The unique identifier for the request that generated the trace's segments and subsegments.Trace.Builder duration(Double duration)
The length of time in seconds between the start time of the root segment and the end time of the last segment that completed.
duration
- The length of time in seconds between the start time of the root segment and the end time of the last
segment that completed.Trace.Builder segments(Collection<Segment> segments)
Segment documents for the segments and subsegments that comprise the trace.
segments
- Segment documents for the segments and subsegments that comprise the trace.Trace.Builder segments(Segment... segments)
Segment documents for the segments and subsegments that comprise the trace.
NOTE: This method appends the values to the existing list (if any). Use
#setSegments(java.util.Collection)
or #withSegments(java.util.Collection)
if you want to
override the existing values.
segments
- Segment documents for the segments and subsegments that comprise the trace.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.