Skip to content

Commit b356648

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fe3756c4 of spec repo
1 parent 4c44931 commit b356648

File tree

11 files changed

+23
-126
lines changed

11 files changed

+23
-126
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-04-04 20:19:34.024681",
8-
"spec_repo_commit": "3909ab62"
7+
"regenerated": "2025-04-06 16:06:34.726233",
8+
"spec_repo_commit": "fe3756c4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-04 20:19:34.040447",
13-
"spec_repo_commit": "3909ab62"
12+
"regenerated": "2025-04-06 16:06:34.742117",
13+
"spec_repo_commit": "fe3756c4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50645,9 +50645,6 @@ paths:
5064550645
summary: List historical jobs
5064650646
tags:
5064750647
- Security Monitoring
50648-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.
50649-
50650-
Please check the documentation regularly for updates.'
5065150648
post:
5065250649
description: Run a historical job.
5065350650
operationId: RunHistoricalJob
@@ -50687,9 +50684,6 @@ paths:
5068750684
operator: OR
5068850685
permissions:
5068950686
- security_monitoring_rules_write
50690-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.
50691-
50692-
Please check the documentation regularly for updates.'
5069350687
/api/v2/siem-historical-detections/jobs/signal_convert:
5069450688
post:
5069550689
description: Convert a job result to a signal.
@@ -50721,9 +50715,6 @@ paths:
5072150715
operator: OR
5072250716
permissions:
5072350717
- security_monitoring_signals_write
50724-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.
50725-
50726-
Please check the documentation regularly for updates.'
5072750718
/api/v2/siem-historical-detections/jobs/{job_id}:
5072850719
delete:
5072950720
description: Delete an existing job.
@@ -50752,9 +50743,6 @@ paths:
5075250743
summary: Delete an existing job
5075350744
tags:
5075450745
- Security Monitoring
50755-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.
50756-
50757-
Please check the documentation regularly for updates.'
5075850746
get:
5075950747
description: Get a job's details.
5076050748
operationId: GetHistoricalJob
@@ -50787,9 +50775,6 @@ paths:
5078750775
operator: OR
5078850776
permissions:
5078950777
- security_monitoring_rules_read
50790-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.
50791-
50792-
Please check the documentation regularly for updates.'
5079350778
/api/v2/siem-historical-detections/jobs/{job_id}/cancel:
5079450779
patch:
5079550780
description: Cancel a historical job.
@@ -50823,9 +50808,6 @@ paths:
5082350808
operator: OR
5082450809
permissions:
5082550810
- security_monitoring_rules_write
50826-
x-unstable: '**Note**: This endpoint is in beta and may be subject to changes.
50827-
50828-
Please check the documentation regularly for updates.'
5082950811
/api/v2/slo/report:
5083050812
post:
5083150813
description: 'Create a job to generate an SLO report. The report job is processed

examples/v2/security-monitoring/CancelHistoricalJob.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Cancel a historical job returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.cancel_historical_job".to_sym] = true
6-
config.unstable_operations["v2.run_historical_job".to_sym] = true
7-
end
84
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
95

106
# there is a valid "historical_job" in the system

examples/v2/security-monitoring/ConvertJobResultToSignal.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Convert a job result to a signal returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.convert_job_result_to_signal".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::ConvertJobResultsToSignalsRequest.new({
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Delete an existing job returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.delete_historical_job".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85
api_instance.delete_historical_job("job_id")

examples/v2/security-monitoring/GetHistoricalJob.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Get a job's details returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.get_historical_job".to_sym] = true
6-
config.unstable_operations["v2.run_historical_job".to_sym] = true
7-
end
84
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
95

106
# there is a valid "historical_job" in the system

examples/v2/security-monitoring/ListHistoricalJobs.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# List historical jobs returns "OK" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.list_historical_jobs".to_sym] = true
6-
config.unstable_operations["v2.run_historical_job".to_sym] = true
7-
end
84
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
95

