Skip to content

Commit 34f8fa0

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 (#3479)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 3c56ae3 commit 34f8fa0

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
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'

packages/datadog-api-client-v2/models/AlertEventCustomAttributesLinksItemsCategory.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ export type AlertEventCustomAttributesLinksItemsCategory =
1414
| typeof RUNBOOK
1515
| typeof DOCUMENTATION
1616
| typeof DASHBOARD
17+
| typeof RESOURCE
1718
| UnparsedObject;
1819
export const RUNBOOK = "runbook";
1920
export const DOCUMENTATION = "documentation";
2021
export const DASHBOARD = "dashboard";
22+
export const RESOURCE = "resource";

packages/datadog-api-client-v2/models/ChangeEventCustomAttributesChangedResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1212
*/
1313
export class ChangeEventCustomAttributesChangedResource {
1414
/**
15-
* The name of the resource that was changed. Limited to 128 characters.
15+
* The name of the resource that was changed. Limited to 128 characters. Must contain at least one non-whitespace character.
1616
*/
1717
"name": string;
1818
/**

packages/datadog-api-client-v2/models/ObjectSerializer.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3290,6 +3290,7 @@ const enumsMap: { [key: string]: any[] } = {
32903290
"runbook",
32913291
"documentation",
32923292
"dashboard",
3293+
"resource",
32933294
],
32943295
AlertEventCustomAttributesPriority: ["1", "2", "3", "4", "5"],
32953296
AlertEventCustomAttributesStatus: ["warn", "error", "ok"],

0 commit comments

Comments
 (0)