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
641 changes: 246 additions & 395 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-06-12T09:57:22.725Z

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-06-12T08:39:41.348Z

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-06-12T09:57:25.549Z

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

This file was deleted.

This file was deleted.

This file was deleted.

11 changes: 11 additions & 0 deletions examples/v2/security-monitoring/RestoreSecurityMonitoringRule.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Restore a rule to a historical version returns "OK" response

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

# there is a valid "security_rule" in the system
SECURITY_RULE_ID = ENV["SECURITY_RULE_ID"]
p api_instance.restore_security_monitoring_rule(SECURITY_RULE_ID, 1)
22 changes: 10 additions & 12 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2352,6 +2352,10 @@
"v2.ConvertExistingSecurityMonitoringRule" => {
"rule_id" => "String",
},
"v2.RestoreSecurityMonitoringRule" => {
"rule_id" => "String",
"version" => "Integer",
},
"v2.TestExistingSecurityMonitoringRule" => {
"rule_id" => "String",
"body" => "SecurityMonitoringRuleTestRequest",
Expand Down Expand Up @@ -2947,6 +2951,12 @@
"v2.GetDashboardUsage" => {
"dashboard_id" => "String",
},
"v2.GetDataObservabilityMonitorRunStatus" => {
"run_id" => "String",
},
"v2.RunDataObservabilityMonitor" => {
"monitor_id" => "Integer",
},
"v2.CreateDataset" => {
"body" => "DatasetCreateRequest",
},
Expand Down Expand Up @@ -4856,18 +4866,6 @@
"v2.GetServiceRepositoryInfo" => {
"body" => "ServiceRepositoryInfoRequest",
},
"v2.ListHardcodedRetentionFilters" => {
"app_id" => "String",
},
"v2.GetHardcodedRetentionFilter" => {
"app_id" => "String",
"rf_id" => "String",
},
"v2.UpdateHardcodedRetentionFilter" => {
"app_id" => "String",
"rf_id" => "String",
"body" => "RumHardcodedRetentionFilterUpdateRequest",
},
"v2.OrderRetentionFilters" => {
"app_id" => "String",
"body" => "RumRetentionFiltersOrderRequest",
Expand Down
16 changes: 16 additions & 0 deletions features/v2/given.json
Original file line number Diff line number Diff line change
Expand Up @@ -1422,6 +1422,22 @@
"tag": "Security Monitoring",
"operationId": "CreateSecurityMonitoringRule"
},
{
"parameters": [
{
"name": "rule_id",
"source": "security_rule.id"
},
{
"name": "body",
"value": "{\n \"name\": \"{{ unique }}-updated\",\n \"queries\": [{\n \"query\": \"@test:true\",\n \"aggregation\": \"count\",\n \"groupByFields\": [],\n \"distinctFields\": [],\n \"metrics\": []\n }],\n \"filters\": [],\n \"cases\": [{\n \"name\": \"\",\n \"status\": \"info\",\n \"condition\": \"a > 0\",\n \"notifications\": []\n }],\n \"options\": {\n \"evaluationWindow\": 900,\n \"keepAlive\": 3600,\n \"maxSignalDuration\": 86400\n },\n \"message\": \"Test rule updated\",\n \"tags\": [],\n \"isEnabled\": true\n}"
}
],
"step": "there is a valid \"security_rule_updated\" in the system",
"key": "security_rule_updated",
"tag": "Security Monitoring",
"operationId": "UpdateSecurityMonitoringRule"
},
{
"step": "a valid \"configuration\" in the system",
"key": "configuration",
Expand Down
Loading
Loading