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
711 changes: 711 additions & 0 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-04T14:30:13.862Z

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-04T14:30:17.282Z

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/cloud-cost-management/ListCostTagDescriptions.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List Cloud Cost Management tag descriptions returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::CloudCostManagementAPI.new
p api_instance.list_cost_tag_descriptions()
8 changes: 8 additions & 0 deletions examples/v2/key-management/Validate.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Validate API key returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
config.unstable_operations["v2.validate".to_sym] = true
end
api_instance = DatadogAPIClient::V2::KeyManagementAPI.new
p api_instance.validate()
5 changes: 5 additions & 0 deletions examples/v2/key-management/ValidateAPIKey.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Validate API and application keys returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::KeyManagementAPI.new
p api_instance.validate_api_key()
53 changes: 53 additions & 0 deletions examples/v2/status-pages/CreateBackfilledDegradation.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Create backfilled degradation returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::StatusPagesAPI.new

# there is a valid "status_page" in the system
STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID = ENV["STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID"]
STATUS_PAGE_DATA_ID = ENV["STATUS_PAGE_DATA_ID"]

body = DatadogAPIClient::V2::CreateBackfilledDegradationRequest.new({
data: DatadogAPIClient::V2::CreateBackfilledDegradationRequestData.new({
attributes: DatadogAPIClient::V2::CreateBackfilledDegradationRequestDataAttributes.new({
title: "Past API Outage",
updates: [
DatadogAPIClient::V2::CreateBackfilledDegradationRequestDataAttributesUpdatesItems.new({
components_affected: [
DatadogAPIClient::V2::CreateDegradationRequestDataAttributesComponentsAffectedItems.new({
id: STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID,
status: DatadogAPIClient::V2::StatusPagesComponentDataAttributesStatus::DEGRADED,
}),
],
description: "We detected elevated error rates in the API.",
started_at: (Time.now + -1 * 3600),
status: DatadogAPIClient::V2::CreateDegradationRequestDataAttributesStatus::INVESTIGATING,
}),
DatadogAPIClient::V2::CreateBackfilledDegradationRequestDataAttributesUpdatesItems.new({
components_affected: [
DatadogAPIClient::V2::CreateDegradationRequestDataAttributesComponentsAffectedItems.new({
id: STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID,
status: DatadogAPIClient::V2::StatusPagesComponentDataAttributesStatus::DEGRADED,
}),
],
description: "Root cause identified as a misconfigured deployment.",
started_at: (Time.now + -30 * 60),
status: DatadogAPIClient::V2::CreateDegradationRequestDataAttributesStatus::IDENTIFIED,
}),
DatadogAPIClient::V2::CreateBackfilledDegradationRequestDataAttributesUpdatesItems.new({
components_affected: [
DatadogAPIClient::V2::CreateDegradationRequestDataAttributesComponentsAffectedItems.new({
id: STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID,
status: DatadogAPIClient::V2::StatusPagesComponentDataAttributesStatus::OPERATIONAL,
}),
],
description: "The issue has been resolved and API is operating normally.",
started_at: Time.now,
status: DatadogAPIClient::V2::CreateDegradationRequestDataAttributesStatus::RESOLVED,
}),
],
}),
type: DatadogAPIClient::V2::PatchDegradationRequestDataType::DEGRADATIONS,
}),
})
p api_instance.create_backfilled_degradation(STATUS_PAGE_DATA_ID, body)
42 changes: 42 additions & 0 deletions examples/v2/status-pages/CreateBackfilledMaintenance.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Create backfilled maintenance returns "Created" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::StatusPagesAPI.new

# there is a valid "status_page" in the system
STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID = ENV["STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID"]
STATUS_PAGE_DATA_ID = ENV["STATUS_PAGE_DATA_ID"]

body = DatadogAPIClient::V2::CreateBackfilledMaintenanceRequest.new({
data: DatadogAPIClient::V2::CreateBackfilledMaintenanceRequestData.new({
attributes: DatadogAPIClient::V2::CreateBackfilledMaintenanceRequestDataAttributes.new({
title: "Past Database Maintenance",
updates: [
DatadogAPIClient::V2::CreateBackfilledMaintenanceRequestDataAttributesUpdatesItems.new({
components_affected: [
DatadogAPIClient::V2::CreateMaintenanceRequestDataAttributesComponentsAffectedItems.new({
id: STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID,
status: DatadogAPIClient::V2::PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus::MAINTENANCE,
}),
],
description: "Database maintenance is in progress.",
started_at: (Time.now + -1 * 3600),
status: DatadogAPIClient::V2::CreateMaintenanceRequestDataAttributesUpdatesItemsStatus::IN_PROGRESS,
}),
DatadogAPIClient::V2::CreateBackfilledMaintenanceRequestDataAttributesUpdatesItems.new({
components_affected: [
DatadogAPIClient::V2::CreateMaintenanceRequestDataAttributesComponentsAffectedItems.new({
id: STATUS_PAGE_DATA_ATTRIBUTES_COMPONENTS_0_COMPONENTS_0_ID,
status: DatadogAPIClient::V2::PatchMaintenanceRequestDataAttributesComponentsAffectedItemsStatus::OPERATIONAL,
}),
],
description: "Database maintenance has been completed successfully.",
started_at: Time.now,
status: DatadogAPIClient::V2::CreateMaintenanceRequestDataAttributesUpdatesItemsStatus::COMPLETED,
}),
],
}),
type: DatadogAPIClient::V2::PatchMaintenanceRequestDataType::MAINTENANCES,
}),
})
p api_instance.create_backfilled_maintenance(STATUS_PAGE_DATA_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 @@ -2185,6 +2185,9 @@
"cloud_account_id" => "Integer",
"body" => "GCPUsageCostConfigPatchRequest",
},
"v2.ListCostTagDescriptions" => {
"filter_cloud" => "String",
},
"v2.CreateTagPipelinesRuleset" => {
"body" => "CreateRulesetRequest",
},
Expand Down Expand Up @@ -4288,6 +4291,11 @@
"include" => "String",
"body" => "CreateDegradationRequest",
},
"v2.CreateBackfilledDegradation" => {
"include" => "String",
"page_id" => "UUID",
"body" => "CreateBackfilledDegradationRequest",
},
"v2.DeleteDegradation" => {
"page_id" => "UUID",
"degradation_id" => "UUID",
Expand All @@ -4310,6 +4318,11 @@
"include" => "String",
"body" => "CreateMaintenanceRequest",
},
"v2.CreateBackfilledMaintenance" => {
"include" => "String",
"page_id" => "UUID",
"body" => "CreateBackfilledMaintenanceRequest",
},
"v2.GetMaintenance" => {
"page_id" => "UUID",
"maintenance_id" => "UUID",
Expand Down
6 changes: 6 additions & 0 deletions features/v2/cloud_cost_management.feature
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@ Feature: Cloud Cost Management
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/cloud-cost-management
Scenario: List Cloud Cost Management tag descriptions returns "OK" response
Given new "ListCostTagDescriptions" request
When the request is sent
Then the response status is 200 OK

@replay-only @team:DataDog/cloud-cost-management
Scenario: List Custom Costs Files returns "OK" response
Given new "ListCustomCostsFiles" request
Expand Down
Loading
Loading