Package com.oracle.bmc.apmtraces.model
Class TraceSnapshot.Builder
- java.lang.Object
-
- com.oracle.bmc.apmtraces.model.TraceSnapshot.Builder
-
- Enclosing class:
- TraceSnapshot
public static class TraceSnapshot.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TraceSnapshot
build()
TraceSnapshot.Builder
copy(TraceSnapshot model)
TraceSnapshot.Builder
key(String key)
Unique identifier (traceId) for the trace that represents the span set.TraceSnapshot.Builder
spanSnapshots(List<SpanSnapshot> spanSnapshots)
List of spans.TraceSnapshot.Builder
timeEnded(Date timeEnded)
End time of the trace.TraceSnapshot.Builder
timeStarted(Date timeStarted)
Start time of the trace.TraceSnapshot.Builder
traceSnapshotDetails(List<SnapshotDetail> traceSnapshotDetails)
Trace snapshots properties.
-
-
-
Method Detail
-
key
public TraceSnapshot.Builder key(String key)
Unique identifier (traceId) for the trace that represents the span set.Note that this field is defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance Monitoring.
- Parameters:
key
- the value to set- Returns:
- this builder
-
timeStarted
public TraceSnapshot.Builder timeStarted(Date timeStarted)
Start time of the trace.- Parameters:
timeStarted
- the value to set- Returns:
- this builder
-
timeEnded
public TraceSnapshot.Builder timeEnded(Date timeEnded)
End time of the trace.- Parameters:
timeEnded
- the value to set- Returns:
- this builder
-
traceSnapshotDetails
public TraceSnapshot.Builder traceSnapshotDetails(List<SnapshotDetail> traceSnapshotDetails)
Trace snapshots properties.- Parameters:
traceSnapshotDetails
- the value to set- Returns:
- this builder
-
spanSnapshots
public TraceSnapshot.Builder spanSnapshots(List<SpanSnapshot> spanSnapshots)
List of spans.- Parameters:
spanSnapshots
- the value to set- Returns:
- this builder
-
build
public TraceSnapshot build()
-
copy
public TraceSnapshot.Builder copy(TraceSnapshot model)
-
-