@@ -2138,6 +2138,89 @@ components:
2138
2138
- id
2139
2139
- base_severity
2140
2140
type: object
2141
+ AlertEventCustomAttributes:
2142
+ additionalProperties: false
2143
+ description: Object representing custom alert event attributes.
2144
+ properties:
2145
+ custom:
2146
+ $ref: '#/components/schemas/AlertEventCustomAttributesCustom'
2147
+ links:
2148
+ $ref: '#/components/schemas/AlertEventCustomAttributesLinks'
2149
+ priority:
2150
+ $ref: '#/components/schemas/AlertEventCustomAttributesPriority'
2151
+ status:
2152
+ $ref: '#/components/schemas/AlertEventCustomAttributesStatus'
2153
+ type: object
2154
+ AlertEventCustomAttributesCustom:
2155
+ additionalProperties: {}
2156
+ description: Custom attributes support up to 100 properties and a maximum nesting
2157
+ depth of 10 levels.
2158
+ example: {}
2159
+ type: object
2160
+ AlertEventCustomAttributesLinks:
2161
+ description: The links related to the event.
2162
+ items:
2163
+ $ref: '#/components/schemas/AlertEventCustomAttributesLinksItems'
2164
+ maxItems: 20
2165
+ minItems: 1
2166
+ type: array
2167
+ AlertEventCustomAttributesLinksItems:
2168
+ description: A link.
2169
+ properties:
2170
+ category:
2171
+ $ref: '#/components/schemas/AlertEventCustomAttributesLinksItemsCategory'
2172
+ title:
2173
+ description: The title of the link.
2174
+ example: Runbook Link
2175
+ maxLength: 300
2176
+ type: string
2177
+ url:
2178
+ description: The URL of the link.
2179
+ example: https://app.datadoghq.com/runbook
2180
+ maxLength: 2048
2181
+ type: string
2182
+ required:
2183
+ - url
2184
+ - category
2185
+ type: object
2186
+ AlertEventCustomAttributesLinksItemsCategory:
2187
+ description: The category of the link.
2188
+ enum:
2189
+ - runbook
2190
+ example: runbook
2191
+ type: string
2192
+ x-enum-varnames:
2193
+ - RUNBOOK
2194
+ AlertEventCustomAttributesPriority:
2195
+ description: The priority of the alert.
2196
+ enum:
2197
+ - '1'
2198
+ - '2'
2199
+ - '3'
2200
+ - '4'
2201
+ - '5'
2202
+ example: '1'
2203
+ type: string
2204
+ x-enum-varnames:
2205
+ - PRIORITY_ONE
2206
+ - PRIORITY_TWO
2207
+ - PRIORITY_THREE
2208
+ - PRIORITY_FOUR
2209
+ - PRIORITY_FIVE
2210
+ AlertEventCustomAttributesStatus:
2211
+ description: The status of the alert.
2212
+ enum:
2213
+ - info
2214
+ - warn
2215
+ - error
2216
+ - ok
2217
+ example: warn
2218
+ type: string
2219
+ x-enum-varnames:
2220
+ - INFO
2221
+ - WARN
2222
+ - ERROR
2223
+ - OK
2141
2224
Annotation:
2142
2225
description: A list of annotations used in the workflow. These are like sticky
2143
2226
notes for your workflow!
@@ -13905,28 +13988,34 @@ components:
13905
13988
type: string
13906
13989
type: object
13907
13990
EventCategory:
13908
- description: Event category to identify the type of event. Only the value `change`
13909
- is supported. Support for other categories are coming. please reach out to
13910
- datadog support if you're interested.
13991
+ description: Event category to identify the type of event. For example, `change`
13992
+ or `alert`.
13911
13993
enum:
13912
13994
- change
13995
+ - alert
13913
13996
example: change
13914
13997
type: string
13915
13998
x-enum-varnames:
13916
13999
- CHANGE
14000
+ - ALERT
13917
14001
EventCreateRequest:
13918
14002
description: Object representing an event creation request.
13919
14003
properties:
13920
14004
attributes:
13921
14005
$ref: '#/components/schemas/EventPayload'
13922
14006
type:
13923
14007
$ref: '#/components/schemas/EventCreateRequestType'
14008
+ required:
14009
+ - type
14010
+ - attributes
13924
14011
type: object
13925
14012
EventCreateRequestPayload:
13926
14013
description: Payload for creating an event.
13927
14014
properties:
13928
14015
data:
13929
14016
$ref: '#/components/schemas/EventCreateRequest'
14017
+ required:
14018
+ - data
13930
14019
type: object
13931
14020
EventCreateRequestType:
13932
14021
description: Entity type.
@@ -13941,6 +14030,12 @@ components:
13941
14030
properties:
13942
14031
attributes:
13943
14032
$ref: '#/components/schemas/EventCreateResponseAttributes'
14033
+ id:
14034
+ description: A numerical ID compatible with the V1 endpoint. This field
14035
+ is not populated in response from the V2 endpoint. To retrieve this ID,
14036
+ refer to the event attributes in the Event Explorer.
14037
+ example: _
14038
+ type: string
13944
14039
type:
13945
14040
description: Event type
13946
14041
example: event
@@ -13962,28 +14057,48 @@ components:
13962
14057
EventCreateResponseAttributesAttributesEvt:
13963
14058
description: JSON object of event system attributes.
13964
14059
properties:
13965
- id:
13966
- description: Event id
14060
+ uid:
14061
+ description: A unique identifier for the event. You can use this ID to query
14062
+ or reference the event in the V2 endpoint.
14063
+ example: ABCDEFGHIJKLMNOPQRSTUVWX
13967
14064
type: string
13968
14065
type: object
13969
14066
EventCreateResponsePayload:
13970
14067
description: Response containing information about created event.
13971
14068
properties:
13972
14069
data:
13973
14070
$ref: '#/components/schemas/EventCreateResponse'
14071
+ links:
14072
+ $ref: '#/components/schemas/EventCreateResponsePayloadLinks'
14073
+ type: object
14074
+ EventCreateResponsePayloadLinks:
14075
+ description: Links attributes.
14076
+ properties:
14077
+ self:
14078
+ description: The URL of the event. This link is only functional when using
14079
+ the `app` subdomain.
14080
+ example: https://app.datadoghq.com/event/event?id=123
14081
+ type: string
13974
14082
type: object
13975
14083
EventPayload:
13976
14084
description: Event attributes.
13977
14085
properties:
13978
14086
aggregation_key:
13979
14087
description: An arbitrary string to use for aggregation when correlating
13980
14088
events. Limited to 100 characters.
14089
+ example: aggregation_key_123
13981
14090
maxLength: 100
13982
14091
type: string
13983
14092
attributes:
13984
14093
$ref: '#/components/schemas/EventPayloadAttributes'
13985
14094
category:
13986
14095
$ref: '#/components/schemas/EventCategory'
14096
+ integration_id:
14097
+ description: Integration IDs sourced from manifests. Examples include custom-events,
14098
+ containerd, docker, elasticsearch, helm, mongodb, mysql, and nagios. See
14099
+ the full list of available IDs [here](https://docs.datadoghq.com/service_management/events/ingest/integration_ids).
14100
+ example: custom-events
14101
+ type: string
13987
14102
message:
13988
14103
description: The body of the event. Limited to 4000 characters.
13989
14104
example: payment_processed feature flag has been enabled
@@ -13997,7 +14112,10 @@ components:
13997
14112
- env:test
13998
14113
items:
13999
14114
description: A tag.
14115
+ maxLength: 200
14000
14116
type: string
14117
+ maxItems: 100
14118
+ minItems: 1
14001
14119
type: array
14002
14120
timestamp:
14003
14121
description: 'Timestamp when the event occurred. Must follow [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)
@@ -14023,6 +14141,7 @@ components:
14023
14141
event category.
14024
14142
oneOf:
14025
14143
- $ref: '#/components/schemas/ChangeEventCustomAttributes'
14144
+ - $ref: '#/components/schemas/AlertEventCustomAttributes'
14026
14145
EventPriority:
14027
14146
description: The priority of the event's monitor. For example, `normal` or `low`.
14028
14147
enum:
@@ -45640,7 +45759,8 @@ paths:
45640
45759
- events_read
45641
45760
post:
45642
45761
description: "This endpoint allows you to post events.\n\n\u2705 **Only events
45643
- with the `change` category** are in General Availability. See [Change Tracking](https://docs.datadoghq.com/change_tracking)
45762
+ with the `change` or `alert` category** are in General Availability. For change
45763
+ events, see [Change Tracking](https://docs.datadoghq.com/change_tracking)
45644
45764
for more details.\n\n\u274C For use cases involving other event categories,
45645
45765
please use the V1 endpoint."
45646
45766
operationId: CreateEvent
@@ -45652,6 +45772,7 @@ paths:
45652
45772
value:
45653
45773
data:
45654
45774
attributes:
45775
+ aggregation_key: aggregation_key_123
45655
45776
attributes:
45656
45777
author:
45657
45778
@@ -45680,6 +45801,7 @@ paths:
45680
45801
rule:
45681
45802
datacenter: devcycle.us1.prod
45682
45803
category: change
45804
+ integration_id: custom-events
45683
45805
message: payment_processed feature flag has been enabled
45684
45806
tags:
45685
45807
- env:test
@@ -45713,6 +45835,38 @@ paths:
45713
45835
security:
45714
45836
- apiKeyAuth: []
45715
45837
appKeyAuth: []
45838
+ servers:
45839
+ - url: https://{subdomain}.{site}
45840
+ variables:
45841
+ site:
45842
+ default: datadoghq.com
45843
+ description: The regional site for customers.
45844
+ enum:
45845
+ - datadoghq.com
45846
+ - us3.datadoghq.com
45847
+ - us5.datadoghq.com
45848
+ - ap1.datadoghq.com
45849
+ - datadoghq.eu
45850
+ - ddog-gov.com
45851
+ subdomain:
45852
+ default: event-management-intake
45853
+ description: The subdomain where the API is deployed.
45854
+ - url: '{protocol}://{name}'
45855
+ variables:
45856
+ name:
45857
+ default: event-management-intake.datadoghq.com
45858
+ description: Full site DNS name.
45859
+ protocol:
45860
+ default: https
45861
+ description: The protocol for accessing the API.
45862
+ - url: https://{subdomain}.{site}
45863
+ variables:
45864
+ site:
45865
+ default: datadoghq.com
45866
+ description: Any Datadog deployment.
45867
+ subdomain:
45868
+ default: event-management-intake
45869
+ description: The subdomain where the API is deployed.
45716
45870
summary: Post an event
45717
45871
tags:
45718
45872
- Events
0 commit comments