Skip to content

Commit b6a8ec7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 2c81a59 of spec repo
1 parent 59dd84f commit b6a8ec7

20 files changed

Lines changed: 2242 additions & 0 deletions

.generator/schemas/v2/openapi.yaml

Lines changed: 439 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Get LLM Observability dataset draft state returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_llm_observability::LLMObservabilityAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let mut configuration = datadog::Configuration::new();
8+
configuration.set_unstable_operation_enabled("v2.GetLLMObsDatasetDraftState", true);
9+
let api = LLMObservabilityAPI::with_config(configuration);
10+
let resp = api
11+
.get_llm_obs_dataset_draft_state("project_id".to_string(), "dataset_id".to_string())
12+
.await;
13+
if let Ok(value) = resp {
14+
println!("{:#?}", value);
15+
} else {
16+
println!("{:#?}", resp.unwrap_err());
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// List LLM Observability dataset versions returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_llm_observability::LLMObservabilityAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let mut configuration = datadog::Configuration::new();
8+
configuration.set_unstable_operation_enabled("v2.ListLLMObsDatasetVersions", true);
9+
let api = LLMObservabilityAPI::with_config(configuration);
10+
let resp = api
11+
.list_llm_obs_dataset_versions("project_id".to_string(), "dataset_id".to_string())
12+
.await;
13+
if let Ok(value) = resp {
14+
println!("{:#?}", value);
15+
} else {
16+
println!("{:#?}", resp.unwrap_err());
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Lock LLM Observability dataset draft state returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_llm_observability::LLMObservabilityAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let mut configuration = datadog::Configuration::new();
8+
configuration.set_unstable_operation_enabled("v2.LockLLMObsDatasetDraftState", true);
9+
let api = LLMObservabilityAPI::with_config(configuration);
10+
let resp = api
11+
.lock_llm_obs_dataset_draft_state("project_id".to_string(), "dataset_id".to_string())
12+
.await;
13+
if let Ok(value) = resp {
14+
println!("{:#?}", value);
15+
} else {
16+
println!("{:#?}", resp.unwrap_err());
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Unlock LLM Observability dataset draft state returns "OK" response
2+
use datadog_api_client::datadog;
3+
use datadog_api_client::datadogV2::api_llm_observability::LLMObservabilityAPI;
4+
5+
#[tokio::main]
6+
async fn main() {
7+
let mut configuration = datadog::Configuration::new();
8+
configuration.set_unstable_operation_enabled("v2.UnlockLLMObsDatasetDraftState", true);
9+
let api = LLMObservabilityAPI::with_config(configuration);
10+
let resp = api
11+
.unlock_llm_obs_dataset_draft_state("project_id".to_string(), "dataset_id".to_string())
12+
.await;
13+
if let Ok(value) = resp {
14+
println!("{:#?}", value);
15+
} else {
16+
println!("{:#?}", resp.unwrap_err());
17+
}
18+
}

src/datadog/configuration.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,18 +173,22 @@ impl Default for Configuration {
173173
false,
174174
),
175175
("v2.get_llm_obs_custom_eval_config".to_owned(), false),
176+
("v2.get_llm_obs_dataset_draft_state".to_owned(), false),
176177
("v2.list_llm_obs_annotation_queues".to_owned(), false),
177178
("v2.list_llm_obs_dataset_records".to_owned(), false),
178179
("v2.list_llm_obs_datasets".to_owned(), false),
180+
("v2.list_llm_obs_dataset_versions".to_owned(), false),
179181
("v2.list_llm_obs_experiment_events".to_owned(), false),
180182
("v2.list_llm_obs_experiments".to_owned(), false),
181183
("v2.list_llm_obs_integration_accounts".to_owned(), false),
182184
("v2.list_llm_obs_integration_models".to_owned(), false),
183185
("v2.list_llm_obs_projects".to_owned(), false),
184186
("v2.list_llm_obs_spans".to_owned(), false),
187+
("v2.lock_llm_obs_dataset_draft_state".to_owned(), false),
185188
("v2.search_llm_obs_experimentation".to_owned(), false),
186189
("v2.search_llm_obs_spans".to_owned(), false),
187190
("v2.simple_search_llm_obs_experimentation".to_owned(), false),
191+
("v2.unlock_llm_obs_dataset_draft_state".to_owned(), false),
188192
("v2.update_llm_obs_annotation_queue".to_owned(), false),
189193
(
190194
"v2.update_llm_obs_annotation_queue_label_schema".to_owned(),

0 commit comments

Comments
 (0)