Skip to content
Open
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,080 changes: 1,073 additions & 7 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions examples/v2/agent-observability/CreateLLMObsPrompt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
body = DatadogAPIClient::V2::LLMObsCreatePromptRequest.new({
data: DatadogAPIClient::V2::LLMObsCreatePromptData.new({
attributes: DatadogAPIClient::V2::LLMObsCreatePromptDataAttributes.new({
config: DatadogAPIClient::V2::LLMObsPromptConfig.new({}),
env_ids: [],
labels: [
DatadogAPIClient::V2::LLMObsPromptVersionLabel::PRODUCTION,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
body = DatadogAPIClient::V2::LLMObsCreatePromptVersionRequest.new({
data: DatadogAPIClient::V2::LLMObsCreatePromptVersionData.new({
attributes: DatadogAPIClient::V2::LLMObsCreatePromptVersionDataAttributes.new({
config: DatadogAPIClient::V2::LLMObsPromptConfig.new({}),
env_ids: [],
labels: [
DatadogAPIClient::V2::LLMObsPromptVersionLabel::PRODUCTION,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Create a Databricks integration account returns "Created" response

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

body = DatadogAPIClient::V2::DatabricksIntegrationAccountCreateRequest.new({
data: DatadogAPIClient::V2::DatabricksIntegrationAccountCreateData.new({
attributes: DatadogAPIClient::V2::DatabricksIntegrationAccountCreateAttributes.new({
authentication: DatadogAPIClient::V2::DatabricksIntegrationAccountOAuthAuthRequest.new({
auth_type: DatadogAPIClient::V2::DatabricksIntegrationAccountOAuthAuthType::DATABRICKS_OAUTH,
azure_tenant_id: "4d3bac44-0230-4732-9e70-cc00736f0a97",
client_id: "5c10654a-b3a3-4840-b37f-f477590c70a0",
client_secret: "your-client-secret",
}),
dataflows: DatadogAPIClient::V2::DatabricksIntegrationDataflowsRequest.new({
databricks_cloud_cost_metrics: DatadogAPIClient::V2::DatabricksCloudCostMetricsIntegrationDataflowRequest.new({
enabled: true,
settings: DatadogAPIClient::V2::DatabricksCloudCostMetricsIntegrationDataflowSettingsRequest.new({
ccm_collect_all_workspaces: true,
}),
}),
databricks_data_observability_jobs_monitoring: DatadogAPIClient::V2::DatabricksDataObservabilityJobsMonitoringIntegrationDataflowRequest.new({
enabled: true,
settings: DatadogAPIClient::V2::DatabricksDataObservabilityJobsMonitoringIntegrationDataflowSettingsRequest.new({
dd_api_key_id: "fe383f4e-09fc-46bf-8e10-4efdd453a646",
dd_api_key_secret: "your-datadog-api-key",
djm_global_init_script_enabled: true,
script_gpum_enabled: true,
script_logs_enabled: true,
serverless_jobs_enabled: true,
}),
}),
databricks_data_observability_quality_monitoring: DatadogAPIClient::V2::DatabricksDataObservabilityQualityMonitoringIntegrationDataflowRequest.new({
enabled: true,
settings: DatadogAPIClient::V2::DatabricksDataObservabilityQualityMonitoringIntegrationDataflowSettingsRequest.new({
do_crawlers_cron: "0 * * * *",
sync_system_catalog: true,
}),
}),
databricks_model_serving_metrics: DatadogAPIClient::V2::DatabricksModelServingMetricsIntegrationDataflowRequest.new({
enabled: true,
}),
}),
name: "My Databricks Workspace",
settings: DatadogAPIClient::V2::DatabricksIntegrationAccountSettingsRequest.new({
system_tables_sql_warehouse_id: "aba7c023d4172910",
workspace_url: "https://dbc-1234abcd.cloud.databricks.com",
}),
}),
type: DatadogAPIClient::V2::IntegrationAccountType::INTEGRATION_ACCOUNT,
}),
})
p api_instance.create_databricks_integration_account(body)
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Delete a Databricks integration account returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.delete_databricks_integration_account".to_sym] = true
end
api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new
p api_instance.delete_databricks_integration_account("account_id")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Get a Databricks integration account returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.get_databricks_integration_account".to_sym] = true
end
api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new
p api_instance.get_databricks_integration_account("account_id")
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# List Databricks integration accounts returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.list_databricks_integration_accounts".to_sym] = true
end
api_instance = DatadogAPIClient::V2::DatabricksIntegrationAPI.new
p api_instance.list_databricks_integration_accounts()
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Update a Databricks integration account returns "OK" response

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

body = DatadogAPIClient::V2::DatabricksIntegrationAccountUpdateRequest.new({
data: DatadogAPIClient::V2::DatabricksIntegrationAccountUpdateData.new({
attributes: DatadogAPIClient::V2::DatabricksIntegrationAccountUpdateAttributes.new({
authentication: DatadogAPIClient::V2::DatabricksIntegrationAccountOAuthAuthUpdate.new({
auth_type: DatadogAPIClient::V2::DatabricksIntegrationAccountOAuthAuthType::DATABRICKS_OAUTH,
azure_tenant_id: "4d3bac44-0230-4732-9e70-cc00736f0a97",
client_id: "5c10654a-b3a3-4840-b37f-f477590c70a0",
client_secret: "your-client-secret",
}),
dataflows: DatadogAPIClient::V2::DatabricksIntegrationDataflowsRequest.new({
databricks_cloud_cost_metrics: DatadogAPIClient::V2::DatabricksCloudCostMetricsIntegrationDataflowRequest.new({
enabled: true,
settings: DatadogAPIClient::V2::DatabricksCloudCostMetricsIntegrationDataflowSettingsRequest.new({
ccm_collect_all_workspaces: true,
}),
}),
databricks_data_observability_jobs_monitoring: DatadogAPIClient::V2::DatabricksDataObservabilityJobsMonitoringIntegrationDataflowRequest.new({
enabled: true,
settings: DatadogAPIClient::V2::DatabricksDataObservabilityJobsMonitoringIntegrationDataflowSettingsRequest.new({
dd_api_key_id: "fe383f4e-09fc-46bf-8e10-4efdd453a646",
dd_api_key_secret: "your-datadog-api-key",
djm_global_init_script_enabled: true,
script_gpum_enabled: true,
script_logs_enabled: true,
serverless_jobs_enabled: true,
}),
}),
databricks_data_observability_quality_monitoring: DatadogAPIClient::V2::DatabricksDataObservabilityQualityMonitoringIntegrationDataflowRequest.new({
enabled: true,
settings: DatadogAPIClient::V2::DatabricksDataObservabilityQualityMonitoringIntegrationDataflowSettingsRequest.new({
do_crawlers_cron: "0 * * * *",
sync_system_catalog: true,
}),
}),
databricks_model_serving_metrics: DatadogAPIClient::V2::DatabricksModelServingMetricsIntegrationDataflowRequest.new({
enabled: true,
}),
}),
name: "My Databricks Workspace",
settings: DatadogAPIClient::V2::DatabricksIntegrationAccountSettingsUpdate.new({
system_tables_sql_warehouse_id: "aba7c023d4172910",
workspace_url: "https://dbc-1234abcd.cloud.databricks.com",
}),
}),
id: "a9a69c2e-4f8d-4e42-9c1a-2a7a2d3b7c6f",
type: DatadogAPIClient::V2::IntegrationAccountType::INTEGRATION_ACCOUNT,
}),
})
p api_instance.update_databricks_integration_account("account_id", body)
13 changes: 13 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4080,6 +4080,19 @@
"id" => "UUID",
"body" => "IncidentTimestampOverridePatchRequest",
},
"v2.CreateDatabricksIntegrationAccount" => {
"body" => "DatabricksIntegrationAccountCreateRequest",
},
"v2.DeleteDatabricksIntegrationAccount" => {
"account_id" => "String",
},
"v2.GetDatabricksIntegrationAccount" => {
"account_id" => "String",
},
"v2.UpdateDatabricksIntegrationAccount" => {
"account_id" => "String",
"body" => "DatabricksIntegrationAccountUpdateRequest",
},
"v2.CreateElasticCloudIntegrationAccount" => {
"body" => "ElasticCloudIntegrationAccountCreateRequest",
},
Expand Down
12 changes: 6 additions & 6 deletions features/v2/agent_observability.feature
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Feature: Agent Observability
Given operation "CreateLLMObsPromptVersion" enabled
And new "CreateLLMObsPromptVersion" request
And request contains "prompt_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"env_ids": [], "labels": ["production"], "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-template-versions"}}
And body with value {"data": {"attributes": {"config": {"model": "provider-model", "response_format": {"type": "json_object"}, "temperature": 0.2}, "env_ids": [], "labels": ["production"], "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-template-versions"}}
When the request is sent
Then the response status is 400 Bad Request

Expand All @@ -193,7 +193,7 @@ Feature: Agent Observability
Given operation "CreateLLMObsPromptVersion" enabled
And new "CreateLLMObsPromptVersion" request
And request contains "prompt_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"env_ids": [], "labels": ["production"], "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-template-versions"}}
And body with value {"data": {"attributes": {"config": {"model": "provider-model", "response_format": {"type": "json_object"}, "temperature": 0.2}, "env_ids": [], "labels": ["production"], "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-template-versions"}}
When the request is sent
Then the response status is 404 Not Found

Expand All @@ -202,7 +202,7 @@ Feature: Agent Observability
Given operation "CreateLLMObsPromptVersion" enabled
And new "CreateLLMObsPromptVersion" request
And request contains "prompt_id" parameter from "REPLACE.ME"
And body with value {"data": {"attributes": {"env_ids": [], "labels": ["production"], "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-template-versions"}}
And body with value {"data": {"attributes": {"config": {"model": "provider-model", "response_format": {"type": "json_object"}, "temperature": 0.2}, "env_ids": [], "labels": ["production"], "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-template-versions"}}
When the request is sent
Then the response status is 200 OK

Expand Down Expand Up @@ -310,23 +310,23 @@ Feature: Agent Observability
Scenario: Create an Agent Observability prompt returns "Bad Request" response
Given operation "CreateLLMObsPrompt" enabled
And new "CreateLLMObsPrompt" request
And body with value {"data": {"attributes": {"env_ids": [], "labels": ["production"], "prompt_id": "customer-support-assistant", "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-templates"}}
And body with value {"data": {"attributes": {"config": {"model": "provider-model", "response_format": {"type": "json_object"}, "temperature": 0.2}, "env_ids": [], "labels": ["production"], "prompt_id": "customer-support-assistant", "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-templates"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/ml-observability
Scenario: Create an Agent Observability prompt returns "Conflict" response
Given operation "CreateLLMObsPrompt" enabled
And new "CreateLLMObsPrompt" request
And body with value {"data": {"attributes": {"env_ids": [], "labels": ["production"], "prompt_id": "customer-support-assistant", "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-templates"}}
And body with value {"data": {"attributes": {"config": {"model": "provider-model", "response_format": {"type": "json_object"}, "temperature": 0.2}, "env_ids": [], "labels": ["production"], "prompt_id": "customer-support-assistant", "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-templates"}}
When the request is sent
Then the response status is 409 Conflict

@generated @skip @team:DataDog/ml-observability
Scenario: Create an Agent Observability prompt returns "OK" response
Given operation "CreateLLMObsPrompt" enabled
And new "CreateLLMObsPrompt" request
And body with value {"data": {"attributes": {"env_ids": [], "labels": ["production"], "prompt_id": "customer-support-assistant", "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-templates"}}
And body with value {"data": {"attributes": {"config": {"model": "provider-model", "response_format": {"type": "json_object"}, "temperature": 0.2}, "env_ids": [], "labels": ["production"], "prompt_id": "customer-support-assistant", "template": "You are a helpful assistant for {{audience}}."}, "type": "prompt-templates"}}
When the request is sent
Then the response status is 200 OK

Expand Down
Loading
Loading