Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,852 changes: 1,703 additions & 149 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T17:39:16.852Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T17:39:17.553Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T17:39:18.076Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T17:39:19.135Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2026-05-18T17:39:19.668Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions examples/v2/app-builder/GetBlueprint.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get Blueprint returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::AppBuilderAPI.new
p api_instance.get_blueprint("9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d")
5 changes: 5 additions & 0 deletions examples/v2/app-builder/GetBlueprintsByIntegrationId.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get Blueprints by Integration ID returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::AppBuilderAPI.new
p api_instance.get_blueprints_by_integration_id("aws")
5 changes: 5 additions & 0 deletions examples/v2/app-builder/GetBlueprintsBySlugs.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Get Blueprints by Slugs returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::AppBuilderAPI.new
p api_instance.get_blueprints_by_slugs("aws-service-manager")
5 changes: 5 additions & 0 deletions examples/v2/app-builder/ListBlueprints.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List Blueprints returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::AppBuilderAPI.new
p api_instance.list_blueprints()
5 changes: 5 additions & 0 deletions examples/v2/app-builder/ListTags.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List Tags returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::AppBuilderAPI.new
p api_instance.list_tags()
18 changes: 18 additions & 0 deletions examples/v2/cloud-cost-management/SearchCostRecommendations.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Search cost recommendations returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.search_cost_recommendations".to_sym] = true
end
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new

body = DatadogAPIClient::V2::RecommendationsFilterRequest.new({
filter: "@resource_table:aws_ec2_instance",
sort: [
DatadogAPIClient::V2::RecommendationsFilterRequestSortItems.new({
expression: "potential_daily_savings.amount",
order: "DESC",
}),
],
})
p api_instance.search_cost_recommendations(body)
105 changes: 105 additions & 0 deletions examples/v2/llm-observability/CreateLLMObsIntegrationInference.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Run an LLM inference returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.create_llm_obs_integration_inference".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new

body = DatadogAPIClient::V2::LLMObsIntegrationInferenceRequest.new({
anthropic_metadata: DatadogAPIClient::V2::LLMObsAnthropicMetadata.new({
effort: DatadogAPIClient::V2::LLMObsAnthropicEffort::MEDIUM,
thinking: DatadogAPIClient::V2::LLMObsAnthropicThinkingConfig.new({
budget_tokens: 1024,
type: DatadogAPIClient::V2::LLMObsAnthropicThinkingType::ENABLED,
}),
}),
azure_openai_metadata: DatadogAPIClient::V2::LLMObsAzureOpenAIMetadata.new({
deployment_id: "my-gpt4-deployment",
model_version: "0613",
resource_name: "my-azure-resource",
}),
bedrock_metadata: DatadogAPIClient::V2::LLMObsBedrockMetadata.new({
region: "us-east-1",
}),
frequency_penalty: 0.0,
json_schema: '{"type":"object","properties":{"answer":{"type":"string"}}}',
max_completion_tokens: 1024,
max_tokens: 1024,
messages: [
DatadogAPIClient::V2::LLMObsInferenceMessage.new({
content: "What is the capital of France?",
contents: [
DatadogAPIClient::V2::LLMObsInferenceContent.new({
type: "text",
value: DatadogAPIClient::V2::LLMObsInferenceContentValue.new({
text: "Hello, how can I help you?",
tool_call: DatadogAPIClient::V2::LLMObsInferenceToolCall.new({
arguments: {
"location": "San Francisco",
},
name: "get_weather",
tool_id: "call_abc123",
type: "function",
}),
tool_call_result: DatadogAPIClient::V2::LLMObsInferenceToolResult.new({
name: "get_weather",
result: "The weather in San Francisco is 68°F and sunny.",
tool_id: "call_abc123",
type: "function",
}),
}),
}),
],
id: "msg_001",
role: "user",
tool_calls: [
DatadogAPIClient::V2::LLMObsInferenceToolCall.new({
arguments: {
"location": "San Francisco",
},
name: "get_weather",
tool_id: "call_abc123",
type: "function",
}),
],
tool_results: [
DatadogAPIClient::V2::LLMObsInferenceToolResult.new({
name: "get_weather",
result: "The weather in San Francisco is 68°F and sunny.",
tool_id: "call_abc123",
type: "function",
}),
],
}),
],
model_id: "gpt-4o",
openai_metadata: DatadogAPIClient::V2::LLMObsOpenAIMetadata.new({
reasoning_effort: DatadogAPIClient::V2::LLMObsOpenAIReasoningEffort::MEDIUM,
reasoning_summary: DatadogAPIClient::V2::LLMObsOpenAIReasoningSummary::AUTO,
}),
presence_penalty: 0.0,
temperature: 0.7,
tools: [
DatadogAPIClient::V2::LLMObsInferenceTool.new({
function: DatadogAPIClient::V2::LLMObsInferenceFunction.new({
description: "Get the current weather for a location.",
name: "get_weather",
parameters: {
"properties": "{'location': {'type': 'string'}}", "type": "object",
},
}),
type: "function",
}),
],
top_k: 50,
top_p: 1.0,
vertex_ai_metadata: DatadogAPIClient::V2::LLMObsVertexAIMetadata.new({
location: "us-central1",
project: "my-gcp-project",
project_ids: [
"my-gcp-project",
],
}),
})
p api_instance.create_llm_obs_integration_inference(LLMObsIntegrationName::OPENAI, "account_id", body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List LLM integration accounts returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_llm_obs_integration_accounts".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new
p api_instance.list_llm_obs_integration_accounts(LLMObsIntegrationName::OPENAI)
8 changes: 8 additions & 0 deletions examples/v2/llm-observability/ListLLMObsIntegrationModels.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List LLM integration models returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_llm_obs_integration_models".to_sym] = true
end
api_instance = DatadogAPIClient::V2::LLMObservabilityAPI.new
p api_instance.list_llm_obs_integration_models(LLMObsIntegrationName::OPENAI, "account_id")
30 changes: 30 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,18 @@
"experiment_id" => "String",
"body" => "LLMObsExperimentEventsRequest",
},
"v2.ListLLMObsIntegrationAccounts" => {
"integration" => "LLMObsIntegrationName",
},
"v2.CreateLLMObsIntegrationInference" => {
"integration" => "LLMObsIntegrationName",
"account_id" => "String",
"body" => "LLMObsIntegrationInferenceRequest",
},
"v2.ListLLMObsIntegrationModels" => {
"integration" => "LLMObsIntegrationName",
"account_id" => "String",
},
"v2.ListLLMObsProjects" => {
"filter_id" => "String",
"filter_name" => "String",
Expand Down Expand Up @@ -1423,6 +1435,19 @@
"limit" => "Integer",
"page" => "Integer",
},
"v2.GetBlueprint" => {
"blueprint_id" => "UUID",
},
"v2.ListBlueprints" => {
"limit" => "Integer",
"page" => "Integer",
},
"v2.GetBlueprintsByIntegrationId" => {
"integration_id" => "String",
},
"v2.GetBlueprintsBySlugs" => {
"slugs" => "String",
},
"v2.ListAuditLogs" => {
"filter_query" => "String",
"filter_from" => "Time",
Expand Down Expand Up @@ -2466,6 +2491,11 @@
"cloud_account_id" => "Integer",
"body" => "GCPUsageCostConfigPatchRequest",
},
"v2.SearchCostRecommendations" => {
"page_size" => "String",
"page_token" => "String",
"body" => "RecommendationsFilterRequest",
},
"v2.ListCostTagDescriptions" => {
"filter_cloud" => "String",
},
Expand Down
42 changes: 41 additions & 1 deletion features/v2/app_builder.feature
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ Feature: App Builder
When the request is sent
Then the response status is 400 Bad Request

