Skip to content

Commit d08c3a9

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 (DataDog#3706)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 54bae57 commit d08c3a9

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.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'

api/datadogV2/model_alert_event_custom_attributes_links_items_category.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,14 @@ const (
1818
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_RUNBOOK AlertEventCustomAttributesLinksItemsCategory = "runbook"
1919
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_DOCUMENTATION AlertEventCustomAttributesLinksItemsCategory = "documentation"
2020
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_DASHBOARD AlertEventCustomAttributesLinksItemsCategory = "dashboard"
21+
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_RESOURCE AlertEventCustomAttributesLinksItemsCategory = "resource"
2122
)
2223

2324
var allowedAlertEventCustomAttributesLinksItemsCategoryEnumValues = []AlertEventCustomAttributesLinksItemsCategory{
2425
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_RUNBOOK,
2526
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_DOCUMENTATION,
2627
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_DASHBOARD,
28+
ALERTEVENTCUSTOMATTRIBUTESLINKSITEMSCATEGORY_RESOURCE,
2729
}
2830

2931
// GetAllowedValues reeturns the list of possible values.

api/datadogV2/model_change_event_custom_attributes_changed_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212

1313
// ChangeEventCustomAttributesChangedResource A uniquely identified resource.
1414
type ChangeEventCustomAttributesChangedResource struct {
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
Name string `json:"name"`
1717
// The type of the resource that was changed.
1818
Type ChangeEventCustomAttributesChangedResourceType `json:"type"`

0 commit comments

Comments
 (0)