Interface Observation._FinalStage
- All Known Implementing Classes:
Observation.Builder
- Enclosing class:
Observation
public static interface Observation._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()completionStartTime(Nullable<OffsetDateTime> completionStartTime) completionStartTime(OffsetDateTime completionStartTime) completionStartTime(Optional<OffsetDateTime> completionStartTime) The completion start time of the observationcostDetails(String key, Double value) costDetails(Map<String, Double> costDetails) The cost details of the observation.endTime(Nullable<OffsetDateTime> endTime) endTime(OffsetDateTime endTime) endTime(Optional<OffsetDateTime> endTime) The end time of the observation.The model used for the observationThe name of the observationparentObservationId(Nullable<String> parentObservationId) parentObservationId(String parentObservationId) parentObservationId(Optional<String> parentObservationId) The parent observation IDThe prompt ID associated with the observationputAllCostDetails(Map<String, Double> costDetails) putAllUsageDetails(Map<String, Integer> usageDetails) statusMessage(Nullable<String> statusMessage) statusMessage(String statusMessage) statusMessage(Optional<String> statusMessage) The status message of the observationThe trace ID associated with the observationusageDetails(String key, Integer value) usageDetails(Map<String, Integer> usageDetails) The usage details of the observation.The version of the observation
-
Method Details
-
build
Observation build() -
additionalProperty
-
additionalProperties
-
traceId
The trace ID associated with the observation
-
traceId
-
traceId
-
name
The name of the observation
-
name
-
name
-
endTime
The end time of the observation.
-
endTime
-
endTime
-
completionStartTime
The completion start time of the observation
-
completionStartTime
-
completionStartTime
-
model
The model used for the observation
-
model
-
model
-
version
The version of the observation
-
version
-
version
-
statusMessage
The status message of the observation
-
statusMessage
-
statusMessage
-
parentObservationId
The parent observation ID
-
parentObservationId
-
parentObservationId
-
promptId
The prompt ID associated with the observation
-
promptId
-
promptId
-
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.
-
putAllUsageDetails
-
usageDetails
-
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.
-
putAllCostDetails
-
costDetails
-