Response containing the clustered points of an Agent Observability topic.
Expand All
Campo
Type
Descripción
data [required]
object
Data object of an Agent Observability patterns clustered points response.
attributes [required]
object
Attributes of an Agent Observability patterns clustered points response.
next_page_token [required]
string
Pagination token for the next page of points. Null if there are no more pages.
points [required]
[object]
List of clustered points.
event_id [required]
string
Identifier of the source event.
id [required]
string
Unique identifier of the clustered point.
input [required]
string
Input text of the source span.
is_included [required]
boolean
Whether the point is included in the patterns dataset.
is_suggested [required]
boolean
Whether the point is suggested for inclusion in the patterns dataset.
session_id [required]
string
Identifier of the source session.
span_id [required]
string
Identifier of the source span.
topic_id [required]
string
Identifier of the topic the point belongs to.
topic_id [required]
string
Identifier of the topic the points belong to.
id [required]
string
Identifier of the topic the points belong to.
type [required]
enum
Resource type of an Agent Observability patterns clustered points response.
Allowed enum values: clustered_points_response
{"data":{"attributes":{"next_page_token":"eyJvZmZzZXQiOjUwfQ==","points":[{"event_id":"AAAAAYabc123","id":"9b0c1d2e-3f40-5a61-b728-c9d0e1f2a3b4","input":"How do I get a refund?","is_included":false,"is_suggested":true,"session_id":"session-7c3f5a1b","span_id":"1234567890123456789","topic_id":"5c1fae90-2b6d-4e3a-9f12-7a0c4d8e6b21"}],"topic_id":"5c1fae90-2b6d-4e3a-9f12-7a0c4d8e6b21"},"id":"5c1fae90-2b6d-4e3a-9f12-7a0c4d8e6b21","type":"clustered_points_response"}}
# Required query arguments exporttopic_id="5c1fae90-2b6d-4e3a-9f12-7a0c4d8e6b21" # Use a Personal Access Token or Service Access Token exportDD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"python3"example.py"
# List patterns clustered points returns "OK" responserequire"datadog_api_client"DatadogAPIClient.configuredo|config|config.access_token=ENV["DD_BEARER_TOKEN"]config.unstable_operations["v2.list_llm_obs_patterns_clustered_points".to_sym]=trueendapi_instance=DatadogAPIClient::V2::AgentObservabilityAPI.newpapi_instance.list_llm_obs_patterns_clustered_points("topic_id")
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"rb"example.rb"
// List patterns clustered points returns "OK" responsepackagemainimport("context""encoding/json""fmt""os""github.com/DataDog/datadog-api-client-go/v2/api/datadog""github.com/DataDog/datadog-api-client-go/v2/api/datadogV2")funcmain(){ctx:=datadog.NewDefaultContext(context.Background())ctx=context.WithValue(ctx,datadog.ContextAccessToken,os.Getenv("DD_BEARER_TOKEN"))configuration:=datadog.NewConfiguration()configuration.SetUnstableOperationEnabled("v2.ListLLMObsPatternsClusteredPoints",true)apiClient:=datadog.NewAPIClient(configuration)api:=datadogV2.NewAgentObservabilityApi(apiClient)resp,r,err:=api.ListLLMObsPatternsClusteredPoints(ctx,"topic_id",*datadogV2.NewListLLMObsPatternsClusteredPointsOptionalParameters())iferr!=nil{fmt.Fprintf(os.Stderr,"Error when calling `AgentObservabilityApi.ListLLMObsPatternsClusteredPoints`: %v\n",err)fmt.Fprintf(os.Stderr,"Full HTTP response: %v\n",r)}responseContent,_:=json.MarshalIndent(resp,""," ")fmt.Fprintf(os.Stdout,"Response from `AgentObservabilityApi.ListLLMObsPatternsClusteredPoints`:\n%s\n",responseContent)}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"go run"main.go"
// List patterns clustered points returns "OK" responseimportcom.datadog.api.client.ApiClient;importcom.datadog.api.client.ApiException;importcom.datadog.api.client.v2.api.AgentObservabilityApi;importcom.datadog.api.client.v2.model.LLMObsPatternsClusteredPointsResponse;publicclassExample{publicstaticvoidmain(String[]args){ApiClientdefaultClient=ApiClient.getDefaultApiClient();defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));defaultClient.setUnstableOperationEnabled("v2.listLLMObsPatternsClusteredPoints",true);AgentObservabilityApiapiInstance=newAgentObservabilityApi(defaultClient);try{LLMObsPatternsClusteredPointsResponseresult=apiInstance.listLLMObsPatternsClusteredPoints("5c1fae90-2b6d-4e3a-9f12-7a0c4d8e6b21");System.out.println(result);}catch(ApiExceptione){System.err.println("Exception when calling AgentObservabilityApi#listLLMObsPatternsClusteredPoints");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace();}}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"java"Example.java"
// List patterns clustered points returns "OK" response
usedatadog_api_client::datadog;usedatadog_api_client::datadogV2::api_agent_observability::AgentObservabilityAPI;usedatadog_api_client::datadogV2::api_agent_observability::ListLLMObsPatternsClusteredPointsOptionalParams;#[tokio::main]asyncfnmain(){letmutconfiguration=datadog::Configuration::new();configuration.set_unstable_operation_enabled("v2.list_llm_obs_patterns_clustered_points",true);letapi=AgentObservabilityAPI::with_config(configuration);letresp=api.list_llm_obs_patterns_clustered_points("topic_id".to_string(),ListLLMObsPatternsClusteredPointsOptionalParams::default(),).await;ifletOk(value)=resp{println!("{:#?}",value);}else{println!("{:#?}",resp.unwrap_err());}}
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_API_KEY="<DD_API_KEY>"DD_APP_KEY="<DD_APP_KEY>"cargo run
/**
* List patterns clustered points returns "OK" response
*/import{client,v2}from"@datadog/datadog-api-client";constconfiguration=client.createConfiguration({authMethods:{AuthZ:{accessToken: process.env.DD_BEARER_TOKENasstring,},},});configuration.unstableOperations["v2.listLLMObsPatternsClusteredPoints"]=true;constapiInstance=newv2.AgentObservabilityApi(configuration);constparams: v2.AgentObservabilityApiListLLMObsPatternsClusteredPointsRequest={topicId:"topic_id",};apiInstance.listLLMObsPatternsClusteredPoints(params).then((data: v2.LLMObsPatternsClusteredPointsResponse)=>{console.log("API called successfully. Returned data: "+JSON.stringify(data));}).catch((error: any)=>console.error(error));
DD_SITE="datadoghq.comus3.datadoghq.comus5.datadoghq.comdatadoghq.euap1.datadoghq.comap2.datadoghq.comuk1.datadoghq.comddog-gov.comus2.ddog-gov.com"DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"tsc"example.ts"
Solicite una demostración personalizada
Comience con Datadog
Ask AI
AI-generated responses may be inaccurate. Verify important info.