Class ProjectLogsEvent.Metrics
-
- All Implemented Interfaces:
public final class ProjectLogsEvent.MetricsMetrics are numerical measurements tracking the execution of the code that produced the project logs event. Use "start" and "end" to track the time span over which the project logs event was produced
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classProjectLogsEvent.Metrics.BuilderA builder for Metrics.
-
Method Summary
Modifier and Type Method Description final JsonValue_callerFilename()This metric is deprecated final JsonValue_callerFunctionname()This metric is deprecated final JsonValue_callerLineno()This metric is deprecated final Optional<Long>completionTokens()The number of tokens in the completion generated by the model (only set if this is an LLM span) final Optional<Double>end()A unix timestamp recording when the section of code which produced the project logs event finished final Optional<Long>promptTokens()The number of tokens in the prompt used to generate the project logs event (only set if this is an LLM span) final Optional<Double>start()A unix timestamp recording when the section of code which produced the project logs event started final Optional<Long>tokens()The total number of tokens in the input and output of the project logs event. final JsonField<Long>_completionTokens()Returns the raw JSON value of completionTokens. final JsonField<Double>_end()Returns the raw JSON value of end. final JsonField<Long>_promptTokens()Returns the raw JSON value of promptTokens. final JsonField<Double>_start()Returns the raw JSON value of start. final JsonField<Long>_tokens()Returns the raw JSON value of tokens. final Map<String, JsonValue>_additionalProperties()final ProjectLogsEvent.Metricsvalidate()final ProjectLogsEvent.Metrics.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ProjectLogsEvent.Metrics.Builderbuilder()Returns a mutable builder for constructing an instance of Metrics. -
-
Method Detail
-
_callerFilename
final JsonValue _callerFilename()
This metric is deprecated
-
_callerFunctionname
final JsonValue _callerFunctionname()
This metric is deprecated
-
_callerLineno
final JsonValue _callerLineno()
This metric is deprecated
-
completionTokens
final Optional<Long> completionTokens()
The number of tokens in the completion generated by the model (only set if this is an LLM span)
-
end
final Optional<Double> end()
A unix timestamp recording when the section of code which produced the project logs event finished
-
promptTokens
final Optional<Long> promptTokens()
The number of tokens in the prompt used to generate the project logs event (only set if this is an LLM span)
-
start
final Optional<Double> start()
A unix timestamp recording when the section of code which produced the project logs event started
-
tokens
final Optional<Long> tokens()
The total number of tokens in the input and output of the project logs event.
-
_completionTokens
final JsonField<Long> _completionTokens()
Returns the raw JSON value of completionTokens.
Unlike completionTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_end
final JsonField<Double> _end()
Returns the raw JSON value of end.
Unlike end, this method doesn't throw if the JSON field has an unexpected type.
-
_promptTokens
final JsonField<Long> _promptTokens()
Returns the raw JSON value of promptTokens.
Unlike promptTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_start
final JsonField<Double> _start()
Returns the raw JSON value of start.
Unlike start, this method doesn't throw if the JSON field has an unexpected type.
-
_tokens
final JsonField<Long> _tokens()
Returns the raw JSON value of tokens.
Unlike tokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
validate
final ProjectLogsEvent.Metrics validate()
-
toBuilder
final ProjectLogsEvent.Metrics.Builder toBuilder()
-
builder
final static ProjectLogsEvent.Metrics.Builder builder()
Returns a mutable builder for constructing an instance of Metrics.
-
-
-
-