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
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52651,6 +52651,9 @@ components:
modifiedAt:
description: Last modification time of the job.
type: string
signalOutput:
description: Whether the job outputs signals.
type: boolean
type: object
ThreatHuntingJobResponseData:
description: Threat hunting job response data.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def openapi_types(_):
"job_name": (str,),
"job_status": (str,),
"modified_at": (str,),
"signal_output": (bool,),
}

attribute_map = {
Expand All @@ -42,6 +43,7 @@ def openapi_types(_):
"job_name": "jobName",
"job_status": "jobStatus",
"modified_at": "modifiedAt",
"signal_output": "signalOutput",
}

def __init__(
Expand All @@ -54,6 +56,7 @@ def __init__(
job_name: Union[str, UnsetType] = unset,
job_status: Union[str, UnsetType] = unset,
modified_at: Union[str, UnsetType] = unset,
signal_output: Union[bool, UnsetType] = unset,
**kwargs,
):
"""
Expand Down Expand Up @@ -82,6 +85,9 @@ def __init__(

:param modified_at: Last modification time of the job.
:type modified_at: str, optional

:param signal_output: Whether the job outputs signals.
:type signal_output: bool, optional
"""
if created_at is not unset:
kwargs["created_at"] = created_at
Expand All @@ -99,4 +105,6 @@ def __init__(
kwargs["job_status"] = job_status
if modified_at is not unset:
kwargs["modified_at"] = modified_at
if signal_output is not unset:
kwargs["signal_output"] = signal_output
super().__init__(kwargs)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-24T14:24:01.707Z
2025-11-11T21:36:52.314Z
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interactions:
uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs
response:
body:
string: '{"data":{"id":"071b3516-4072-44d9-9288-d4adaa1db921","type":"historicalDetectionsJob"}}'
string: '{"data":{"id":"66896986-212c-4e6c-9890-14e5cfd0fc19","type":"historicalDetectionsJob"}}'
headers:
content-type:
- application/vnd.api+json
Expand All @@ -25,17 +25,16 @@ interactions:
accept:
- application/json
method: GET
uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs/071b3516-4072-44d9-9288-d4adaa1db921
uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs/66896986-212c-4e6c-9890-14e5cfd0fc19
response:
body:
string: '{"data":{"id":"071b3516-4072-44d9-9288-d4adaa1db921","type":"historicalDetectionsJob","attributes":{"createdAt":"2025-10-24
14:24:02.057923+00","createdByHandle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","createdByName":"CI
Account","jobDefinition":{"from":1730387522611,"to":1730387532611,"index":"main","name":"Excessive
string: '{"data":{"id":"66896986-212c-4e6c-9890-14e5cfd0fc19","type":"historicalDetectionsJob","attributes":{"createdAt":"2025-11-11
21:36:52.581297+00","createdByHandle":"frog@datadoghq.com","createdByName":"frog","jobDefinition":{"from":1730387522611,"to":1730387532611,"index":"main","name":"Excessive
number of failed attempts.","cases":[{"name":"Condition 1","status":"info","notifications":[],"condition":"a
\u003e 1"}],"queries":[{"query":"source:non_existing_src_weekend","groupByFields":[],"hasOptionalGroupByFields":false,"distinctFields":[],"aggregation":"count","name":"","dataSource":"logs"}],"options":{"evaluationWindow":900,"detectionMethod":"threshold","maxSignalDuration":86400,"keepAlive":3600},"message":"A
large number of failed login attempts.","tags":[],"type":"log_detection"},"jobName":"Excessive
number of failed attempts.","jobStatus":"pending","modifiedAt":"2025-10-24
14:24:02.057923+00"}}}'
number of failed attempts.","jobStatus":"pending","modifiedAt":"2025-11-11
21:36:52.581297+00","signalOutput":false}}}'
headers:
content-type:
- application/vnd.api+json
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-10-24T14:24:02.188Z
2025-11-11T21:36:57.169Z
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interactions:
uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs
response:
body:
string: '{"data":{"id":"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed","type":"historicalDetectionsJob"}}'
string: '{"data":{"id":"c3564eed-ff70-43e1-ab6f-593de95bd21f","type":"historicalDetectionsJob"}}'
headers:
content-type:
- application/vnd.api+json
Expand All @@ -25,17 +25,16 @@ interactions:
accept:
- application/json
method: GET
uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs?filter%5Bquery%5D=id%3Ae935c6c8-ba76-4ebf-8770-bb772a5ec1ed
uri: https://api.datadoghq.com/api/v2/siem-threat-hunting/jobs?filter%5Bquery%5D=id%3Ac3564eed-ff70-43e1-ab6f-593de95bd21f
response:
body:
string: '{"data":[{"id":"e935c6c8-ba76-4ebf-8770-bb772a5ec1ed","type":"historicalDetectionsJob","attributes":{"createdAt":"2025-10-24
14:24:02.256887+00","createdByHandle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","createdByName":"CI
Account","jobDefinition":{"from":1730387522611,"to":1730387532611,"index":"main","name":"Excessive
string: '{"data":[{"id":"c3564eed-ff70-43e1-ab6f-593de95bd21f","type":"historicalDetectionsJob","attributes":{"createdAt":"2025-11-11
21:36:57.303304+00","createdByHandle":"frog@datadoghq.com","createdByName":"frog","jobDefinition":{"from":1730387522611,"to":1730387532611,"index":"main","name":"Excessive
number of failed attempts.","cases":[{"name":"Condition 1","status":"info","notifications":[],"condition":"a
\u003e 1"}],"queries":[{"query":"source:non_existing_src_weekend","groupByFields":[],"hasOptionalGroupByFields":false,"distinctFields":[],"aggregation":"count","name":"","dataSource":"logs"}],"options":{"evaluationWindow":900,"detectionMethod":"threshold","maxSignalDuration":86400,"keepAlive":3600},"message":"A
large number of failed login attempts.","tags":[],"type":"log_detection"},"jobName":"Excessive
number of failed attempts.","jobStatus":"pending","modifiedAt":"2025-10-24
14:24:02.256887+00"}}],"meta":{"totalCount":1}}'
number of failed attempts.","jobStatus":"pending","modifiedAt":"2025-11-11
21:36:57.303304+00","signalOutput":false}}],"meta":{"totalCount":1}}'
headers:
content-type:
- application/vnd.api+json
Expand Down