List patterns templates
https://api.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.us3.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.us5.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.datadoghq.eu/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.ap1.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.ap2.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.uk1.datadoghq.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.ddog-gov.com/api/v2/llm-obs/v1/topic-discovery-templateshttps://api.us2.ddog-gov.com/api/v2/llm-obs/v1/topic-discovery-templates概要
List all enabled patterns templates.
応答
OK
Response containing a list of Agent Observability patterns templates.
data [required]Data object of a list of Agent Observability patterns templates.
attributes [required]Attributes of a list of Agent Observability patterns templates.
templates [required]List of patterns templates.
clustering_instructions [required]Instructions guiding how topics are clustered for configurations linked to this template.
created_at [required]Timestamp when the template was created.
description [required]Human-readable description of what the template is for.
evp_query_prefix [required]Prefix merged into the query that selects spans for configurations linked to this template.
id [required]Unique identifier of the template.
name [required]Name of the template.
scope [required]Scope the template applies to.
template [required]Template used to guide topic generation for configurations linked to this template.
time_frame_duration_ms [required]Default lookback window, in milliseconds, for configurations linked to this template.
id [required]Identifier of the list response.
type [required]Resource type of a list of Agent Observability patterns templates.
list_topic_discovery_templates_response{
"data": {
"attributes": {
"templates": [
{
"clustering_instructions": "Group topics by user intent.",
"created_at": "2024-01-15T10:30:00Z",
"description": "A general-purpose starting point for topic discovery.",
"evp_query_prefix": "",
"id": "a7c8d9e0-1234-5678-9abc-def012345678",
"name": "General",
"scope": "span",
"template": "{{span_input}}",
"time_frame_duration_ms": 604800000
}
]
},
"id": "topic_discovery_templates",
"type": "list_topic_discovery_templates_response"
}
}Too many requests
API error response.
errors [required]A list of errors.
{
"errors": [
"Bad Request"
]
}コード例
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="us3.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="us5.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="datadoghq.eu"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="ap1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="ap2.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="uk1.datadoghq.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"# Set your Datadog site and credentials
export DD_SITE="us2.ddog-gov.com"
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
curl -X GET "https://api.${DD_SITE}/api/v2/llm-obs/v1/topic-discovery-templates" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"