@@ -2165,6 +2165,89 @@ components:
2165
2165
- id
2166
2166
- base_severity
2167
2167
type: object
2168
+ AlertEventCustomAttributes:
2169
+ additionalProperties: false
2170
+ description: Object representing custom alert event attributes.
2171
+ properties:
2172
+ custom:
2173
+ $ref: '#/components/schemas/AlertEventCustomAttributesCustom'
2174
+ links:
2175
+ $ref: '#/components/schemas/AlertEventCustomAttributesLinks'
2176
+ priority:
2177
+ $ref: '#/components/schemas/AlertEventCustomAttributesPriority'
2178
+ status:
2179
+ $ref: '#/components/schemas/AlertEventCustomAttributesStatus'
2180
+ type: object
2181
+ AlertEventCustomAttributesCustom:
2182
+ additionalProperties: {}
2183
+ description: Custom attributes support up to 100 properties and a maximum nesting
2184
+ depth of 10 levels.
2185
+ example: {}
2186
+ type: object
2187
+ AlertEventCustomAttributesLinks:
2188
+ description: The links related to the event.
2189
+ items:
2190
+ $ref: '#/components/schemas/AlertEventCustomAttributesLinksItems'
2191
+ maxItems: 20
2192
+ minItems: 1
2193
+ type: array
2194
+ AlertEventCustomAttributesLinksItems:
2195
+ description: A link.
2196
+ properties:
2197
+ category:
2198
+ $ref: '#/components/schemas/AlertEventCustomAttributesLinksItemsCategory'
2199
+ title:
2200
+ description: The title of the link.
2201
+ example: Runbook Link
2202
+ maxLength: 300
2203
+ type: string
2204
+ url:
2205
+ description: The URL of the link.
2206
+ example: https://app.datadoghq.com/runbook
2207
+ maxLength: 2048
2208
+ type: string
2209
+ required:
2210
+ - url
2211
+ - category
2212
+ type: object
2213
+ AlertEventCustomAttributesLinksItemsCategory:
2214
+ description: The category of the link.
2215
+ enum:
2216
+ - runbook
2217
+ example: runbook
2218
+ type: string
2219
+ x-enum-varnames:
2220
+ - RUNBOOK
2221
+ AlertEventCustomAttributesPriority:
2222
+ description: The priority of the alert.
2223
+ enum:
2224
+ - '1'
2225
+ - '2'
2226
+ - '3'
2227
+ - '4'
2228
+ - '5'
2229
+ example: '1'
2230
+ type: string
2231
+ x-enum-varnames:
2232
+ - PRIORITY_ONE
2233
+ - PRIORITY_TWO
2234
+ - PRIORITY_THREE
2235
+ - PRIORITY_FOUR
2236
+ - PRIORITY_FIVE
2237
+ AlertEventCustomAttributesStatus:
2238
+ description: The status of the alert.
2239
+ enum:
2240
+ - info
2241
+ - warn
2242
+ - error
2243
+ - ok
2244
+ example: warn
2245
+ type: string
2246
+ x-enum-varnames:
2247
+ - INFO
2248
+ - WARN
2249
+ - ERROR
2250
+ - OK
2168
2251
Annotation:
2169
2252
description: A list of annotations used in the workflow. These are like sticky
2170
2253
notes for your workflow!
@@ -13784,28 +13867,34 @@ components:
13784
13867
type: string
13785
13868
type: object
13786
13869
EventCategory:
13787
- description: Event category to identify the type of event. Only the value `change`
13788
- is supported. Support for other categories are coming. please reach out to
13789
- datadog support if you're interested.
13870
+ description: Event category to identify the type of event. For example, `change`
13871
+ or `alert`.
13790
13872
enum:
13791
13873
- change
13874
+ - alert
13792
13875
example: change
13793
13876
type: string
13794
13877
x-enum-varnames:
13795
13878
- CHANGE
13879
+ - ALERT
13796
13880
EventCreateRequest:
13797
13881
description: Object representing an event creation request.
13798
13882
properties:
13799
13883
attributes:
13800
13884
$ref: '#/components/schemas/EventPayload'
13801
13885
type:
13802
13886
$ref: '#/components/schemas/EventCreateRequestType'
13887
+ required:
13888
+ - type
13889
+ - attributes
13803
13890
type: object
13804
13891
EventCreateRequestPayload:
13805
13892
description: Payload for creating an event.
13806
13893
properties:
13807
13894
data:
13808
13895
$ref: '#/components/schemas/EventCreateRequest'
13896
+ required:
13897
+ - data
13809
13898
type: object
13810
13899
EventCreateRequestType:
13811
13900
description: Entity type.
@@ -13820,6 +13909,12 @@ components:
13820
13909
properties:
13821
13910
attributes:
13822
13911
$ref: '#/components/schemas/EventCreateResponseAttributes'
13912
+ id:
13913
+ description: A numerical ID compatible with the V1 endpoint. This field
13914
+ is not populated in response from the V2 endpoint. To retrieve this ID,
13915
+ refer to the event attributes in the Event Explorer.
13916
+ example: _
13917
+ type: string
13823
13918
type:
13824
13919
description: Event type
13825
13920
example: event
@@ -13841,28 +13936,48 @@ components:
13841
13936
EventCreateResponseAttributesAttributesEvt:
13842
13937
description: JSON object of event system attributes.
13843
13938
properties:
13844
- id:
13845
- description: Event id
13939
+ uid:
13940
+ description: A unique identifier for the event. You can use this ID to query
13941
+ or reference the event in the V2 endpoint.
13942
+ example: ABCDEFGHIJKLMNOPQRSTUVWX
13846
13943
type: string
13847
13944
type: object
13848
13945
EventCreateResponsePayload:
13849
13946
description: Response containing information about created event.
13850
13947
properties:
13851
13948
data:
13852
13949
$ref: '#/components/schemas/EventCreateResponse'
13950
+ links:
13951
+ $ref: '#/components/schemas/EventCreateResponsePayloadLinks'
13952
+ type: object
13953
+ EventCreateResponsePayloadLinks:
13954
+ description: Links attributes.
13955
+ properties:
13956
+ self:
13957
+ description: The URL of the event. This link is only functional when using
13958
+ the `app` subdomain.
13959
+ example: https://app.datadoghq.com/event/event?id=123
13960
+ type: string
13853
13961
type: object
13854
13962
EventPayload:
13855
13963
description: Event attributes.
13856
13964
properties:
13857
13965
aggregation_key:
13858
13966
description: An arbitrary string to use for aggregation when correlating
13859
13967
events. Limited to 100 characters.
13968
+ example: aggregation_key_123
13860
13969
maxLength: 100
13861
13970
type: string
13862
13971
attributes:
13863
13972
$ref: '#/components/schemas/EventPayloadAttributes'
13864
13973
category:
13865
13974
$ref: '#/components/schemas/EventCategory'
13975
+ integration_id:
13976
+ description: Integration IDs sourced from manifests. Examples include custom-events,
13977
+ containerd, docker, elasticsearch, helm, mongodb, mysql, and nagios. See
13978
+ the full list of available IDs [here](https://docs.datadoghq.com/service_management/events/ingest/integration_ids).
13979
+ example: custom-events
13980
+ type: string
13866
13981
message:
13867
13982
description: The body of the event. Limited to 4000 characters.
13868
13983
example: payment_processed feature flag has been enabled
@@ -13876,7 +13991,10 @@ components:
13876
13991
- env:test
13877
13992
items:
13878
13993
description: A tag.
13994
+ maxLength: 200
13879
13995
type: string
13996
+ maxItems: 100
13997
+ minItems: 1
13880
13998
type: array
13881
13999
timestamp:
13882
14000
description: 'Timestamp when the event occurred. Must follow [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)
@@ -13902,6 +14020,7 @@ components:
13902
14020
event category.
13903
14021
oneOf:
13904
14022
- $ref: '#/components/schemas/ChangeEventCustomAttributes'
14023
+ - $ref: '#/components/schemas/AlertEventCustomAttributes'
13905
14024
EventPriority:
13906
14025
description: The priority of the event's monitor. For example, `normal` or `low`.
13907
14026
enum:
@@ -46770,7 +46889,8 @@ paths:
46770
46889
type: safe
46771
46890
post:
46772
46891
description: "This endpoint allows you to post events.\n\n\u2705 **Only events
46773
- with the `change` category** are in General Availability. See [Change Tracking](https://docs.datadoghq.com/change_tracking)
46892
+ with the `change` or `alert` category** are in General Availability. For change
46893
+ events, see [Change Tracking](https://docs.datadoghq.com/change_tracking)
46774
46894
for more details.\n\n\u274C For use cases involving other event categories,
46775
46895
please use the V1 endpoint."
46776
46896
operationId: CreateEvent
@@ -46782,6 +46902,7 @@ paths:
46782
46902
value:
46783
46903
data:
46784
46904
attributes:
46905
+ aggregation_key: aggregation_key_123
46785
46906
attributes:
46786
46907
author:
46787
46908
name: datadog@datadog.com
@@ -46810,6 +46931,7 @@ paths:
46810
46931
rule:
46811
46932
datacenter: devcycle.us1.prod
46812
46933
category: change
46934
+ integration_id: custom-events
46813
46935
message: payment_processed feature flag has been enabled
46814
46936
tags:
46815
46937
- env:test
@@ -46820,7 +46942,7 @@ paths:
46820
46942
description: Event request object
46821
46943
required: true
46822
46944
responses:
46823
- '200 ':
46945
+ '202 ':
46824
46946
content:
46825
46947
application/json:
46826
46948
schema:
@@ -46843,6 +46965,38 @@ paths:
46843
46965
security:
46844
46966
- apiKeyAuth: []
46845
46967
appKeyAuth: []
46968
+ servers:
46969
+ - url: https://{subdomain}.{site}
46970
+ variables:
46971
+ site:
46972
+ default: datadoghq.com
46973
+ description: The regional site for customers.
46974
+ enum:
46975
+ - datadoghq.com
46976
+ - us3.datadoghq.com
46977
+ - us5.datadoghq.com
46978
+ - ap1.datadoghq.com
46979
+ - datadoghq.eu
46980
+ - ddog-gov.com
46981
+ subdomain:
46982
+ default: event-management-intake
46983
+ description: The subdomain where the API is deployed.
46984
+ - url: '{protocol}://{name}'
46985
+ variables:
46986
+ name:
46987
+ default: event-management-intake.datadoghq.com
46988
+ description: Full site DNS name.
46989
+ protocol:
46990
+ default: https
46991
+ description: The protocol for accessing the API.
46992
+ - url: https://{subdomain}.{site}
46993
+ variables:
46994
+ site:
46995
+ default: datadoghq.com
46996
+ description: Any Datadog deployment.
46997
+ subdomain:
46998
+ default: event-management-intake
46999
+ description: The subdomain where the API is deployed.
46846
47000
summary: Post an event
46847
47001
tags:
46848
47002
- Events
0 commit comments