Class LLMObsSpanFilter

java.lang.Object
com.datadog.api.client.v2.model.LLMObsSpanFilter

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsSpanFilter extends Object
Filter criteria for an Agent Observability span search.
  • Field Details

  • Constructor Details

    • LLMObsSpanFilter

      public LLMObsSpanFilter()
  • Method Details

    • from

      public LLMObsSpanFilter from(String from)
    • getFrom

      @Nullable public String getFrom()
      Start of the time range. Accepts ISO 8601 or relative format (e.g., now-15m). Defaults to now-15m.
      Returns:
      from
    • setFrom

      public void setFrom(String from)
    • mlApp

      public LLMObsSpanFilter mlApp(String mlApp)
    • getMlApp

      @Nullable public String getMlApp()
      Filter by ML application name.
      Returns:
      mlApp
    • setMlApp

      public void setMlApp(String mlApp)
    • query

      public LLMObsSpanFilter query(String query)
    • getQuery

      @Nullable public String getQuery()
      Search query using Agent Observability query syntax. Supports attribute filters using the field:value syntax (e.g. session_id, trace_id, ml_app, meta.span.kind). When provided, structured field filters (span_id, trace_id, etc.) are ignored.
      Returns:
      query
    • setQuery

      public void setQuery(String query)
    • spanId

      public LLMObsSpanFilter spanId(String spanId)
    • getSpanId

      @Nullable public String getSpanId()
      Filter by exact span ID.
      Returns:
      spanId
    • setSpanId

      public void setSpanId(String spanId)
    • spanKind

      public LLMObsSpanFilter spanKind(String spanKind)
    • getSpanKind

      @Nullable public String getSpanKind()
      Filter by span kind (e.g., llm, agent, tool, task, workflow).
      Returns:
      spanKind
    • setSpanKind

      public void setSpanKind(String spanKind)
    • spanName

      public LLMObsSpanFilter spanName(String spanName)
    • getSpanName

      @Nullable public String getSpanName()
      Filter by span name.
      Returns:
      spanName
    • setSpanName

      public void setSpanName(String spanName)
    • tags

      public LLMObsSpanFilter tags(Map<String,String> tags)
    • putTagsItem

      public LLMObsSpanFilter putTagsItem(String key, String tagsItem)
    • getTags

      @Nullable public Map<String,String> getTags()
      Filter by tag key-value pairs.
      Returns:
      tags
    • setTags

      public void setTags(Map<String,String> tags)
    • to

      public LLMObsSpanFilter to(String to)
    • getTo

      @Nullable public String getTo()
      End of the time range. Accepts ISO 8601 or relative format (e.g., now). Defaults to now.
      Returns:
      to
    • setTo

      public void setTo(String to)
    • traceId

      public LLMObsSpanFilter traceId(String traceId)
    • getTraceId

      @Nullable public String getTraceId()
      Filter by exact trace ID.
      Returns:
      traceId
    • setTraceId

      public void setTraceId(String traceId)
    • putAdditionalProperty

      public LLMObsSpanFilter putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      LLMObsSpanFilter
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this LLMObsSpanFilter object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object