106
# there is a valid "historical_job" in the system

examples/v2/security-monitoring/RunHistoricalJob.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
# Run a historical job returns "Status created" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.run_historical_job".to_sym] = true
6-
end
74
api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new
85

96
body = DatadogAPIClient::V2::RunHistoricalJobRequest.new({

features/v2/security_monitoring.feature

Lines changed: 19 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,28 @@ Feature: Security Monitoring
1111

1212
@team:DataDog/k9-cloud-security-platform
1313
Scenario: Cancel a historical job returns "Bad Request" response
14-
Given operation "CancelHistoricalJob" enabled
15-
And new "CancelHistoricalJob" request
14+
Given new "CancelHistoricalJob" request
1615
And request contains "job_id" parameter with value "inva-lid"
1716
When the request is sent
1817
Then the response status is 400 Bad Request
1918

2019
@generated @skip @team:DataDog/k9-cloud-security-platform
2120
Scenario: Cancel a historical job returns "Conflict" response
22-
Given operation "CancelHistoricalJob" enabled
23-
And new "CancelHistoricalJob" request
21+
Given new "CancelHistoricalJob" request
2422
And request contains "job_id" parameter from "REPLACE.ME"
2523
When the request is sent
2624
Then the response status is 409 Conflict
2725

2826
@team:DataDog/k9-cloud-security-platform
2927
Scenario: Cancel a historical job returns "Not Found" response
30-
Given operation "CancelHistoricalJob" enabled
31-
And new "CancelHistoricalJob" request
28+
Given new "CancelHistoricalJob" request
3229
And request contains "job_id" parameter with value "8e2a37fb-b0c8-4761-a7f0-0a8d6a98ba93"
3330
When the request is sent
3431
Then the response status is 404 Not Found
3532

3633
@team:DataDog/k9-cloud-security-platform
3734
Scenario: Cancel a historical job returns "OK" response
38-
Given operation "CancelHistoricalJob" enabled
39-
And operation "RunHistoricalJob" enabled
40-
And new "CancelHistoricalJob" request
35+
Given new "CancelHistoricalJob" request
4136
And there is a valid "historical_job" in the system
4237
And request contains "job_id" parameter from "historical_job.data.id"
4338
When the request is sent
@@ -93,24 +88,21 @@ Feature: Security Monitoring
9388

9489
@team:DataDog/k9-cloud-security-platform
9590
Scenario: Convert a job result to a signal returns "Bad Request" response
96-
Given operation "ConvertJobResultToSignal" enabled
97-
And new "ConvertJobResultToSignal" request
91+
Given new "ConvertJobResultToSignal" request
9892
And body with value {"data": {"attributes": {"jobResultIds": [""], "notifications": [""], "signalMessage": "A large number of failed login attempts.", "signalSeverity": "critical"}, "type": "historicalDetectionsJobResultSignalConversion"}}
9993
When the request is sent
10094
Then the response status is 400 Bad Request
10195

10296
@generated @skip @team:DataDog/k9-cloud-security-platform
10397
Scenario: Convert a job result to a signal returns "Not Found" response
104-
Given operation "ConvertJobResultToSignal" enabled
105-
And new "ConvertJobResultToSignal" request
98+
Given new "ConvertJobResultToSignal" request
10699
And body with value {"data": {"attributes": {"jobResultIds": [""], "notifications": [""], "signalMessage": "A large number of failed login attempts.", "signalSeverity": "critical"}, "type": "historicalDetectionsJobResultSignalConversion"}}
107100
When the request is sent
108101
Then the response status is 404 Not Found
109102

110103
@generated @skip @team:DataDog/k9-cloud-security-platform
111104
Scenario: Convert a job result to a signal returns "OK" response
112-
Given operation "ConvertJobResultToSignal" enabled
113-
And new "ConvertJobResultToSignal" request
105+
Given new "ConvertJobResultToSignal" request
114106
And body with value {"data": {"attributes": {"jobResultIds": [""], "notifications": [""], "signalMessage": "A large number of failed login attempts.", "signalSeverity": "critical"}, "type": "historicalDetectionsJobResultSignalConversion"}}
115107
When the request is sent
116108
Then the response status is 204 OK
@@ -410,32 +402,28 @@ Feature: Security Monitoring
410402

411403
@team:DataDog/k9-cloud-security-platform
412404
Scenario: Delete an existing job returns "Bad Request" response
413-
Given operation "DeleteHistoricalJob" enabled
414-
And new "DeleteHistoricalJob" request
405+
Given new "DeleteHistoricalJob" request
415406
And request contains "job_id" parameter with value "inva-lid"
416407
When the request is sent
417408
Then the response status is 400 Bad Request
418409

419410
@generated @skip @team:DataDog/k9-cloud-security-platform
420411
Scenario: Delete an existing job returns "Conflict" response
421-
Given operation "DeleteHistoricalJob" enabled
422-
And new "DeleteHistoricalJob" request
412+
Given new "DeleteHistoricalJob" request
423413
And request contains "job_id" parameter from "REPLACE.ME"
424414
When the request is sent
425415
Then the response status is 409 Conflict
426416

427417
@team:DataDog/k9-cloud-security-platform
428418
Scenario: Delete an existing job returns "Not Found" response
429-
Given operation "DeleteHistoricalJob" enabled
430-
And new "DeleteHistoricalJob" request
419+
Given new "DeleteHistoricalJob" request
431420
And request contains "job_id" parameter with value "8e2a37fb-b0c8-4761-a7f0-0a8d6a98ba93"
432421
When the request is sent
433422
Then the response status is 404 Not Found
434423

435424
@generated @skip @team:DataDog/k9-cloud-security-platform
436425
Scenario: Delete an existing job returns "OK" response
437-
Given operation "DeleteHistoricalJob" enabled
438-
And new "DeleteHistoricalJob" request
426+
Given new "DeleteHistoricalJob" request
439427
And request contains "job_id" parameter from "REPLACE.ME"
440428
When the request is sent
441429
Then the response status is 204 OK
@@ -519,25 +507,21 @@ Feature: Security Monitoring
519507

520508
@team:DataDog/k9-cloud-security-platform
521509
Scenario: Get a job's details returns "Bad Request" response
522-
Given operation "GetHistoricalJob" enabled
523-
And new "GetHistoricalJob" request
510+
Given new "GetHistoricalJob" request
524511
And request contains "job_id" parameter with value "inva-lid"
525512
When the request is sent
526513
Then the response status is 400 Bad Request
527514

528515
@team:DataDog/k9-cloud-security-platform
529516
Scenario: Get a job's details returns "Not Found" response
530-
Given operation "GetHistoricalJob" enabled
531-
And new "GetHistoricalJob" request
517+
Given new "GetHistoricalJob" request
532518
And request contains "job_id" parameter with value "8e2a37fb-b0c8-4761-a7f0-0a8d6a98ba93"
533519
When the request is sent
534520
Then the response status is 404 Not Found
535521

536522
@team:DataDog/k9-cloud-security-platform
537523
Scenario: Get a job's details returns "OK" response
538-
Given operation "GetHistoricalJob" enabled
539-
And operation "RunHistoricalJob" enabled
540-
And new "GetHistoricalJob" request
524+
Given new "GetHistoricalJob" request
541525
And there is a valid "historical_job" in the system
542526
And request contains "job_id" parameter from "historical_job.data.id"
543527
When the request is sent
@@ -801,16 +785,13 @@ Feature: Security Monitoring
801785

802786
@generated @skip @team:DataDog/k9-cloud-security-platform
803787
Scenario: List historical jobs returns "Bad Request" response
804-
Given operation "ListHistoricalJobs" enabled
805-
And new "ListHistoricalJobs" request
788+
Given new "ListHistoricalJobs" request
806789
When the request is sent
807790
Then the response status is 400 Bad Request
808791

809792
@team:DataDog/k9-cloud-security-platform
810793
Scenario: List historical jobs returns "OK" response
811-
Given operation "ListHistoricalJobs" enabled
812-
And operation "RunHistoricalJob" enabled
813-
And new "ListHistoricalJobs" request
794+
Given new "ListHistoricalJobs" request
814795
And there is a valid "historical_job" in the system
815796
And request contains "filter[query]" parameter with value "id:{{historical_job.data.id}}"
816797
When the request is sent
@@ -1006,24 +987,21 @@ Feature: Security Monitoring
1006987

1007988
@team:DataDog/k9-cloud-security-platform
1008989
Scenario: Run a historical job returns "Bad Request" response
1009-
Given operation "RunHistoricalJob" enabled
1010-
And new "RunHistoricalJob" request
990+
Given new "RunHistoricalJob" request
1011991
And body with value {"data":{"type":"historicalDetectionsJobCreate","attributes":{"jobDefinition":{"type":"log_detection","name":"Excessive number of failed attempts.","queries":[{"query":"source:non_existing_src_weekend","aggregation":"count","groupByFields":[],"distinctFields":[]}],"cases":[{"name":"Condition 1","status":"info","notifications":[],"condition":"a > 1"}],"options":{"keepAlive":3600,"maxSignalDuration":86400,"evaluationWindow":900},"message":"A large number of failed login attempts.","tags":[],"from":1730387522611,"to":1730391122611,"index":"non_existing_index"}}}}
1012992
When the request is sent
1013993
Then the response status is 400 Bad Request
1014994

1015995
@team:DataDog/k9-cloud-security-platform
1016996
Scenario: Run a historical job returns "Not Found" response
1017-
Given operation "RunHistoricalJob" enabled
1018-
And new "RunHistoricalJob" request
997+
Given new "RunHistoricalJob" request
1019998
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"caseIndex": 0, "from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
1020999
When the request is sent
10211000
Then the response status is 404 Not Found
10221001

10231002
@team:DataDog/k9-cloud-security-platform
10241003
Scenario: Run a historical job returns "Status created" response
1025-
Given operation "RunHistoricalJob" enabled
1026-
And new "RunHistoricalJob" request
1004+
Given new "RunHistoricalJob" request
10271005
And body with value {"data":{"type":"historicalDetectionsJobCreate","attributes":{"jobDefinition":{"type":"log_detection","name":"Excessive number of failed attempts.","queries":[{"query":"source:non_existing_src_weekend","aggregation":"count","groupByFields":[],"distinctFields":[]}],"cases":[{"name":"Condition 1","status":"info","notifications":[],"condition":"a > 1"}],"options":{"keepAlive":3600,"maxSignalDuration":86400,"evaluationWindow":900},"message":"A large number of failed login attempts.","tags":[],"from":1730387522611,"to":1730387532611,"index":"main"}}}}
10281006
When the request is sent
10291007
Then the response status is 201 Status created

lib/datadog_api_client/configuration.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,13 @@ def initialize
231231
"v2.update_aws_account": false,
232232
"v2.list_aws_logs_services": false,
233233
"v2.get_aggregated_connections": false,
234-
"v2.cancel_historical_job": false,
235-
"v2.convert_job_result_to_signal": false,
236-
"v2.delete_historical_job": false,
237234
"v2.get_finding": false,
238-
"v2.get_historical_job": false,
239235
"v2.get_rule_version_history": false,
240236
"v2.get_sbom": false,
241237
"v2.list_findings": false,
242-
"v2.list_historical_jobs": false,
243238
"v2.list_vulnerabilities": false,
244239
"v2.list_vulnerable_assets": false,
245240
"v2.mute_findings": false,
246-
"v2.run_historical_job": false,
247241
"v2.create_scorecard_outcomes_batch": false,
248242
"v2.create_scorecard_rule": false,
249243
"v2.delete_scorecard_rule": false,

0 commit comments

Comments
 (0)