Skip to content

Commit 94b6a30

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 0bddf9bc of spec repo
1 parent ebb9ae4 commit 94b6a30

22 files changed

+1202
-143
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2025-05-20 07:21:26.571404",
8-
"spec_repo_commit": "fec20f97"
7+
"regenerated": "2025-05-21 13:39:56.020077",
8+
"spec_repo_commit": "0bddf9bc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-20 07:21:26.587147",
13-
"spec_repo_commit": "fec20f97"
12+
"regenerated": "2025-05-21 13:39:56.041960",
13+
"spec_repo_commit": "0bddf9bc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 169 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2176,6 +2176,89 @@ components:
21762176
- id
21772177
- base_severity
21782178
type: object
2179+
AlertEventCustomAttributes:
2180+
additionalProperties: false
2181+
description: Object representing custom alert event attributes.
2182+
properties:
2183+
custom:
2184+
$ref: '#/components/schemas/AlertEventCustomAttributesCustom'
2185+
links:
2186+
$ref: '#/components/schemas/AlertEventCustomAttributesLinks'
2187+
priority:
2188+
$ref: '#/components/schemas/AlertEventCustomAttributesPriority'
2189+
status:
2190+
$ref: '#/components/schemas/AlertEventCustomAttributesStatus'
2191+
type: object
2192+
AlertEventCustomAttributesCustom:
2193+
additionalProperties: {}
2194+
description: Custom attributes. Support up to 100 properties and a maximum nesting
2195+
depth of 10 levels.
2196+
example: {}
2197+
type: object
2198+
AlertEventCustomAttributesLinks:
2199+
description: The links related to the event.
2200+
items:
2201+
$ref: '#/components/schemas/AlertEventCustomAttributesLinksItems'
2202+
maxItems: 20
2203+
minItems: 1
2204+
type: array
2205+
AlertEventCustomAttributesLinksItems:
2206+
description: A link.
2207+
properties:
2208+
category:
2209+
$ref: '#/components/schemas/AlertEventCustomAttributesLinksItemsCategory'
2210+
title:
2211+
description: The title of the link. Limited to 300 characters.
2212+
example: Runbook Link
2213+
maxLength: 300
2214+
type: string
2215+
url:
2216+
description: The URL of the link. Limited to 2048 characters.
2217+
example: https://app.datadoghq.com/runbook
2218+
maxLength: 2048
2219+
type: string
2220+
required:
2221+
- url
2222+
- category
2223+
type: object
2224+
AlertEventCustomAttributesLinksItemsCategory:
2225+
description: The category of the link.
2226+
enum:
2227+
- runbook
2228+
example: runbook
2229+
type: string
2230+
x-enum-varnames:
2231+
- RUNBOOK
2232+
AlertEventCustomAttributesPriority:
2233+
description: The priority of the alert.
2234+
enum:
2235+
- '1'
2236+
- '2'
2237+
- '3'
2238+
- '4'
2239+
- '5'
2240+
example: '1'
2241+
type: string
2242+
x-enum-varnames:
2243+
- PRIORITY_ONE
2244+
- PRIORITY_TWO
2245+
- PRIORITY_THREE
2246+
- PRIORITY_FOUR
2247+
- PRIORITY_FIVE
2248+
AlertEventCustomAttributesStatus:
2249+
description: The status of the alert.
2250+
enum:
2251+
- info
2252+
- warn
2253+
- error
2254+
- ok
2255+
example: warn
2256+
type: string
2257+
x-enum-varnames:
2258+
- INFO
2259+
- WARN
2260+
- ERROR
2261+
- OK
21792262
Annotation:
21802263
description: A list of annotations used in the workflow. These are like sticky
21812264
notes for your workflow!
@@ -6868,6 +6951,7 @@ components:
68686951
type: integer
68696952
type: object
68706953
ChangeEventCustomAttributes:
6954+
additionalProperties: false
68716955
description: Object representing custom change event attributes.
68726956
properties:
68736957
author:
@@ -6920,8 +7004,8 @@ components:
69207004
- changed_resource
69217005
type: object
69227006
ChangeEventCustomAttributesAuthor:
6923-
description: Object representing the entity which made the change. Optional
6924-
field but if provided should include `type` and `name`.
7007+
description: Object representing the entity that made the change. Optional field
7008+
but if provided should include type and name.
69257009
properties:
69267010
name:
69277011
description: Author's name. Limited to 128 characters.
@@ -14229,28 +14313,33 @@ components:
1422914313
type: string
1423014314
type: object
1423114315
EventCategory:
14232-
description: Event category to identify the type of event. Only the value `change`
14233-
is supported. Support for other categories are coming. please reach out to
14234-
datadog support if you're interested.
14316+
description: Event category to identify the type of event.
1423514317
enum:
1423614318
- change
14319+
- alert
1423714320
example: change
1423814321
type: string
1423914322
x-enum-varnames:
1424014323
- CHANGE
14324+
- ALERT
1424114325
EventCreateRequest:
1424214326
description: Object representing an event creation request.
1424314327
properties:
1424414328
attributes:
1424514329
$ref: '#/components/schemas/EventPayload'
1424614330
type:
1424714331
$ref: '#/components/schemas/EventCreateRequestType'
14332+
required:
14333+
- type
14334+
- attributes
1424814335
type: object
1424914336
EventCreateRequestPayload:
1425014337
description: Payload for creating an event.
1425114338
properties:
1425214339
data:
1425314340
$ref: '#/components/schemas/EventCreateRequest'
14341+
required:
14342+
- data
1425414343
type: object
1425514344
EventCreateRequestType:
1425614345
description: Entity type.
@@ -14286,28 +14375,43 @@ components:
1428614375
EventCreateResponseAttributesAttributesEvt:
1428714376
description: JSON object of event system attributes.
1428814377
properties:
14289-
id:
14290-
description: Event id
14378+
uid:
14379+
description: A unique identifier for the event. You can use this ID to query
14380+
or reference the event in the V2 endpoint.
1429114381
type: string
1429214382
type: object
1429314383
EventCreateResponsePayload:
1429414384
description: Response containing information about created event.
1429514385
properties:
1429614386
data:
1429714387
$ref: '#/components/schemas/EventCreateResponse'
14388+
links:
14389+
$ref: '#/components/schemas/EventCreateResponsePayloadLinks'
14390+
type: object
14391+
EventCreateResponsePayloadLinks:
14392+
description: Links attributes.
14393+
properties:
14394+
self:
14395+
description: The URL of the event. This link is only functional when using
14396+
the default subdomain.
14397+
type: string
1429814398
type: object
1429914399
EventPayload:
1430014400
description: Event attributes.
1430114401
properties:
1430214402
aggregation_key:
1430314403
description: An arbitrary string to use for aggregation when correlating
14304-
events. Limited to 100 characters.
14404+
events. If you specify a key, events are deduplicated to alerts based
14405+
on this key. Limited to 100 characters.
14406+
example: aggregation_key_123
1430514407
maxLength: 100
1430614408
type: string
1430714409
attributes:
1430814410
$ref: '#/components/schemas/EventPayloadAttributes'
1430914411
category:
1431014412
$ref: '#/components/schemas/EventCategory'
14413+
integration_id:
14414+
$ref: '#/components/schemas/EventPayloadIntegrationId'
1431114415
message:
1431214416
description: The body of the event. Limited to 4000 characters.
1431314417
example: payment_processed feature flag has been enabled
@@ -14321,7 +14425,10 @@ components:
1432114425
- env:test
1432214426
items:
1432314427
description: A tag.
14428+
maxLength: 200
1432414429
type: string
14430+
maxItems: 100
14431+
minItems: 1
1432514432
type: array
1432614433
timestamp:
1432714434
description: 'Timestamp when the event occurred. Must follow [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html)
@@ -14331,6 +14438,7 @@ components:
1433114438

