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
4 changes: 4 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3109,12 +3109,14 @@ components:
- runbook
- documentation
- dashboard
- resource
example: runbook
type: string
x-enum-varnames:
- RUNBOOK
- DOCUMENTATION
- DASHBOARD
- RESOURCE
AlertEventCustomAttributesPriority:
default: '5'
description: The priority of the alert.
Expand Down Expand Up @@ -10383,9 +10385,11 @@ components:
properties:
name:
description: The name of the resource that was changed. Limited to 128 characters.
Must contain at least one non-whitespace character.
example: fallback_payments_test
maxLength: 128
minLength: 1
pattern: .*\S.*
type: string
type:
$ref: '#/components/schemas/ChangeEventCustomAttributesChangedResourceType'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,20 @@ class AlertEventCustomAttributesLinksItemsCategory(ModelSimple):
"""
The category of the link.

:param value: Must be one of ["runbook", "documentation", "dashboard"].
:param value: Must be one of ["runbook", "documentation", "dashboard", "resource"].
:type value: str
"""

allowed_values = {
"runbook",
"documentation",
"dashboard",
"resource",
}
RUNBOOK: ClassVar["AlertEventCustomAttributesLinksItemsCategory"]
DOCUMENTATION: ClassVar["AlertEventCustomAttributesLinksItemsCategory"]
DASHBOARD: ClassVar["AlertEventCustomAttributesLinksItemsCategory"]
RESOURCE: ClassVar["AlertEventCustomAttributesLinksItemsCategory"]

@cached_property
def openapi_types(_):
Expand All @@ -41,3 +43,4 @@ def openapi_types(_):
"documentation"
)
AlertEventCustomAttributesLinksItemsCategory.DASHBOARD = AlertEventCustomAttributesLinksItemsCategory("dashboard")
AlertEventCustomAttributesLinksItemsCategory.RESOURCE = AlertEventCustomAttributesLinksItemsCategory("resource")
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self_, name: str, type: ChangeEventCustomAttributesChangedResourceT
"""
A uniquely identified resource.

:param name: The name of the resource that was changed. Limited to 128 characters.
:param name: The name of the resource that was changed. Limited to 128 characters. Must contain at least one non-whitespace character.
:type name: str

:param type: The type of the resource that was changed.
Expand Down
Loading