Package com.datadog.api.client.v2.model
Class LLMObsExperimentSpanWithEvals
java.lang.Object
com.datadog.api.client.v2.model.LLMObsExperimentSpanWithEvals
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsExperimentSpanWithEvals
extends Object
An experiment span enriched with its associated evaluation metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddEvalMetricsItem(LLMObsExperimentEvalMetricEvent evalMetricsItem) addTagsItem(String tagsItem) datasetRecordId(String datasetRecordId) booleanReturn true if this LLMObsExperimentSpanWithEvals object is equal to o.evalMetrics(List<LLMObsExperimentEvalMetricEvent> evalMetrics) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.ID of the dataset record this span evaluated.org.openapitools.jackson.nullable.JsonNullable<String>Duration of the span in nanoseconds.Evaluation metrics associated with this span.getId()Unique identifier of the span.getMeta()Metadata associated with an experiment span.Numeric metrics attached to the span.getName()Name of the span.Parent span ID, if any.Span ID.Start time in nanoseconds since Unix epoch.Status of the span.getTags()Tags associated with the span.Trace ID.inthashCode()meta(LLMObsExperimentSpanMeta meta) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putMetricsItem(String key, Double metricsItem) voidsetDatasetRecordId(String datasetRecordId) voidsetDatasetRecordId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> datasetRecordId) voidsetDuration(Double duration) voidsetEvalMetrics(List<LLMObsExperimentEvalMetricEvent> evalMetrics) voidvoidvoidsetMetrics(Map<String, Double> metrics) voidvoidsetParentId(String parentId) voidvoidsetStartNs(Long startNs) voidsetStatus(LLMObsExperimentSpanStatus status) voidvoidsetTraceId(String traceId) status(LLMObsExperimentSpanStatus status) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_DATASET_RECORD_ID
- See Also:
-
JSON_PROPERTY_DURATION
- See Also:
-
JSON_PROPERTY_EVAL_METRICS
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_META
- See Also:
-
JSON_PROPERTY_METRICS
- See Also:
-
JSON_PROPERTY_NAME
- See Also:
-
JSON_PROPERTY_PARENT_ID
- See Also:
-
JSON_PROPERTY_SPAN_ID
- See Also:
-
JSON_PROPERTY_START_NS
- See Also:
-
JSON_PROPERTY_STATUS
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
-
Constructor Details
-
LLMObsExperimentSpanWithEvals
public LLMObsExperimentSpanWithEvals()
-
-
Method Details
-
datasetRecordId
-
getDatasetRecordId
ID of the dataset record this span evaluated.- Returns:
- datasetRecordId
-
getDatasetRecordId_JsonNullable
-
setDatasetRecordId_JsonNullable
public void setDatasetRecordId_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> datasetRecordId) -
setDatasetRecordId
-
duration
-
getDuration
Duration of the span in nanoseconds.- Returns:
- duration
-
setDuration
-
evalMetrics
-
addEvalMetricsItem
public LLMObsExperimentSpanWithEvals addEvalMetricsItem(LLMObsExperimentEvalMetricEvent evalMetricsItem) -
getEvalMetrics
Evaluation metrics associated with this span.- Returns:
- evalMetrics
-
setEvalMetrics
-
id
-
getId
Unique identifier of the span.- Returns:
- id
-
setId
-
meta
-
getMeta
Metadata associated with an experiment span.- Returns:
- meta
-
setMeta
-
metrics
-
putMetricsItem
-
getMetrics
Numeric metrics attached to the span.- Returns:
- metrics
-
setMetrics
-
name
-
getName
Name of the span.- Returns:
- name
-
setName
-
parentId
-
getParentId
Parent span ID, if any.- Returns:
- parentId
-
setParentId
-
spanId
-
getSpanId
Span ID.- Returns:
- spanId
-
setSpanId
-
startNs
-
getStartNs
Start time in nanoseconds since Unix epoch.- Returns:
- startNs
-
setStartNs
-
status
-
getStatus
Status of the span.- Returns:
- status
-
setStatus
-
tags
-
addTagsItem
-
getTags
Tags associated with the span.- Returns:
- tags
-
setTags
-
traceId
-
getTraceId
Trace ID.- Returns:
- traceId
-
setTraceId
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LLMObsExperimentSpanWithEvals
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LLMObsExperimentSpanWithEvals object is equal to o. -
hashCode
public int hashCode() -
toString
-