1433214439
Defaults to the timestamp of receipt. Limited to values no older than
1433314440
18 hours.'
14441+
example: '2020-01-01T01:30:15.010000Z'
1433414442
type: string
1433514443
title:
1433614444
description: The event title. Limited to 500 characters.
@@ -14343,10 +14451,20 @@ components:
1434314451
- attributes
1434414452
type: object
1434514453
EventPayloadAttributes:
14346-
description: JSON object for custom attributes. Schema are different per each
14347-
event category.
14454+
description: JSON object for custom attributes. Schema is different per event
14455+
category.
1434814456
oneOf:
1434914457
- $ref: '#/components/schemas/ChangeEventCustomAttributes'
14458+
- $ref: '#/components/schemas/AlertEventCustomAttributes'
14459+
EventPayloadIntegrationId:
14460+
description: Integration IDs sourced from integration manifests. Currently,
14461+
only `custom-events` is supported.
14462+
enum:
14463+
- custom-events
14464+
example: custom-events
14465+
type: string
14466+
x-enum-varnames:
14467+
- CUSTOM_EVENTS
1435014468
EventPriority:
1435114469
description: The priority of the event's monitor. For example, `normal` or `low`.
1435214470
enum:
@@ -45904,9 +46022,12 @@ paths:
4590446022
- events_read
4590546023
post:
4590646024
description: "This endpoint allows you to post events.\n\n\u2705 **Only events
45907-
with the `change` category** are in General Availability. See [Change Tracking](https://docs.datadoghq.com/change_tracking)
46025+
with the `change` or `alert` category** are in General Availability. For change
46026+
events, see [Change Tracking](https://docs.datadoghq.com/change_tracking)
4590846027
for more details.\n\n\u274C For use cases involving other event categories,
45909-
please use the V1 endpoint."
46028+
please use the V1 endpoint.\n\u274C Currently, notifications are not supported
46029+
for events sent to this endpoint, please use the V1 endpoint for notification
46030+
functionality."
4591046031
operationId: CreateEvent
4591146032
requestBody:
4591246033
content:
@@ -45916,6 +46037,7 @@ paths:
4591646037
value:
4591746038
data:
4591846039
attributes:
46040+
aggregation_key: aggregation_key_123
4591946041
attributes:
4592046042
author:
4592146043
name: datadog@datadog.com
@@ -45944,17 +46066,19 @@ paths:
4594446066
rule:
4594546067
datacenter: devcycle.us1.prod
4594646068
category: change
46069+
integration_id: custom-events
4594746070
message: payment_processed feature flag has been enabled
4594846071
tags:
4594946072
- env:test
46073+
timestamp: '2020-01-01T01:30:15.010000Z'
4595046074
title: payment_processed feature flag updated
4595146075
type: event
4595246076
schema:
4595346077
$ref: '#/components/schemas/EventCreateRequestPayload'
4595446078
description: Event request object
4595546079
required: true
4595646080
responses:
45957-
'200':
46081+
'202':
4595846082
content:
4595946083
application/json:
4596046084
schema:
@@ -45977,6 +46101,38 @@ paths:
4597746101
security:
4597846102
- apiKeyAuth: []
4597946103
appKeyAuth: []
46104+
servers:
46105+
- url: https://{subdomain}.{site}
46106+
variables:
46107+
site:
46108+
default: datadoghq.com
46109+
description: The regional site for customers.
46110+
enum:
46111+
- datadoghq.com
46112+
- us3.datadoghq.com
46113+
- us5.datadoghq.com
46114+
- ap1.datadoghq.com
46115+
- datadoghq.eu
46116+
- ddog-gov.com
46117+
subdomain:
46118+
default: event-management-intake
46119+
description: The subdomain where the API is deployed.
46120+
- url: '{protocol}://{name}'
46121+
variables:
46122+
name:
46123+
default: event-management-intake.datadoghq.com
46124+
description: Full site DNS name.
46125+
protocol:
46126+
default: https
46127+
description: The protocol for accessing the API.
46128+
- url: https://{subdomain}.{site}
46129+
variables:
46130+
site:
46131+
default: datadoghq.com
46132+
description: Any Datadog deployment.
46133+
subdomain:
46134+
default: event-management-intake
46135+
description: The subdomain where the API is deployed.
4598046136
summary: Post an event
4598146137
tags:
4598246138
- Events

api/datadog/configuration.go

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,58 @@ func NewConfiguration() *Configuration {
269269
},
270270
},
271271
},
272+
"v2.EventsApi.CreateEvent": {
273+
{
274+
URL: "https://{subdomain}.{site}",
275+
Description: "No description provided",
276+
Variables: map[string]ServerVariable{
277+
"site": {
278+
Description: "The regional site for customers.",
279+
DefaultValue: "datadoghq.com",
280+
EnumValues: []string{
281+
"datadoghq.com",
282+
"us3.datadoghq.com",
283+
"us5.datadoghq.com",
284+
"ap1.datadoghq.com",
285+
"datadoghq.eu",
286+
"ddog-gov.com",
287+
},
288+
},
289+
"subdomain": {
290+
Description: "The subdomain where the API is deployed.",
291+
DefaultValue: "event-management-intake",
292+
},
293+
},
294+
},
295+
{
296+
URL: "{protocol}://{name}",
297+
Description: "No description provided",
298+
Variables: map[string]ServerVariable{
299+
"name": {
300+
Description: "Full site DNS name.",
301+
DefaultValue: "event-management-intake.datadoghq.com",
302+
},
303+
"protocol": {
304+
Description: "The protocol for accessing the API.",
305+
DefaultValue: "https",
306+
},
307+
},
308+
},
309+
{
310+
URL: "https://{subdomain}.{site}",
311+
Description: "No description provided",
312+
Variables: map[string]ServerVariable{
313+
"site": {
314+
Description: "Any Datadog deployment.",
315+
DefaultValue: "datadoghq.com",
316+
},
317+
"subdomain": {
318+
Description: "The subdomain where the API is deployed.",
319+
DefaultValue: "event-management-intake",
320+
},
321+
},
322+
},
323+
},
272324
"v2.LogsApi.SubmitLog": {
273325
{
274326
URL: "https://{subdomain}.{site}",

0 commit comments

Comments
 (0)