Interface ObservationsView._FinalStage
- All Known Implementing Classes:
ObservationsView.Builder
- Enclosing class:
ObservationsView
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()calculatedInputCost(Nullable<Double> calculatedInputCost) calculatedInputCost(Double calculatedInputCost) calculatedInputCost(Optional<Double> calculatedInputCost) (Deprecated.calculatedOutputCost(Nullable<Double> calculatedOutputCost) calculatedOutputCost(Double calculatedOutputCost) calculatedOutputCost(Optional<Double> calculatedOutputCost) (Deprecated.calculatedTotalCost(Nullable<Double> calculatedTotalCost) calculatedTotalCost(Double calculatedTotalCost) calculatedTotalCost(Optional<Double> calculatedTotalCost) (Deprecated.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.inputPrice(Nullable<Double> inputPrice) inputPrice(Double inputPrice) inputPrice(Optional<Double> inputPrice) The price of the input in USDThe latency in seconds.The model used for the observationThe unique identifier of the modelThe name of the observationoutputPrice(Nullable<Double> outputPrice) outputPrice(Double outputPrice) outputPrice(Optional<Double> outputPrice) The price of the output in USD.parentObservationId(Nullable<String> parentObservationId) parentObservationId(String parentObservationId) parentObservationId(Optional<String> parentObservationId) The parent observation IDThe prompt ID associated with the observationpromptName(Nullable<String> promptName) promptName(String promptName) promptName(Optional<String> promptName) The name of the prompt associated with the observationpromptVersion(Nullable<Integer> promptVersion) promptVersion(Integer promptVersion) promptVersion(Optional<Integer> promptVersion) The version of the prompt 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 observationtimeToFirstToken(Nullable<Double> timeToFirstToken) timeToFirstToken(Double timeToFirstToken) timeToFirstToken(Optional<Double> timeToFirstToken) The time to the first token in secondstotalPrice(Nullable<Double> totalPrice) totalPrice(Double totalPrice) totalPrice(Optional<Double> totalPrice) The total price in USD.The 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
ObservationsView 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
-
promptName
The name of the prompt associated with the observation
-
promptName
-
promptName
-
promptVersion
The version of the prompt associated with the observation
-
promptVersion
-
promptVersion
-
modelId
The unique identifier of the model
-
modelId
-
modelId
-
inputPrice
The price of the input in USD
-
inputPrice
-
inputPrice
-
outputPrice
The price of the output in USD.
-
outputPrice
-
outputPrice
-
totalPrice
The total price in USD.
-
totalPrice
-
totalPrice
-
calculatedInputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the input in USD
-
calculatedInputCost
-
calculatedInputCost
-
calculatedOutputCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated cost of the output in USD
-
calculatedOutputCost
-
calculatedOutputCost
-
calculatedTotalCost
(Deprecated. Use usageDetails and costDetails instead.) The calculated total cost in USD
-
calculatedTotalCost
-
calculatedTotalCost
-
latency
The latency in seconds.
-
latency
-
latency
-
timeToFirstToken
The time to the first token in seconds
-
timeToFirstToken
-
timeToFirstToken
-