@skip-typescript @team:DataDog/app-builder-backend
@skip @team:DataDog/app-builder-backend
Scenario: Get App returns "Gone" response
Given new "GetApp" request
And there is a valid "app" in the system
Expand All @@ -139,6 +139,34 @@ Feature: App Builder
And the response "data.id" has the same value as "app.data.id"
And the response "data.type" is equal to "appDefinitions"

@team:DataDog/app-builder-backend
Scenario: Get Blueprint returns "Not Found" response
Given new "GetBlueprint" request
And request contains "blueprint_id" parameter with value "00000000-0000-0000-0000-000000000001"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/app-builder-backend
Scenario: Get Blueprint returns "OK" response
Given new "GetBlueprint" request
And request contains "blueprint_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@team:DataDog/app-builder-backend
Scenario: Get Blueprints by Integration ID returns "OK" response
Given new "GetBlueprintsByIntegrationId" request
And request contains "integration_id" parameter with value "aws"
When the request is sent
Then the response status is 200 OK

@team:DataDog/app-builder-backend
Scenario: Get Blueprints by Slugs returns "OK" response
Given new "GetBlueprintsBySlugs" request
And request contains "slugs" parameter with value "aws-service-manager"
When the request is sent
Then the response status is 200 OK

@skip @team:DataDog/app-builder-backend
Scenario: List App Versions returns "Bad Request" response
Given new "ListAppVersions" request
Expand Down Expand Up @@ -173,6 +201,18 @@ Feature: App Builder
When the request is sent
Then the response status is 200 OK

@team:DataDog/app-builder-backend
Scenario: List Blueprints returns "OK" response
Given new "ListBlueprints" request
When the request is sent
Then the response status is 200 OK

@team:DataDog/app-builder-backend
Scenario: List Tags returns "OK" response
Given new "ListTags" request
When the request is sent
Then the response status is 200 OK

@skip @team:DataDog/app-builder-backend
Scenario: Name App Version returns "Bad Request" response
Given new "UpdateAppVersionName" request
Expand Down
Loading
Loading