From d7e173fd847397828b0c076619e4f53b26d6c2db Mon Sep 17 00:00:00 2001 From: "ci.datadog-api-spec" Date: Mon, 7 Sep 2026 14:40:38 +0000 Subject: [PATCH] Regenerate client from commit 9306156 of spec repo --- .generator/schemas/v2/openapi.yaml | 36 +++++++++++++++- .../test-runner-data/manifest.json | 7 ++++ ...-security-signals-returns-ok-response.json | 28 +++++++++++++ .../v2/security-monitoring.json | 41 +++++++++++++++++++ features/v2/security_monitoring.feature | 7 +++- .../SecurityMonitoringSignalAttributes.ts | 10 ++++- ...curityMonitoringSignalsListResponseMeta.ts | 25 +++++++++++ 7 files changed, 150 insertions(+), 4 deletions(-) create mode 100644 features/generated-test/test-runner-data/v2/security-monitoring/get-a-list-of-security-signals-returns-ok-response.json diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 682c9d1e9b3d..69560d96b14d 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -102133,9 +102133,21 @@ components: additionalProperties: {} description: "The object containing all signal attributes and their\nassociated values." properties: + attributes: + additionalProperties: {} + description: A JSON object of attributes in the security signal, returned when listing or searching signals. + example: + workflow: + first_seen: "2020-06-23T14:46:01.000Z" + last_seen: "2020-06-23T14:46:49.000Z" + rule: + id: 0f5-e0c-805 + name: "Brute Force Attack Grouped By User" + version: 12 + type: object custom: additionalProperties: {} - description: A JSON object of attributes in the security signal. + description: A JSON object of attributes in the security signal, returned when retrieving a single signal. example: workflow: first_seen: "2020-06-23T14:46:01.000Z" @@ -102968,8 +102980,21 @@ components: SecurityMonitoringSignalsListResponseMeta: description: Meta attributes. properties: + elapsed: + description: The time elapsed in milliseconds. + example: 132 + format: int64 + type: integer page: $ref: '#/components/schemas/SecurityMonitoringSignalsListResponseMetaPage' + request_id: + description: The unique identifier of the request. + example: example-request-id + type: string + status: + description: The status of the response. + example: done + type: string type: object SecurityMonitoringSignalsListResponseMetaPage: description: Paging attributes. @@ -205487,6 +205512,12 @@ paths: value: data: - attributes: + attributes: + workflow: + rule: + id: 0f5-e0c-805 + name: "Brute Force Attack Grouped By User" + version: 12 tags: - "source:cloudtrail" id: AAAAAWgN8Xwgr1vKDQAAAABBV2dOOFh3ZzZobm1mWXJFYTR0OA @@ -205494,8 +205525,11 @@ paths: links: next: "" meta: + elapsed: 132 page: after: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ== + request_id: example-request-id + status: done schema: $ref: '#/components/schemas/SecurityMonitoringSignalsListResponse' description: OK diff --git a/features/generated-test/test-runner-data/manifest.json b/features/generated-test/test-runner-data/manifest.json index feacbc42d64e..23ba0b000ca0 100644 --- a/features/generated-test/test-runner-data/manifest.json +++ b/features/generated-test/test-runner-data/manifest.json @@ -9730,6 +9730,13 @@ "scenario": "Get a job's details returns \"OK\" response", "version": "v2" }, + { + "feature": "Security Monitoring", + "feature_file": "../../v2/security_monitoring.feature", + "file": "v2/security-monitoring/get-a-list-of-security-signals-returns-ok-response.json", + "scenario": "Get a list of security signals returns \"OK\" response", + "version": "v2" + }, { "feature": "Security Monitoring", "feature_file": "../../v2/security_monitoring.feature", diff --git a/features/generated-test/test-runner-data/v2/security-monitoring/get-a-list-of-security-signals-returns-ok-response.json b/features/generated-test/test-runner-data/v2/security-monitoring/get-a-list-of-security-signals-returns-ok-response.json new file mode 100644 index 000000000000..febe02979111 --- /dev/null +++ b/features/generated-test/test-runner-data/v2/security-monitoring/get-a-list-of-security-signals-returns-ok-response.json @@ -0,0 +1,28 @@ +{ + "api": "SecurityMonitoring", + "expected_status": 200, + "feature": "Security Monitoring", + "id": "v2/Security Monitoring/Get a list of security signals returns \"OK\" response", + "operation_id": "SearchSecurityMonitoringSignals", + "request": { + "body": { + "schema": { + "format": null, + "ref": "SecurityMonitoringSignalListRequest", + "type": "object" + }, + "source": "inline", + "value": { + "$openapi_transformer_template": "{\"filter\": {\"from\": \"{{ timeISO(\"now-15m\") }}\", \"query\": \"security:attack status:high\", \"to\": \"{{ timeISO(\"now\") }}\"}, \"page\": {\"limit\": 25}, \"sort\": \"timestamp\"}" + } + }, + "content_type": "application/json", + "method": "POST", + "pagination": false, + "parameters": [], + "path": "/api/v2/security_monitoring/signals/search" + }, + "scenario": "Get a list of security signals returns \"OK\" response", + "schema_version": 1, + "version": "v2" +} diff --git a/features/generated-test/test-server-data/v2/security-monitoring.json b/features/generated-test/test-server-data/v2/security-monitoring.json index 16d767e78e9f..d73c2d96ce39 100644 --- a/features/generated-test/test-server-data/v2/security-monitoring.json +++ b/features/generated-test/test-server-data/v2/security-monitoring.json @@ -6315,6 +6315,47 @@ "scenario": "Get a job's details returns \"OK\" response", "version": "v2" }, + { + "feature": "Security Monitoring", + "frozen_at": "2026-09-07T11:46:49.362Z", + "interactions": [ + { + "request": { + "body": { + "type": "json", + "value": { + "filter": { + "from": "2026-09-07T11:31:49.362Z", + "query": "security:attack status:high", + "to": "2026-09-07T11:46:49.362Z" + }, + "page": { + "limit": 25 + }, + "sort": "timestamp" + } + }, + "content_type": "application/json", + "method": "POST", + "path": "/api/v2/security_monitoring/signals/search", + "query": [] + }, + "response": { + "body": { + "encoding": "text", + "value": "{\"data\":[],\"meta\":{\"elapsed\":24,\"request_id\":\"pddv1ChZqcnNodVBJQ1RWQ3Z2c3ZWNk16b1hnIiwKHEcyOE2iTY5xAPH0dcTcAYFseqFJt4YjCHkKmO4SDDns4KG5VTag-ijkzg\",\"status\":\"done\"}}" + }, + "headers": { + "content-type": "application/json" + }, + "reason": "OK", + "status": 200 + } + } + ], + "scenario": "Get a list of security signals returns \"OK\" response", + "version": "v2" + }, { "feature": "Security Monitoring", "frozen_at": "2022-04-13T11:32:57.080Z", diff --git a/features/v2/security_monitoring.feature b/features/v2/security_monitoring.feature index 12b40ab104a6..bc79271b78a4 100644 --- a/features/v2/security_monitoring.feature +++ b/features/v2/security_monitoring.feature @@ -1787,12 +1787,15 @@ Feature: Security Monitoring When the request is sent Then the response status is 400 Bad Request - @generated @skip @team:DataDog/cloud-siem + @team:DataDog/cloud-siem Scenario: Get a list of security signals returns "OK" response Given new "SearchSecurityMonitoringSignals" request - And body with value {"filter": {"from": "2019-01-02T09:42:36.320Z", "query": "security:attack status:high", "to": "2019-01-03T09:42:36.320Z"}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "timestamp"} + And body with value {"filter": {"from": "{{ timeISO("now-15m") }}", "query": "security:attack status:high", "to": "{{ timeISO("now") }}"}, "page": {"limit": 25}, "sort": "timestamp"} When the request is sent Then the response status is 200 OK + And the response "meta" has field "elapsed" + And the response "meta" has field "request_id" + And the response "meta.status" is equal to "done" @replay-only @skip-validation @team:DataDog/cloud-siem @with-pagination Scenario: Get a list of security signals returns "OK" response with pagination diff --git a/services/security_monitoring/src/v2/models/SecurityMonitoringSignalAttributes.ts b/services/security_monitoring/src/v2/models/SecurityMonitoringSignalAttributes.ts index f559a3b136f1..79dabb1e0f89 100644 --- a/services/security_monitoring/src/v2/models/SecurityMonitoringSignalAttributes.ts +++ b/services/security_monitoring/src/v2/models/SecurityMonitoringSignalAttributes.ts @@ -6,7 +6,11 @@ import { AttributeTypeMap } from "@datadog/datadog-api-client"; */ export class SecurityMonitoringSignalAttributes { /** - * A JSON object of attributes in the security signal. + * A JSON object of attributes in the security signal, returned when listing or searching signals. + */ + "attributes"?: { [key: string]: any }; + /** + * A JSON object of attributes in the security signal, returned when retrieving a single signal. */ "custom"?: { [key: string]: any }; /** @@ -36,6 +40,10 @@ export class SecurityMonitoringSignalAttributes { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + attributes: { + baseName: "attributes", + type: "{ [key: string]: any; }", + }, custom: { baseName: "custom", type: "{ [key: string]: any; }", diff --git a/services/security_monitoring/src/v2/models/SecurityMonitoringSignalsListResponseMeta.ts b/services/security_monitoring/src/v2/models/SecurityMonitoringSignalsListResponseMeta.ts index 2abe7631470d..b1143a976697 100644 --- a/services/security_monitoring/src/v2/models/SecurityMonitoringSignalsListResponseMeta.ts +++ b/services/security_monitoring/src/v2/models/SecurityMonitoringSignalsListResponseMeta.ts @@ -6,10 +6,22 @@ import { SecurityMonitoringSignalsListResponseMetaPage } from "./SecurityMonitor * Meta attributes. */ export class SecurityMonitoringSignalsListResponseMeta { + /** + * The time elapsed in milliseconds. + */ + "elapsed"?: number; /** * Paging attributes. */ "page"?: SecurityMonitoringSignalsListResponseMetaPage; + /** + * The unique identifier of the request. + */ + "requestId"?: string; + /** + * The status of the response. + */ + "status"?: string; /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -25,10 +37,23 @@ export class SecurityMonitoringSignalsListResponseMeta { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + elapsed: { + baseName: "elapsed", + type: "number", + format: "int64", + }, page: { baseName: "page", type: "SecurityMonitoringSignalsListResponseMetaPage", }, + requestId: { + baseName: "request_id", + type: "string", + }, + status: { + baseName: "status", + type: "string", + }, additionalProperties: { baseName: "additionalProperties", type: "{ [key: string]: any; }",