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
190 changes: 164 additions & 26 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 @@ -90,7 +90,8 @@ public CreateNotificationRuleParametersDataAttributes name(String name) {
}

/**
* Name of the notification rule.
* Name of the notification rule. At most 500 characters, and unique in the organization
* (case-insensitive).
*
* @return name
*/
Expand Down Expand Up @@ -169,6 +170,16 @@ public CreateNotificationRuleParametersDataAttributes addTargetsItem(String targ
* List of recipients to notify when a notification rule is triggered. Many different target types
* are supported, such as email addresses, Slack channels, and PagerDuty services. The appropriate
* integrations need to be properly configured to send notifications to the specified targets.
* Each target is a handle that starts with <code>@</code>. Use <code>@&lt;EMAIL&gt;</code> for an
* email address (for example, <code>@john.doe@email.com</code>), and <code>
* @&lt;INTEGRATION_NAME&gt;-&lt;VALUES&gt;</code> for an integration, such as <code>
* @slack-&lt;VALUES&gt;</code>, <code>@pagerduty-&lt;VALUES&gt;</code>, <code>
* @jira-&lt;VALUES&gt;</code>, <code>@teams-&lt;VALUES&gt;</code>, <code>
* @servicenow-&lt;VALUES&gt;</code>, or <code>@webhook-&lt;WEBHOOK_NAME&gt;</code>. Handles that
* include parentheses are not supported. A rule can have at most 20 targets, each at most 500
* characters long. Finding-based rules don't accept <code>case</code>, <code>incident</code>,
* <code>jira</code>, or <code>linear</code> targets; use an automatic ticket creation rule for
* cases, Jira, and Linear.
*
* @return targets
*/
Expand All @@ -191,8 +202,9 @@ public CreateNotificationRuleParametersDataAttributes timeAggregation(Long timeA
* Time aggregation period (in seconds) is used to aggregate the results of the notification rule
* evaluation. Results are aggregated over a selected time frame using a rolling window, which
* updates with each new evaluation. Notifications are only sent for new issues discovered during
* the window. Time aggregation is only available for vulnerability-based notification rules. When
* omitted or set to 0, no aggregation is done.
* the window. Time aggregation is only available for finding-based notification rules. When
* omitted or set to 0, no aggregation is done. Otherwise, it must be between 1800 (30 minutes)
* and 2592000 (30 days).
*
* @return timeAggregation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ public NotificationRuleAttributes name(String name) {
}

/**
* Name of the notification rule.
* Name of the notification rule. At most 500 characters, and unique in the organization
* (case-insensitive).
*
* @return name
*/
Expand Down Expand Up @@ -261,6 +262,16 @@ public NotificationRuleAttributes addTargetsItem(String targetsItem) {
* List of recipients to notify when a notification rule is triggered. Many different target types
* are supported, such as email addresses, Slack channels, and PagerDuty services. The appropriate
* integrations need to be properly configured to send notifications to the specified targets.
* Each target is a handle that starts with <code>@</code>. Use <code>@&lt;EMAIL&gt;</code> for an
* email address (for example, <code>@john.doe@email.com</code>), and <code>
* @&lt;INTEGRATION_NAME&gt;-&lt;VALUES&gt;</code> for an integration, such as <code>
* @slack-&lt;VALUES&gt;</code>, <code>@pagerduty-&lt;VALUES&gt;</code>, <code>
* @jira-&lt;VALUES&gt;</code>, <code>@teams-&lt;VALUES&gt;</code>, <code>
* @servicenow-&lt;VALUES&gt;</code>, or <code>@webhook-&lt;WEBHOOK_NAME&gt;</code>. Handles that
* include parentheses are not supported. A rule can have at most 20 targets, each at most 500
* characters long. Finding-based rules don't accept <code>case</code>, <code>incident</code>,
* <code>jira</code>, or <code>linear</code> targets; use an automatic ticket creation rule for
* cases, Jira, and Linear.
*
* @return targets
*/
Expand All @@ -283,8 +294,9 @@ public NotificationRuleAttributes timeAggregation(Long timeAggregation) {
* Time aggregation period (in seconds) is used to aggregate the results of the notification rule
* evaluation. Results are aggregated over a selected time frame using a rolling window, which
* updates with each new evaluation. Notifications are only sent for new issues discovered during
* the window. Time aggregation is only available for vulnerability-based notification rules. When
* omitted or set to 0, no aggregation is done.
* the window. Time aggregation is only available for finding-based notification rules. When
* omitted or set to 0, no aggregation is done. Otherwise, it must be between 1800 (30 minutes)
* and 2592000 (30 days).
*
* @return timeAggregation
*/
Expand All @@ -305,7 +317,9 @@ public NotificationRuleAttributes version(Long version) {
}

/**
* Version of the notification rule. It is updated when the rule is modified.
* Version of the notification rule. It is updated when the rule is modified. When patching a
* rule, send the current <code>version</code> returned by the get or list operation; an older
* <code>version</code> returns 409.
*
* @return version
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ public NotificationRulePreviewResult ruleType(RuleTypesItems ruleType) {

/**
* Security rule type which can be used in security rules. Signal-based notification rules can
* filter signals based on rule types application_security, log_detection, workload_security,
* signal_correlation, cloud_configuration and infrastructure_configuration. Vulnerability-based
* notification rules can filter vulnerabilities based on rule types
* filter signals based on rule types application_security, log_detection, workload_security and
* signal_correlation. Finding-based notification rules can filter findings based on rule types
* application_code_vulnerability, application_library_vulnerability, attack_path,
* container_image_vulnerability, identity_risk, misconfiguration, api_security,
* host_vulnerability, iac_misconfiguration, sast_vulnerability, secret_vulnerability,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ public PatchNotificationRuleParametersDataAttributes name(String name) {
}

/**
* Name of the notification rule.
* Name of the notification rule. At most 500 characters, and unique in the organization
* (case-insensitive).
*
* @return name
*/
Expand Down Expand Up @@ -167,6 +168,16 @@ public PatchNotificationRuleParametersDataAttributes addTargetsItem(String targe
* List of recipients to notify when a notification rule is triggered. Many different target types
* are supported, such as email addresses, Slack channels, and PagerDuty services. The appropriate
* integrations need to be properly configured to send notifications to the specified targets.
* Each target is a handle that starts with <code>@</code>. Use <code>@&lt;EMAIL&gt;</code> for an
* email address (for example, <code>@john.doe@email.com</code>), and <code>
* @&lt;INTEGRATION_NAME&gt;-&lt;VALUES&gt;</code> for an integration, such as <code>
* @slack-&lt;VALUES&gt;</code>, <code>@pagerduty-&lt;VALUES&gt;</code>, <code>
* @jira-&lt;VALUES&gt;</code>, <code>@teams-&lt;VALUES&gt;</code>, <code>
* @servicenow-&lt;VALUES&gt;</code>, or <code>@webhook-&lt;WEBHOOK_NAME&gt;</code>. Handles that
* include parentheses are not supported. A rule can have at most 20 targets, each at most 500
* characters long. Finding-based rules don't accept <code>case</code>, <code>incident</code>,
* <code>jira</code>, or <code>linear</code> targets; use an automatic ticket creation rule for
* cases, Jira, and Linear.
*
* @return targets
*/
Expand All @@ -190,8 +201,9 @@ public PatchNotificationRuleParametersDataAttributes timeAggregation(Long timeAg
* Time aggregation period (in seconds) is used to aggregate the results of the notification rule
* evaluation. Results are aggregated over a selected time frame using a rolling window, which
* updates with each new evaluation. Notifications are only sent for new issues discovered during
* the window. Time aggregation is only available for vulnerability-based notification rules. When
* omitted or set to 0, no aggregation is done.
* the window. Time aggregation is only available for finding-based notification rules. When
* omitted or set to 0, no aggregation is done. Otherwise, it must be between 1800 (30 minutes)
* and 2592000 (30 days).
*
* @return timeAggregation
*/
Expand All @@ -212,7 +224,9 @@ public PatchNotificationRuleParametersDataAttributes version(Long version) {
}

/**
* Version of the notification rule. It is updated when the rule is modified.
* Version of the notification rule. It is updated when the rule is modified. When patching a
* rule, send the current <code>version</code> returned by the get or list operation; an older
* <code>version</code> returns 409.
*
* @return version
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@

/**
* Security rule type which can be used in security rules. Signal-based notification rules can
* filter signals based on rule types application_security, log_detection, workload_security,
* signal_correlation, cloud_configuration and infrastructure_configuration. Vulnerability-based
* notification rules can filter vulnerabilities based on rule types application_code_vulnerability,
* application_library_vulnerability, attack_path, container_image_vulnerability, identity_risk,
* misconfiguration, api_security, host_vulnerability, iac_misconfiguration, sast_vulnerability,
* secret_vulnerability, workload_activity, sensitive_data and
* serverless_function_code_vulnerability.
* filter signals based on rule types application_security, log_detection, workload_security and
* signal_correlation. Finding-based notification rules can filter findings based on rule types
* application_code_vulnerability, application_library_vulnerability, attack_path,
* container_image_vulnerability, identity_risk, misconfiguration, api_security, host_vulnerability,
* iac_misconfiguration, sast_vulnerability, secret_vulnerability, workload_activity, sensitive_data
* and serverless_function_code_vulnerability.
*/
@JsonSerialize(using = RuleTypesItems.RuleTypesItemsSerializer.class)
public class RuleTypesItems extends ModelEnum<String> {
Expand Down
21 changes: 17 additions & 4 deletions src/main/java/com/datadog/api/client/v2/model/Selectors.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ public Selectors query(String query) {

/**
* The query is composed of one or several key:value pairs, which can be used to filter security
* issues on tags and attributes.
* issues on tags and attributes. It is at most 6,000 characters. Finding-based rules can't filter
* on attributes in the <code>@workflow</code> or <code>@_dd</code> namespaces, on <code>@status
* </code>, or on <code>@compliance.evaluation</code>.
*
* @return query
*/
Expand Down Expand Up @@ -93,7 +95,16 @@ public Selectors addRuleTypesItem(RuleTypesItems ruleTypesItem) {
}

/**
* Security rule types used as filters in security rules.
* Security rule types used as filters in security rules. Signal-based notification rules accept
* <code>application_security</code>, <code>log_detection</code>, <code>workload_security</code>,
* and <code>signal_correlation</code>. Finding-based notification rules accept <code>
* application_code_vulnerability</code>, <code>application_library_vulnerability</code>, <code>
* attack_path</code>, <code>container_image_vulnerability</code>, <code>identity_risk</code>,
* <code>misconfiguration</code>, <code>api_security</code>, <code>host_vulnerability</code>,
* <code>iac_misconfiguration</code>, <code>sast_vulnerability</code>, <code>secret_vulnerability
* </code>, <code>workload_activity</code>, <code>sensitive_data</code>, and <code>
* serverless_function_code_vulnerability</code>. Rule types that don't match the rule's <code>
* trigger_source</code> are rejected.
*
* @return ruleTypes
*/
Expand Down Expand Up @@ -123,7 +134,9 @@ public Selectors addSeveritiesItem(RuleSeverity severitiesItem) {
}

/**
* The security rules severities to consider.
* The security rules severities to consider. Allowed values are <code>critical</code>, <code>high
* </code>, <code>medium</code>, <code>low</code>, and <code>info</code>; <code>unknown</code> is
* rejected.
*
* @return severities
*/
Expand All @@ -147,7 +160,7 @@ public Selectors triggerSource(TriggerSource triggerSource) {
/**
* The type of security issues on which the rule applies. Notification rules based on security
* signals need to use the trigger source "security_signals", while notification rules based on
* security vulnerabilities need to use the trigger source "security_findings".
* security findings need to use the trigger source "security_findings".
*
* @return triggerSource
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* The type of security issues on which the rule applies. Notification rules based on security
* signals need to use the trigger source "security_signals", while notification rules based on
* security vulnerabilities need to use the trigger source "security_findings".
* security findings need to use the trigger source "security_findings".
*/
@JsonSerialize(using = TriggerSource.TriggerSourceSerializer.class)
public class TriggerSource extends ModelEnum<String> {
Expand Down
Loading