model_lab_projects
Creates, updates, deletes, gets or lists a model_lab_projects resource.
Overview
| Name | model_lab_projects |
| Type | Resource |
| Id | datadog.llm_observability.model_lab_projects |
Fields
The following fields are returned by SELECT queries:
- get_model_lab_project
- list_model_lab_projects
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier of the project. (example: 2) |
attributes | object | Attributes of a Model Lab project. |
type | string | The JSON:API type for a Model Lab project resource. (projects) (example: projects) |
| Name | Datatype | Description |
|---|---|---|
id | string | The unique identifier of the project. (example: 2) |
attributes | object | Attributes of a Model Lab project. |
type | string | The JSON:API type for a Model Lab project resource. (projects) (example: projects) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_model_lab_project | select | project_id | Get a single Model Lab project by its ID. | |
list_model_lab_projects | select | filter, filter[owner_id], filter[tags], sort, page[size], page[number] | List all Model Lab projects for the current organization. | |
unstar_model_lab_project | delete | project_id | Remove the star from a Model Lab project for the current user. | |
star_model_lab_project | exec | project_id | Star 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.
| Name | Datatype | Description |
|---|---|---|
project_id | integer (int64) | The ID of the Model Lab project. |
site | string | The 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. |
filter | string | Text search filter for project name or description. |
filter[owner_id] | string (uuid) | Filter by owner UUID. |
filter[tags] | string | Filter 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. |
sort | string | Sort field. Valid values: name, created_at, updated_at. Prefix with '-' for descending order (e.g., -updated_at). |
SELECT examples
- get_model_lab_project
- list_model_lab_projects
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
;
List all Model Lab projects for the current organization.
SELECT
id,
attributes,
type
FROM datadog.llm_observability.model_lab_projects
WHERE filter = '{{ filter }}'
AND filter[owner_id] = '{{ filter[owner_id] }}'
AND filter[tags] = '{{ filter[tags] }}'
AND sort = '{{ sort }}'
AND page[size] = '{{ page[size] }}'
AND page[number] = '{{ page[number] }}'
;
DELETE examples
- unstar_model_lab_project
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_model_lab_project
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
;