Skip to main content

topic_discovery_runs

Creates, updates, deletes, gets or lists a topic_discovery_runs resource.

Overview

Nametopic_discovery_runs
TypeResource
Iddatadog.llm_observability.topic_discovery_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringIdentifier of the configuration the runs belong to. (example: a7c8d9e0-1234-5678-9abc-def012345678)
attributesobjectAttributes of an Agent Observability patterns runs response.
typestringResource type of a list of Agent Observability patterns runs. (list_topic_discovery_runs_response) (example: list_topic_discovery_runs_response)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_llmobs_patterns_runsselectconfig_idList the completed patterns runs for a configuration.
trigger_llmobs_patternsinsertdataStart a patterns run for a given configuration. The run executes asynchronously.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
config_idstringThe ID of the patterns configuration. (example: a7c8d9e0-1234-5678-9abc-def012345678)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.

SELECT examples

List the completed patterns runs for a configuration.

SELECT
id,
attributes,
type
FROM datadog.llm_observability.topic_discovery_runs
WHERE config_id = '{{ config_id }}' -- required
;

INSERT examples

Start a patterns run for a given configuration. The run executes asynchronously.

INSERT INTO datadog.llm_observability.topic_discovery_runs (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;