Skip to content

Commit add9b16

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 54f2896 of spec repo
1 parent abb36cc commit add9b16

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
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.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
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"

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)