Class Trace.Builder
java.lang.Object
com.ants.platform.client.resources.commons.types.Trace.Builder
- All Implemented Interfaces:
Trace._FinalStage, Trace.IdStage, Trace.TimestampStage
- Enclosing class:
Trace
public static final class Trace.Builder
extends Object
implements Trace.IdStage, Trace.TimestampStage, Trace._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionbuild()environment(String environment) The environment from which this trace originated.environment(Optional<String> environment) The unique identifier of a traceThe input data of the trace.The metadata associated with the trace.The name of the traceThe output data of the trace.Public traces are accessible via url without loginThe release version of the application when the trace was createdThe session identifier associated with the traceThe tags associated with the trace.timestamp(OffsetDateTime timestamp) The timestamp when the trace was createdThe user identifier associated with the traceThe version of the trace
-
Method Details
-
from
- Specified by:
fromin interfaceTrace.IdStage
-
id
The unique identifier of a trace
- Specified by:
idin interfaceTrace.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
timestamp
The timestamp when the trace was created
- Specified by:
timestampin interfaceTrace.TimestampStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
The environment from which this trace originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'ants-platform'.
- Specified by:
environmentin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceTrace._FinalStage
-
public_
Public traces are accessible via url without login
- Specified by:
public_in interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
public_
- Specified by:
public_in interfaceTrace._FinalStage
-
tags
The tags associated with the trace. Can be an array of strings or null.
- Specified by:
tagsin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
- Specified by:
tagsin interfaceTrace._FinalStage
-
metadata
The metadata associated with the trace. Can be any JSON.
- Specified by:
metadatain interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
- Specified by:
metadatain interfaceTrace._FinalStage
-
userId
The user identifier associated with the trace
- Specified by:
userIdin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
- Specified by:
userIdin interfaceTrace._FinalStage
-
version
The version of the trace
- Specified by:
versionin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
- Specified by:
versionin interfaceTrace._FinalStage
-
release
The release version of the application when the trace was created
- Specified by:
releasein interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
release
- Specified by:
releasein interfaceTrace._FinalStage
-
sessionId
The session identifier associated with the trace
- Specified by:
sessionIdin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
sessionId
- Specified by:
sessionIdin interfaceTrace._FinalStage
-
output
The output data of the trace. Can be any JSON.
- Specified by:
outputin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
output
- Specified by:
outputin interfaceTrace._FinalStage
-
input
The input data of the trace. Can be any JSON.
- Specified by:
inputin interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
input
- Specified by:
inputin interfaceTrace._FinalStage
-
name
The name of the trace
- Specified by:
namein interfaceTrace._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
- Specified by:
namein interfaceTrace._FinalStage
-
build
- Specified by:
buildin interfaceTrace._FinalStage
-