Package com.datadog.api.client.v2.model
Class LLMObsExperimentMetric
java.lang.Object
com.datadog.api.client.v2.model.LLMObsExperimentMetric
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsExperimentMetric
extends Object
A metric associated with an Agent Observability experiment span.
-
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
ConstructorsConstructorDescriptionLLMObsExperimentMetric(String label, LLMObsMetricScoreType metricType, String spanId, Long timestampMs) -
Method Summary
Modifier and TypeMethodDescriptionaddTagsItem(String tagsItem) assessment(LLMObsMetricAssessment assessment) booleanValue(Boolean booleanValue) categoricalValue(String categoricalValue) booleanReturn true if this LLMObsExperimentMetric object is equal to o.error(LLMObsExperimentMetricError error) Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Assessment result for an Agent Observability experiment metric.Boolean value.Categorical value.getError()Error details for an experiment metric evaluation.JSON value.getLabel()Label or name for the metric.Arbitrary metadata associated with the metric.Type of metric recorded for an Agent Observability experiment.Human-readable reasoning for the metric value.Numeric score value.The ID of the span this metric measures.getTags()List of tags associated with the metric.Timestamp when the metric was recorded, in milliseconds since Unix epoch.inthashCode()metricType(LLMObsMetricScoreType metricType) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putJsonValueItem(String key, Object jsonValueItem) putMetadataItem(String key, Object metadataItem) scoreValue(Double scoreValue) voidsetAssessment(LLMObsMetricAssessment assessment) voidsetBooleanValue(Boolean booleanValue) voidsetCategoricalValue(String categoricalValue) voidvoidsetJsonValue(Map<String, Object> jsonValue) voidvoidsetMetadata(Map<String, Object> metadata) voidsetMetricType(LLMObsMetricScoreType metricType) voidsetReasoning(String reasoning) voidsetScoreValue(Double scoreValue) voidvoidvoidsetTimestampMs(Long timestampMs) timestampMs(Long timestampMs) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ASSESSMENT
- See Also:
-
JSON_PROPERTY_BOOLEAN_VALUE
- See Also:
-
JSON_PROPERTY_CATEGORICAL_VALUE
- See Also:
-
JSON_PROPERTY_ERROR
- See Also:
-
JSON_PROPERTY_JSON_VALUE
- See Also:
-
JSON_PROPERTY_LABEL
- See Also:
-
JSON_PROPERTY_METADATA
- See Also:
-
JSON_PROPERTY_METRIC_TYPE
- See Also:
-
JSON_PROPERTY_REASONING
- See Also:
-
JSON_PROPERTY_SCORE_VALUE
- See Also:
-
JSON_PROPERTY_SPAN_ID
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TIMESTAMP_MS
- See Also:
-
-
Constructor Details
-
LLMObsExperimentMetric
public LLMObsExperimentMetric() -
LLMObsExperimentMetric
public LLMObsExperimentMetric(String label, LLMObsMetricScoreType metricType, String spanId, Long timestampMs)
-
-
Method Details
-
assessment
-
getAssessment
Assessment result for an Agent Observability experiment metric.- Returns:
- assessment
-
setAssessment
-
booleanValue
-
getBooleanValue
Boolean value. Used whenmetric_typeisboolean.- Returns:
- booleanValue
-
setBooleanValue
-
categoricalValue
-
getCategoricalValue
Categorical value. Used whenmetric_typeiscategorical.- Returns:
- categoricalValue
-
setCategoricalValue
-
error
-
getError
Error details for an experiment metric evaluation.- Returns:
- error
-
setError
-
jsonValue
-
putJsonValueItem
-
getJsonValue
JSON value. Used whenmetric_typeisjson.- Returns:
- jsonValue
-
setJsonValue
-
label
-
getLabel
Label or name for the metric.- Returns:
- label
-
setLabel
-
metadata
-
putMetadataItem
-
getMetadata
Arbitrary metadata associated with the metric.- Returns:
- metadata
-
setMetadata
-
metricType
-
getMetricType
Type of metric recorded for an Agent Observability experiment.- Returns:
- metricType
-
setMetricType
-
reasoning
-
getReasoning
Human-readable reasoning for the metric value.- Returns:
- reasoning
-
setReasoning
-
scoreValue
-
getScoreValue
Numeric score value. Used whenmetric_typeisscore.- Returns:
- scoreValue
-
setScoreValue
-
spanId
-
getSpanId
The ID of the span this metric measures.- Returns:
- spanId
-
setSpanId
-
tags
-
addTagsItem
-
getTags
List of tags associated with the metric.- Returns:
- tags
-
setTags
-
timestampMs
-
getTimestampMs
Timestamp when the metric was recorded, in milliseconds since Unix epoch.- Returns:
- timestampMs
-
setTimestampMs
-
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:
- LLMObsExperimentMetric
-
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 LLMObsExperimentMetric object is equal to o. -
hashCode
public int hashCode() -
toString
-