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
316 changes: 251 additions & 65 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ public AutomationRuleScope addFindingTypesItem(SecurityFindingType findingTypesI
}

/**
* The list of security finding types that the automation rule applies to.
* The security finding types that the automation rule applies to. At least one is required, and
* each type may appear only once. Allowed values: <code>api_security</code>, <code>attack_path
* </code>, <code>host_and_container_vulnerability</code>, <code>iac_misconfiguration</code>,
* <code>identity_risk</code>, <code>library_vulnerability</code>, <code>misconfiguration</code>,
* <code>runtime_code_vulnerability</code>, <code>secret</code>, <code>static_code_vulnerability
* </code>, and <code>workload_activity</code>.
*
* @return findingTypes
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public DueDateRuleAction addDueDaysPerSeverityItem(
}

/**
* A list of severity-to-due-date mappings. Each severity may appear at most once.
* A list of severity-to-due-date mappings. Each severity may appear at most once. The rule only
* matches findings whose severity is listed here.
*
* @return dueDaysPerSeverity
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public DueDateRuleAttributesCreate enabled(Boolean enabled) {
}

/**
* Whether the due date rule is enabled.
* Whether the due date rule is enabled. If it is omitted, the API saves it as <code>false</code>
* and the rule doesn't apply.
*
* @return enabled
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public InboxRuleAttributesCreate enabled(Boolean enabled) {
}

/**
* Whether the inbox rule is enabled.
* Whether the inbox rule is enabled. If it is omitted, the API saves it as <code>false</code> and
* the rule doesn't apply.
*
* @return enabled
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ public MuteRuleAction expireAt(Long expireAt) {
}

/**
* The Unix timestamp in milliseconds at which the mute expires. If omitted, the mute does not
* expire.
* The Unix timestamp in milliseconds at which the mute expires. It must be in the future. If the
* timestamp is omitted, the mute does not expire.
*
* @return expireAt
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public MuteRuleAttributesCreate enabled(Boolean enabled) {
}

/**
* Whether the mute rule is enabled.
* Whether the mute rule is enabled. If it is omitted, the API saves it as <code>false</code> and
* the rule doesn't apply.
*
* @return enabled
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ public SeverityModifierRuleAttributesCreate action(SeverityModifierRuleAction ac
* union on <code>type</code>: <code>set</code> assigns a fixed severity, while <code>shift</code>
* moves the severity up or down by one rank.
*
* <p>With <code>type: set</code>, send <code>severity</code> (<code>info_none</code>, <code>low
* </code>, <code>medium</code>, <code>high</code>, or <code>critical</code>) and no <code>
* severity_delta</code>. With <code>type: shift</code>, send <code>severity_delta</code> (<code>
* up_one</code> or <code>down_one</code>) and no <code>severity</code>. Both accept an optional
* <code>description</code>. A <code>shift</code> rule doesn't match findings with an unknown
* severity.
*
* <p>A severity modifier rule's <code>rule.query</code> must not filter on <code>@severity</code>
* or on the <code>@severity_details.user_adjusted.*</code> namespace.
*
Expand Down Expand Up @@ -93,7 +100,8 @@ public SeverityModifierRuleAttributesCreate enabled(Boolean enabled) {
}

/**
* Whether the severity modifier rule is enabled.
* Whether the severity modifier rule is enabled. If it is omitted, the API saves it as <code>
* false</code> and the rule doesn't apply.
*
* @return enabled
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ public SeverityModifierRuleAttributesResponse action(SeverityModifierRuleAction
* union on <code>type</code>: <code>set</code> assigns a fixed severity, while <code>shift</code>
* moves the severity up or down by one rank.
*
* <p>With <code>type: set</code>, send <code>severity</code> (<code>info_none</code>, <code>low
* </code>, <code>medium</code>, <code>high</code>, or <code>critical</code>) and no <code>
* severity_delta</code>. With <code>type: shift</code>, send <code>severity_delta</code> (<code>
* up_one</code> or <code>down_one</code>) and no <code>severity</code>. Both accept an optional
* <code>description</code>. A <code>shift</code> rule doesn't match findings with an unknown
* severity.
*
* <p>A severity modifier rule's <code>rule.query</code> must not filter on <code>@severity</code>
* or on the <code>@severity_details.user_adjusted.*</code> namespace.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@
import java.util.Map;
import java.util.Objects;

/** Shifts matched findings up or down by one severity rank. */
/**
* Shifts matched findings up or down by one severity rank. Shifting down stops at the lowest
* severity available for the finding type, for example <code>low</code> for <code>
* iac_misconfiguration</code>, <code>runtime_code_vulnerability</code>, <code>secret</code>, and
* <code>static_code_vulnerability</code> findings. A rule that wouldn't change a finding's severity
* doesn't match it, so Datadog checks the next rule.
*/
@JsonPropertyOrder({
SeverityModifierRuleShiftAction.JSON_PROPERTY_DESCRIPTION,
SeverityModifierRuleShiftAction.JSON_PROPERTY_SEVERITY_DELTA,
Expand Down Expand Up @@ -79,7 +85,8 @@ public SeverityModifierRuleShiftAction severityDelta(
}

/**
* The direction in which to shift the severity of matched findings by one rank.
* The direction in which to shift the severity of matched findings by one rank. Shifting down
* stops at the lowest severity available for the finding type.
*
* @return severityDelta
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
import java.util.HashSet;
import java.util.Set;

/** The direction in which to shift the severity of matched findings by one rank. */
/**
* The direction in which to shift the severity of matched findings by one rank. Shifting down stops
* at the lowest severity available for the finding type.
*/
@JsonSerialize(using = SeverityModifierSeverityDelta.SeverityModifierSeverityDeltaSerializer.class)
public class SeverityModifierSeverityDelta extends ModelEnum<String> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public TicketCreationRuleAction projectId(UUID projectId) {
}

/**
* The UUID of the case management project.
* The UUID of the Datadog Work Management (formerly Case Management) project.
*
* @return projectId
*/
Expand All @@ -159,7 +159,8 @@ public TicketCreationRuleAction target(TicketCreationTarget target) {
}

/**
* The ticketing system to create tickets in.
* The ticketing system to create tickets in. <code>case_management</code> is Datadog Work
* Management, formerly called Case Management.
*
* @return target
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public TicketCreationRuleActionResponse projectId(UUID projectId) {
}

/**
* The UUID of the case management project.
* The UUID of the Datadog Work Management (formerly Case Management) project.
*
* @return projectId
*/
Expand All @@ -185,7 +185,8 @@ public TicketCreationRuleActionResponse target(TicketCreationTarget target) {
}

/**
* The ticketing system to create tickets in.
* The ticketing system to create tickets in. <code>case_management</code> is Datadog Work
* Management, formerly called Case Management.
*
* @return target
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public TicketCreationRuleAttributesCreate enabled(Boolean enabled) {
}

/**
* Whether the ticket creation rule is enabled.
* Whether the ticket creation rule is enabled. If it is omitted, the API saves it as <code>false
* </code> and the rule doesn't apply.
*
* @return enabled
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@
import java.util.HashSet;
import java.util.Set;

/** The ticketing system to create tickets in. */
/**
* The ticketing system to create tickets in. <code>case_management</code> is Datadog Work
* Management, formerly called Case Management.
*/
@JsonSerialize(using = TicketCreationTarget.TicketCreationTargetSerializer.class)
public class TicketCreationTarget extends ModelEnum<String> {

Expand Down
Loading