Skip to content

Commit d9b64a0

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 568f007 of spec repo
1 parent d481737 commit d9b64a0

File tree

5 files changed

+11
-28
lines changed

5 files changed

+11
-28
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19382,12 +19382,6 @@ components:
1938219382
JobDefinitionFromRule:
1938319383
description: Definition of a historical job based on a security monitoring rule.
1938419384
properties:
19385-
caseIndex:
19386-
description: Index of the rule case applied by the job.
19387-
example: 0
19388-
format: int32
19389-
maximum: 9
19390-
type: integer
1939119385
from:
1939219386
description: Starting time of data analyzed by the job.
1939319387
example: 1729843470000
@@ -19418,7 +19412,6 @@ components:
1941819412
- from
1941919413
- to
1942019414
- index
19421-
- caseIndex
1942219415
type: object
1942319416
KindAttributes:
1942419417
description: Kind attributes.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-08T09:54:40.192Z"
1+
"2025-06-13T18:19:47.739Z"

cassettes/v2/Security-Monitoring_1187227211/Run-a-historical-job-returns-Not-Found-response_258356351/recording.har

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "8056350d00d9df6e525e771fe22b1354",
11+
"_id": "6baefcd2575a7f9d36bff35d836edcfc",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 184,
15+
"bodySize": 170,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -26,23 +26,23 @@
2626
"value": "application/json"
2727
}
2828
],
29-
"headersSize": 581,
29+
"headersSize": 582,
3030
"httpVersion": "HTTP/1.1",
3131
"method": "POST",
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"data\":{\"attributes\":{\"fromRule\":{\"caseIndex\":0,\"from\":1730201035064,\"id\":\"non-existng\",\"index\":\"main\",\"notifications\":[],\"to\":1730204635115}},\"type\":\"historicalDetectionsJobCreate\"}}"
35+
"text": "{\"data\":{\"attributes\":{\"fromRule\":{\"from\":1730201035064,\"id\":\"non-existng\",\"index\":\"main\",\"notifications\":[],\"to\":1730204635115}},\"type\":\"historicalDetectionsJobCreate\"}}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v2/siem-historical-detections/jobs"
3939
},
4040
"response": {
41-
"bodySize": 67,
41+
"bodySize": 49,
4242
"content": {
4343
"mimeType": "application/vnd.api+json",
44-
"size": 67,
45-
"text": "{\"errors\":[{\"status\":\"404\",\"detail\":\"failed to get rule details\"}]}"
44+
"size": 49,
45+
"text": "{\"errors\":[{\"status\":\"404\",\"title\":\"Not Found\"}]}"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,8 +57,8 @@
5757
"status": 404,
5858
"statusText": "Not Found"
5959
},
60-
"startedDateTime": "2024-11-08T09:54:40.194Z",
61-
"time": 73
60+
"startedDateTime": "2025-06-13T18:19:47.741Z",
61+
"time": 71
6262
}
6363
],
6464
"pages": [],

features/v2/security_monitoring.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ Feature: Security Monitoring
10951095
Scenario: Run a historical job returns "Not Found" response
10961096
Given operation "RunHistoricalJob" enabled
10971097
And new "RunHistoricalJob" request
1098-
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"caseIndex": 0, "from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
1098+
And body with value {"data": { "type": "historicalDetectionsJobCreate", "attributes": {"fromRule": {"from": 1730201035064, "id": "non-existng", "index": "main", "notifications": [], "to": 1730204635115}}}}
10991099
When the request is sent
11001100
Then the response status is 404 Not Found
11011101

services/security_monitoring/src/v2/models/JobDefinitionFromRule.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client";
44
* Definition of a historical job based on a security monitoring rule.
55
*/
66
export class JobDefinitionFromRule {
7-
/**
8-
* Index of the rule case applied by the job.
9-
*/
10-
"caseIndex": number;
117
/**
128
* Starting time of data analyzed by the job.
139
*/
@@ -43,12 +39,6 @@ export class JobDefinitionFromRule {
4339
* @ignore
4440
*/
4541
static readonly attributeTypeMap: AttributeTypeMap = {
46-
caseIndex: {
47-
baseName: "caseIndex",
48-
type: "number",
49-
required: true,
50-
format: "int32",
51-
},
5242
from: {
5343
baseName: "from",
5444
type: "number",

0 commit comments

Comments
 (0)