Skip to main content

model_lab_projects

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

Overview

Namemodel_lab_projects
TypeResource
Iddatadog.llm_observability.model_lab_projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the project. (example: 2)
attributesobjectAttributes of a Model Lab project.
typestringThe JSON:API type for a Model Lab project resource. (projects) (example: projects)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_model_lab_projectselectproject_idGet a single Model Lab project by its ID.
list_model_lab_projectsselectfilter, filter[owner_id], filter[tags], sort, page[size], page[number]List all Model Lab projects for the current organization.
unstar_model_lab_projectdeleteproject_idRemove the star from a Model Lab project for the current user.
star_model_lab_projectexecproject_idStar a Model Lab project for the current user.

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
project_idinteger (int64)The ID of the Model Lab project.
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 project name or description.
filter[owner_id]string (uuid)Filter by owner UUID.
filter[tags]stringFilter by tags. Format: key:value,key2:value2.
page[number]integer (int64)Page number (1-indexed).
page[size]integer (int64)Number of items per page. Maximum is 100.
sortstringSort field. Valid values: name, created_at, updated_at. Prefix with '-' for descending order (e.g., -updated_at).

SELECT examples

Get a single Model Lab project by its ID.

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

DELETE examples

Remove the star from a Model Lab project for the current user.

DELETE FROM datadog.llm_observability.model_lab_projects
WHERE project_id = '{{ project_id }}' --required
;

Lifecycle Methods

EXEC variables use wire (API) names.

Star a Model Lab project for the current user.

EXEC datadog.llm_observability.model_lab_projects.star_model_lab_project
@project_id='{{ project_id }}' --required
;