Class Observation.Builder
- All Implemented Interfaces:
Observation._FinalStage,Observation.IdStage,Observation.LevelStage,Observation.StartTimeStage,Observation.TypeStage
- Enclosing class:
Observation
-
Method Summary
Modifier and TypeMethodDescriptionbuild()completionStartTime(OffsetDateTime completionStartTime) The completion start time of the observationcompletionStartTime(Optional<OffsetDateTime> completionStartTime) costDetails(Map<String, Double> costDetails) The cost details of the observation.costDetails(Optional<Map<String, Double>> costDetails) endTime(OffsetDateTime endTime) The end time of the observation.endTime(Optional<OffsetDateTime> endTime) environment(String environment) The environment from which this observation originated.environment(Optional<String> environment) from(Observation other) The unique identifier of the observationThe input data of the observationlevel(ObservationLevel level) The level of the observationAdditional metadata of the observationThe model used for the observationmodelParameters(Map<String, MapValue> modelParameters) The parameters of the model used for the observationmodelParameters(Optional<Map<String, MapValue>> modelParameters) The name of the observationThe output data of the observationparentObservationId(String parentObservationId) The parent observation IDparentObservationId(Optional<String> parentObservationId) The prompt ID associated with the observationstartTime(OffsetDateTime startTime) The start time of the observationstatusMessage(String statusMessage) The status message of the observationstatusMessage(Optional<String> statusMessage) The trace ID associated with the observationThe type of the observation(Deprecated.usageDetails(Map<String, Integer> usageDetails) The usage details of the observation.usageDetails(Optional<Map<String, Integer>> usageDetails) The version of the observation
-
Method Details
-
from
- Specified by:
fromin interfaceObservation.IdStage
-
id
The unique identifier of the observation
- Specified by:
idin interfaceObservation.IdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
type
The type of the observation
- Specified by:
typein interfaceObservation.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
startTime
The start time of the observation
- Specified by:
startTimein interfaceObservation.StartTimeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
level
The level of the observation
- Specified by:
levelin interfaceObservation.LevelStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
The environment from which this observation originated. Can be any lowercase alphanumeric string with hyphens and underscores that does not start with 'ants-platform'.
- Specified by:
environmentin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
environment
- Specified by:
environmentin interfaceObservation._FinalStage
-
costDetails
The cost details of the observation. Key is the name of the cost metric, value is the cost in USD. The total key is the sum of all (non-total) cost metrics or the total value ingested.
- Specified by:
costDetailsin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
costDetails
- Specified by:
costDetailsin interfaceObservation._FinalStage
-
usageDetails
The usage details of the observation. Key is the name of the usage metric, value is the number of units consumed. The total key is the sum of all (non-total) usage metrics or the total value ingested.
- Specified by:
usageDetailsin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usageDetails
- Specified by:
usageDetailsin interfaceObservation._FinalStage
-
promptId
The prompt ID associated with the observation
- Specified by:
promptIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
promptId
- Specified by:
promptIdin interfaceObservation._FinalStage
-
parentObservationId
The parent observation ID
- Specified by:
parentObservationIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
parentObservationId
- Specified by:
parentObservationIdin interfaceObservation._FinalStage
-
statusMessage
The status message of the observation
- Specified by:
statusMessagein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
statusMessage
- Specified by:
statusMessagein interfaceObservation._FinalStage
-
usage
(Deprecated. Use usageDetails and costDetails instead.) The usage data of the observation
- Specified by:
usagein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
usage
- Specified by:
usagein interfaceObservation._FinalStage
-
output
The output data of the observation
- Specified by:
outputin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
output
- Specified by:
outputin interfaceObservation._FinalStage
-
metadata
Additional metadata of the observation
- Specified by:
metadatain interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
metadata
- Specified by:
metadatain interfaceObservation._FinalStage
-
version
The version of the observation
- Specified by:
versionin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
version
- Specified by:
versionin interfaceObservation._FinalStage
-
input
The input data of the observation
- Specified by:
inputin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
input
- Specified by:
inputin interfaceObservation._FinalStage
-
modelParameters
The parameters of the model used for the observation
- Specified by:
modelParametersin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
modelParameters
- Specified by:
modelParametersin interfaceObservation._FinalStage
-
model
The model used for the observation
- Specified by:
modelin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
model
- Specified by:
modelin interfaceObservation._FinalStage
-
completionStartTime
The completion start time of the observation
- Specified by:
completionStartTimein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
completionStartTime
- Specified by:
completionStartTimein interfaceObservation._FinalStage
-
endTime
The end time of the observation.
- Specified by:
endTimein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
endTime
- Specified by:
endTimein interfaceObservation._FinalStage
-
name
The name of the observation
- Specified by:
namein interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
name
- Specified by:
namein interfaceObservation._FinalStage
-
traceId
The trace ID associated with the observation
- Specified by:
traceIdin interfaceObservation._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
traceId
- Specified by:
traceIdin interfaceObservation._FinalStage
-
build
- Specified by:
buildin interfaceObservation._FinalStage
-