Skip to main content

model_lab_runs

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

Overview

Namemodel_lab_runs
TypeResource
Iddatadog.llm_observability.model_lab_runs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the run. (example: 42)
attributesobjectAttributes of a Model Lab run.
typestringThe JSON:API type for a Model Lab run resource. (runs) (example: runs)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_model_lab_runselectrun_idGet a single Model Lab run by its ID.
list_model_lab_runsselectfilter[id], filter, filter[owner_id], filter[status], filter[project_id], filter[tags], filter[params], filter[parent_run_id], pinned_first, include_pinned, include_descendant_matches, sort, page[size], page[number]List all Model Lab runs for the current organization.
delete_model_lab_rundeleterun_idDelete a Model Lab run by its ID.

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
run_idinteger (int64)The ID of the Model Lab run.
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.
filterstringText search filter for run name or description.
filter[id]stringFilter by run ID(s). Comma-separated list for multiple IDs.
filter[owner_id]stringFilter by owner UUID.
filter[params]stringFilter by params. Format: key:value,key2:>0.5,key3:true.
filter[parent_run_id]stringFilter by parent run ID. Use 'null' to return only root runs (runs with no parent).
filter[project_id]integer (int64)Filter by project ID.
filter[status]stringFilter by run status. Valid values: pending, running, completed, failed, killed, unresponsive, paused.
filter[tags]stringFilter by tags. Format: key:value,key2:value2.
include_descendant_matchesbooleanWhen true, also return runs whose descendants match the active filters. The descendant_match field in each result indicates whether the run was included via a descendant match.
include_pinnedbooleanInclude all runs pinned by the current user, regardless of other filters.
page[number]integer (int64)Page number (1-indexed).
page[size]integer (int64)Number of items per page. Maximum is 100.
pinned_firstbooleanSort pinned runs before non-pinned runs. Pinned runs are ordered by pin time descending.
sortstringSort field. Valid values: name, created_at, updated_at, duration. Prefix with '-' for descending order (e.g., -updated_at).

SELECT examples

Get a single Model Lab run by its ID.

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

DELETE examples

Delete a Model Lab run by its ID.

DELETE FROM datadog.llm_observability.model_lab_runs
WHERE run_id = '{{ run_id }}' --required
;