Skip to content

Commit 3d40014

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Post an event v2 API - add a new enum value to links.category field and add pattern validation on changed_resource.name field (#3502)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 175527b commit 3d40014

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3109,12 +3109,14 @@ components:
31093109
- runbook
31103110
- documentation
31113111
- dashboard
3112+
- resource
31123113
example: runbook
31133114
type: string
31143115
x-enum-varnames:
31153116
- RUNBOOK
31163117
- DOCUMENTATION
31173118
- DASHBOARD
3119+
- RESOURCE
31183120
AlertEventCustomAttributesPriority:
31193121
default: '5'
31203122
description: The priority of the alert.
@@ -10383,9 +10385,11 @@ components:
1038310385
properties:
1038410386
name:
1038510387
description: The name of the resource that was changed. Limited to 128 characters.
10388+
Must contain at least one non-whitespace character.
1038610389
example: fallback_payments_test
1038710390
maxLength: 128
1038810391
minLength: 1
10392+
pattern: .*\S.*
1038910393
type: string
1039010394
type:
1039110395
$ref: '#/components/schemas/ChangeEventCustomAttributesChangedResourceType'

src/main/java/com/datadog/api/client/v2/model/AlertEventCustomAttributesLinksItemsCategory.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@
2626
public class AlertEventCustomAttributesLinksItemsCategory extends ModelEnum<String> {
2727

2828
private static final Set<String> allowedValues =
29-
new HashSet<String>(Arrays.asList("runbook", "documentation", "dashboard"));
29+
new HashSet<String>(Arrays.asList("runbook", "documentation", "dashboard", "resource"));
3030

3131
public static final AlertEventCustomAttributesLinksItemsCategory RUNBOOK =
3232
new AlertEventCustomAttributesLinksItemsCategory("runbook");
3333
public static final AlertEventCustomAttributesLinksItemsCategory DOCUMENTATION =
3434
new AlertEventCustomAttributesLinksItemsCategory("documentation");
3535
public static final AlertEventCustomAttributesLinksItemsCategory DASHBOARD =
3636
new AlertEventCustomAttributesLinksItemsCategory("dashboard");
37+
public static final AlertEventCustomAttributesLinksItemsCategory RESOURCE =
38+
new AlertEventCustomAttributesLinksItemsCategory("resource");
3739

3840
AlertEventCustomAttributesLinksItemsCategory(String value) {
3941
super(value, allowedValues);

src/main/java/com/datadog/api/client/v2/model/ChangeEventCustomAttributesChangedResource.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ public ChangeEventCustomAttributesChangedResource name(String name) {
4646
}
4747

4848
/**
49-
* The name of the resource that was changed. Limited to 128 characters.
49+
* The name of the resource that was changed. Limited to 128 characters. Must contain at least one
50+
* non-whitespace character.
5051
*
5152
* @return name
5253
*/

0 commit comments

Comments
 (0)