Package com.datadog.api.client.v2.model
Class LLMObsContentBlock
java.lang.Object
com.datadog.api.client.v2.model.LLMObsContentBlock
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsContentBlock
extends Object
A single content block rendered inside a
display_block interaction. type
discriminates which other fields are meaningful:
markdown/text:contentmust be a string.header:contentmust be a string;level, when set, must be one ofsm,md,lg,xl.json:contentmust be a well-formed JSON value (object, array, or scalar).image:urlis required.widget:tileDefis required (any well-formed JSON; the frontend owns the renderable schema).llmobs_trace:traceIdis required;interactionType, when set, must betraceorexperiment_trace.frontend:codeis required and must be a non-empty string;labelis optional.
height, when set, must be positive.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturn true if this LLMObsContentBlock object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.getAlt()Alternative text for animageblock.getCode()HTML code rendered by afrontendblock.Block payload.Optional rendered height.Upstream interaction type referenced by anllmobs_traceblock.getLabel()Optional label rendered alongside afrontendblock.getLevel()Visual size for aheaderblock.Tile definition for awidgetblock.Unix-millis time range used by chart blocks.Trace identifier.getType()Discriminator for a singledisplay_blockcontent block.getUrl()URL of the image.inthashCode()interactionType(LLMObsContentBlockLLMObsTraceInteractionType interactionType) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidvoidvoidsetContent(Object content) voidvoidsetInteractionType(LLMObsContentBlockLLMObsTraceInteractionType interactionType) voidvoidvoidsetTileDef(Object tileDef) voidsetTimeFrame(LLMObsContentBlockTimeFrame timeFrame) voidsetTraceId(String traceId) voidvoidtimeFrame(LLMObsContentBlockTimeFrame timeFrame) toString()type(LLMObsContentBlockType type)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_ALT
- See Also:
-
JSON_PROPERTY_CODE
- See Also:
-
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_HEIGHT
- See Also:
-
JSON_PROPERTY_INTERACTION_TYPE
- See Also:
-
JSON_PROPERTY_LABEL
- See Also:
-
JSON_PROPERTY_LEVEL
- See Also:
-
JSON_PROPERTY_TILE_DEF
- See Also:
-
JSON_PROPERTY_TIME_FRAME
- See Also:
-
JSON_PROPERTY_TRACE_ID
- See Also:
-
JSON_PROPERTY_TYPE
- See Also:
-
JSON_PROPERTY_URL
- See Also:
-
-
Constructor Details
-
LLMObsContentBlock
public LLMObsContentBlock() -
LLMObsContentBlock
-
-
Method Details
-
alt
-
getAlt
Alternative text for animageblock.- Returns:
- alt
-
setAlt
-
code
-
getCode
HTML code rendered by afrontendblock. Required forfrontendblocks.- Returns:
- code
-
setCode
-
content
-
getContent
Block payload. A string formarkdown,header, andtext; an arbitrary JSON value (object, array, or scalar) forjson. Omitted forimage,widget,llmobs_trace, andfrontend.- Returns:
- content
-
setContent
-
height
-
getHeight
Optional rendered height. Must be positive when set.- Returns:
- height
-
setHeight
-
interactionType
public LLMObsContentBlock interactionType(LLMObsContentBlockLLMObsTraceInteractionType interactionType) -
getInteractionType
Upstream interaction type referenced by anllmobs_traceblock. Restricted totraceorexperiment_trace.- Returns:
- interactionType
-
setInteractionType
-
label
-
getLabel
Optional label rendered alongside afrontendblock.- Returns:
- label
-
setLabel
-
level
-
getLevel
Visual size for aheaderblock.- Returns:
- level
-
setLevel
-
tileDef
-
getTileDef
Tile definition for awidgetblock. Required forwidget. The schema is owned by the frontend renderer.- Returns:
- tileDef
-
setTileDef
-
timeFrame
-
getTimeFrame
Unix-millis time range used by chart blocks.- Returns:
- timeFrame
-
setTimeFrame
-
traceId
-
getTraceId
Trace identifier. Required forllmobs_traceblocks.- Returns:
- traceId
-
setTraceId
-
type
-
getType
Discriminator for a singledisplay_blockcontent block. Adding a variant requires coordinated changes in the frontend renderer.- Returns:
- type
-
setType
-
url
-
getUrl
URL of the image. Required forimageblocks.- Returns:
- url
-
setUrl
-
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:
- LLMObsContentBlock
-
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 LLMObsContentBlock object is equal to o. -
hashCode
public int hashCode() -
toString
-