@@ -2318,6 +2318,88 @@ components:
2318
2318
- id
2319
2319
- base_severity
2320
2320
type: object
2321
+ AlertEventAttributes:
2322
+ description: Alert event attributes.
2323
+ properties:
2324
+ aggregation_key:
2325
+ $ref: '#/components/schemas/V2EventAggregationKey'
2326
+ custom:
2327
+ description: JSON object of custom attributes.
2328
+ example: {}
2329
+ type: object
2330
+ evt:
2331
+ $ref: '#/components/schemas/EventSystemAttributes'
2332
+ links:
2333
+ description: The links related to the event.
2334
+ example:
2335
+ - category: runbook
2336
+ title: Runbook Link
2337
+ url: https://app.datadoghq.com/runbook
2338
+ items:
2339
+ $ref: '#/components/schemas/AlertEventAttributesLinksItem'
2340
+ type: array
2341
+ priority:
2342
+ $ref: '#/components/schemas/AlertEventAttributesPriority'
2343
+ service:
2344
+ $ref: '#/components/schemas/V2EventService'
2345
+ status:
2346
+ $ref: '#/components/schemas/AlertEventAttributesStatus'
2347
+ timestamp:
2348
+ $ref: '#/components/schemas/V2EventTimestamp'
2349
+ title:
2350
+ $ref: '#/components/schemas/V2EventTitle'
2351
+ type: object
2352
+ AlertEventAttributesLinksItem:
2353
+ description: A link.
2354
+ properties:
2355
+ category:
2356
+ $ref: '#/components/schemas/AlertEventAttributesLinksItemCategory'
2357
+ title:
2358
+ description: The display text of the link.
2359
+ type: string
2360
+ url:
2361
+ description: The URL of the link.
2362
+ type: string
2363
+ type: object
2364
+ AlertEventAttributesLinksItemCategory:
2365
+ description: The category of the link.
2366
+ enum:
2367
+ - runbook
2368
+ - documentation
2369
+ - dashboard
2370
+ type: string
2371
+ x-enum-varnames:
2372
+ - RUNBOOK
2373
+ - DOCUMENTATION
2374
+ - DASHBOARD
2375
+ AlertEventAttributesPriority:
2376
+ description: The priority of the alert.
2377
+ enum:
2378
+ - '1'
2379
+ - '2'
2380
+ - '3'
2381
+ - '4'
2382
+ - '5'
2383
+ example: '5'
2384
+ type: string
2385
+ x-enum-varnames:
2386
+ - PRIORITY_ONE
2387
+ - PRIORITY_TWO
2388
+ - PRIORITY_THREE
2389
+ - PRIORITY_FOUR
2390
+ - PRIORITY_FIVE
2391
+ AlertEventAttributesStatus:
2392
+ description: The status of the alert.
2393
+ enum:
2394
+ - warn
2395
+ - error
2396
+ - ok
2397
+ example: error
2398
+ type: string
2399
+ x-enum-varnames:
2400
+ - WARN
2401
+ - ERROR
2402
+ - OK
2321
2403
AlertEventCustomAttributes:
2322
2404
additionalProperties: false
2323
2405
description: Alert event attributes.
@@ -7157,6 +7239,116 @@ components:
7157
7239
format: int64
7158
7240
type: integer
7159
7241
type: object
7242
+ ChangeEventAttributes:
7243
+ description: Change event attributes.
7244
+ properties:
7245
+ aggregation_key:
7246
+ $ref: '#/components/schemas/V2EventAggregationKey'
7247
+ author:
7248
+ $ref: '#/components/schemas/ChangeEventAttributesAuthor'
7249
+ change_metadata:
7250
+ description: JSON object of change metadata.
7251
+ example:
7252
+ dd:
7253
+ team: datadog_team
7254
+
7255
+ user_id: datadog_user_id
7256
+ user_name: datadog_username
7257
+ type: object
7258
+ changed_resource:
7259
+ $ref: '#/components/schemas/ChangeEventAttributesChangedResource'
7260
+ evt:
7261
+ $ref: '#/components/schemas/EventSystemAttributes'
7262
+ impacted_resources:
7263
+ description: A list of resources impacted by this change.
7264
+ example:
7265
+ - name: service-name
7266
+ type: service
7267
+ items:
7268
+ $ref: '#/components/schemas/ChangeEventAttributesImpactedResourcesItem'
7269
+ type: array
7270
+ new_value:
7271
+ description: The new state of the changed resource.
7272
+ example:
7273
+ enabled: true
7274
+ percentage: 50%
7275
+ rule:
7276
+ datacenter: devcycle.us1.prod
7277
+ type: object
7278
+ prev_value:
7279
+ description: The previous state of the changed resource.
7280
+ example:
7281
+ enabled: true
7282
+ percentage: 10%
7283
+ rule:
7284
+ datacenter: devcycle.us1.prod
7285
+ type: object
7286
+ service:
7287
+ $ref: '#/components/schemas/V2EventService'
7288
+ timestamp:
7289
+ $ref: '#/components/schemas/V2EventTimestamp'
7290
+ title:
7291
+ $ref: '#/components/schemas/V2EventTitle'
7292
+ type: object
7293
+ ChangeEventAttributesAuthor:
7294
+ description: The entity that made the change.
7295
+ properties:
7296
+ name:
7297
+ description: The name of the user or system that made the change.
7298
+
7299
+ type: string
7300
+ type:
7301
+ $ref: '#/components/schemas/ChangeEventAttributesAuthorType'
7302
+ type: object
7303
+ ChangeEventAttributesAuthorType:
7304
+ description: The type of the author.
7305
+ enum:
7306
+ - user
7307
+ - system
7308
+ - api
7309
+ - automation
7310
+ example: user
7311
+ type: string
7312
+ x-enum-varnames:
7313
+ - USER
7314
+ - SYSTEM
7315
+ - API
7316
+ - AUTOMATION
7317
+ ChangeEventAttributesChangedResource:
7318
+ description: A uniquely identified resource.
7319
+ properties:
7320
+ name:
7321
+ description: The name of the changed resource.
7322
+ type: string
7323
+ type:
7324
+ $ref: '#/components/schemas/ChangeEventAttributesChangedResourceType'
7325
+ type: object
7326
+ ChangeEventAttributesChangedResourceType:
7327
+ description: The type of the changed resource.
7328
+ enum:
7329
+ - feature_flag
7330
+ - configuration
7331
+ example: feature_flag
7332
+ type: string
7333
+ x-enum-varnames:
7334
+ - FEATURE_FLAG
7335
+ - CONFIGURATION
7336
+ ChangeEventAttributesImpactedResourcesItem:
7337
+ description: A uniquely identified resource.
7338
+ properties:
7339
+ name:
7340
+ description: The name of the impacted resource.
7341
+ type: string
7342
+ type:
7343
+ $ref: '#/components/schemas/ChangeEventAttributesImpactedResourcesItemType'
7344
+ type: object
7345
+ ChangeEventAttributesImpactedResourcesItemType:
7346
+ description: The type of the impacted resource.
7347
+ enum:
7348
+ - service
7349
+ type: string
7350
+ x-enum-varnames:
7351
+ - SERVICE
7160
7352
ChangeEventCustomAttributes:
7161
7353
additionalProperties: false
7162
7354
description: Change event attributes.
@@ -15069,6 +15261,44 @@ components:
15069
15261
- USER_UPDATE
15070
15262
- RECOMMENDATION
15071
15263
- SNAPSHOT
15264
+ EventSystemAttributes:
15265
+ description: JSON object of event system attributes.
15266
+ properties:
15267
+ category:
15268
+ $ref: '#/components/schemas/EventSystemAttributesCategory'
15269
+ id:
15270
+ description: Event identifier. This field is deprecated and will be removed
15271
+ in a future version. Use the `uid` field instead.
15272
+ type: string
15273
+ integration_id:
15274
+ $ref: '#/components/schemas/EventSystemAttributesIntegrationId'
15275
+ source_id:
15276
+ description: The source type ID of the event.
15277
+ format: int64
15278
+ type: integer
15279
+ uid:
15280
+ description: A unique identifier for the event. You can use this identifier
15281
+ to query or reference the event.
15282
+ type: string
15283
+ type: object
15284
+ EventSystemAttributesCategory:
15285
+ description: Event category identifying the type of event.
15286
+ enum:
15287
+ - change
15288
+ - alert
15289
+ example: change
15290
+ type: string
15291
+ x-enum-varnames:
15292
+ - CHANGE
15293
+ - ALERT
15294
+ EventSystemAttributesIntegrationId:
15295
+ description: Integration ID sourced from integration manifests.
15296
+ enum:
15297
+ - custom-events
15298
+ example: custom-events
15299
+ type: string
15300
+ x-enum-varnames:
15301
+ - CUSTOM_EVENTS
15072
15302
EventType:
15073
15303
default: event
15074
15304
description: Type of the event.
@@ -42255,6 +42485,70 @@ components:
42255
42485
type: string
42256
42486
x-enum-varnames:
42257
42487
- USERS
42488
+ V2Event:
42489
+ description: An event object.
42490
+ properties:
42491
+ attributes:
42492
+ $ref: '#/components/schemas/V2EventAttributes'
42493
+ id:
42494
+ description: The event's ID.
42495
+ example: ''
42496
+ type: string
42497
+ type:
42498
+ description: Entity type.
42499
+ example: event
42500
+ type: string
42501
+ type: object
42502
+ V2EventAggregationKey:
42503
+ description: Aggregation key of the event.
42504
+ example: aggregation-key
42505
+ type: string
42506
+ V2EventAttributes:
42507
+ description: Event attributes.
42508
+ properties:
42509
+ attributes:
42510
+ $ref: '#/components/schemas/V2EventAttributesAttributes'
42511
+ message:
42512
+ description: Free-form text associated with the event.
42513
+ example: The event message
42514
+ type: string
42515
+ tags:
42516
+ description: A list of tags associated with the event.
42517
+ example:
42518
+ - env:api_client_test
42519
+ items:
42520
+ description: A tag.
42521
+ type: string
42522
+ type: array
42523
+ timestamp:
42524
+ description: Timestamp when the event occurred.
42525
+ example: '2017-01-15T01:30:15.010000Z'
42526
+ type: string
42527
+ type: object
42528
+ V2EventAttributesAttributes:
42529
+ description: JSON object for category-specific attributes.
42530
+ oneOf:
42531
+ - $ref: '#/components/schemas/ChangeEventAttributes'
42532
+ - $ref: '#/components/schemas/AlertEventAttributes'
42533
+ V2EventResponse:
42534
+ description: Get an event response.
42535
+ properties:
42536
+ data:
42537
+ $ref: '#/components/schemas/V2Event'
42538
+ type: object
42539
+ V2EventService:
42540
+ description: Service that triggered the event.
42541
+ example: service-name
42542
+ type: string
42543
+ V2EventTimestamp:
42544
+ description: POSIX timestamp of the event.
42545
+ example: 175019386627
42546
+ format: int64
42547
+ type: integer
42548
+ V2EventTitle:
42549
+ description: The title of the event.
42550
+ example: The event title
42551
+ type: string
42258
42552
ValidationError:
42259
42553
description: Represents a single validation error, including a human-readable
42260
42554
title and metadata.
@@ -50071,6 +50365,49 @@ paths:
50071
50365
type: safe
50072
50366
x-merge-override:
50073
50367
post: false
50368
+ /api/v2/events/{event_id}:
50369
+ get:
50370
+ description: Get the details of an event by `event_id`.
50371
+ operationId: GetEvent
50372
+ parameters:
50373
+ - description: The UID of the event.
50374
+ in: path
50375
+ name: event_id
50376
+ required: true
50377
+ schema:
50378
+ type: string
50379
+ responses:
50380
+ '200':
50381
+ content:
50382
+ application/json:
50383
+ schema:
50384
+ $ref: '#/components/schemas/V2EventResponse'
50385
+ description: OK
50386
+ '400':
50387
+ $ref: '#/components/responses/BadRequestResponse'
50388
+ '401':
50389
+ $ref: '#/components/responses/UnauthorizedResponse'
50390
+ '403':
50391
+ $ref: '#/components/responses/ForbiddenResponse'
50392
+ '404':
50393
+ $ref: '#/components/responses/NotFoundResponse'
50394
+ '429':
50395
+ $ref: '#/components/responses/TooManyRequestsResponse'
50396
+ security:
50397
+ - apiKeyAuth: []
50398
+ appKeyAuth: []
50399
+ - AuthZ:
50400
+ - events_read
50401
+ summary: Get an event
50402
+ tags:
50403
+ - Events
50404
+ x-menu-order: 3
50405
+ x-permission:
50406
+ operator: OR
50407
+ permissions:
50408
+ - events_read
50409
+ x-undo:
50410
+ type: safe
50074
50411
/api/v2/incidents:
50075
50412
get:
50076
50413
description: Get all incidents for the user's organization.
0 commit comments