Skip to content

Commit d5cda2e

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Support Host and IaC finding types in security notifications (#832)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b8a091b commit d5cda2e

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "f391bf6",
3-
"generated": "2025-08-06 15:19:50.558"
2+
"spec_repo_commit": "a6f5281",
3+
"generated": "2025-08-06 17:48:22.563"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33749,7 +33749,7 @@ components:
3374933749
rule types application_code_vulnerability,
3375033750

3375133751
application_library_vulnerability, attack_path, container_image_vulnerability,
33752-
identity_risk, misconfiguration, and api_security.'
33752+
identity_risk, misconfiguration, api_security, host_vulnerability and iac_misconfiguration.'
3375333753
enum:
3375433754
- application_security
3375533755
- log_detection
@@ -33764,6 +33764,8 @@ components:
3376433764
- identity_risk
3376533765
- misconfiguration
3376633766
- api_security
33767+
- host_vulnerability
33768+
- iac_misconfiguration
3376733769
type: string
3376833770
x-enum-varnames:
3376933771
- APPLICATION_SECURITY
@@ -33779,6 +33781,8 @@ components:
3377933781
- IDENTITY_RISK
3378033782
- MISCONFIGURATION
3378133783
- API_SECURITY
33784+
- HOST_VULNERABILITY
33785+
- IAC_MISCONFIGURATION
3378233786
RuleUser:
3378333787
description: User creating or modifying a rule.
3378433788
properties:

src/datadogV2/model/model_rule_types_items.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ pub enum RuleTypesItems {
2020
IDENTITY_RISK,
2121
MISCONFIGURATION,
2222
API_SECURITY,
23+
HOST_VULNERABILITY,
24+
IAC_MISCONFIGURATION,
2325
UnparsedObject(crate::datadog::UnparsedObject),
2426
}
2527

@@ -41,6 +43,8 @@ impl ToString for RuleTypesItems {
4143
Self::IDENTITY_RISK => String::from("identity_risk"),
4244
Self::MISCONFIGURATION => String::from("misconfiguration"),
4345
Self::API_SECURITY => String::from("api_security"),
46+
Self::HOST_VULNERABILITY => String::from("host_vulnerability"),
47+
Self::IAC_MISCONFIGURATION => String::from("iac_misconfiguration"),
4448
Self::UnparsedObject(v) => v.value.to_string(),
4549
}
4650
}
@@ -78,6 +82,8 @@ impl<'de> Deserialize<'de> for RuleTypesItems {
7882
"identity_risk" => Self::IDENTITY_RISK,
7983
"misconfiguration" => Self::MISCONFIGURATION,
8084
"api_security" => Self::API_SECURITY,
85+
"host_vulnerability" => Self::HOST_VULNERABILITY,
86+
"iac_misconfiguration" => Self::IAC_MISCONFIGURATION,
8187
_ => Self::UnparsedObject(crate::datadog::UnparsedObject {
8288
value: serde_json::Value::String(s.into()),
8389
}),

0 commit comments

Comments
 (0)