Skip to content

Commit b224b7c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit a804901 of spec repo
1 parent 82e848b commit b224b7c

File tree

7 files changed

+147
-157
lines changed

7 files changed

+147
-157
lines changed

content/en/api/v2/incidents/examples.json

Lines changed: 52 additions & 58 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"attachment": {
5+
"documentUrl": "https://app.datadoghq.com/notebook/ExampleIncident/Example-Incident",
6+
"title": "Example-Incident"
7+
},
8+
"attachment_type": "postmortem"
9+
},
10+
"type": "incident_attachments"
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"data": {
3+
"attributes": {
4+
"attachment": {
5+
"documentUrl": "https://app.datadoghq.com/notebook/124/Example-Incident",
6+
"title": "Example-Incident"
7+
}
8+
},
9+
"id": "00000000-abcd-0002-0000-000000000000",
10+
"type": "incident_attachments"
11+
}
12+
}

data/api/v2/CodeExamples.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,13 @@
821821
"description": "Create an incident type returns \"CREATED\" response"
822822
}
823823
],
824+
"CreateIncidentAttachment": [
825+
{
826+
"group": "incidents",
827+
"suffix": "",
828+
"description": "Create incident attachment returns \"Created\" response"
829+
}
830+
],
824831
"CreateIncidentNotificationRule": [
825832
{
826833
"group": "incidents",
@@ -856,6 +863,13 @@
856863
"description": "Update an incident type returns \"OK\" response"
857864
}
858865
],
866+
"UpdateIncidentAttachment": [
867+
{
868+
"group": "incidents",
869+
"suffix": "",
870+
"description": "Update incident attachment returns \"OK\" response"
871+
}
872+
],
859873
"UpdateIncidentNotificationRule": [
860874
{
861875
"group": "incidents",

data/api/v2/full_spec.yaml

Lines changed: 54 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,14 @@ components:
178178
required: true
179179
schema:
180180
type: string
181+
AttachmentIDPathParameter:
182+
description: The ID of the attachment.
183+
in: path
184+
name: attachment_id
185+
required: true
186+
schema:
187+
example: 00000000-0000-0000-0000-000000000001
188+
type: string
181189
AttachmentIncludeQueryParameter:
182190
description: 'Resource to include in the response. Supported value: `last_modified_by_user`.'
183191
explode: false
@@ -5319,6 +5327,8 @@ components:
53195327
- project
53205328
type: object
53215329
Attachment:
5330+
description: An attachment response containing the attachment data and related
5331+
objects.
53225332
properties:
53235333
data:
53245334
$ref: '#/components/schemas/AttachmentData'
@@ -5328,22 +5338,9 @@ components:
53285338
type: array
53295339
type: object
53305340
AttachmentArray:
5341+
description: A list of incident attachments.
53315342
properties:
53325343
data:
5333-
example:
5334-
- attributes:
5335-
attachment:
5336-
documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
5337-
title: Postmortem IR-123
5338-
attachment_type: postmortem
5339-
modified: '2025-01-01T01:01:01.000000001Z'
5340-
id: 00000000-abcd-0002-0000-000000000000
5341-
relationships:
5342-
last_modified_by_user:
5343-
data:
5344-
id: 00000000-0000-0000-cccc-000000000000
5345-
type: users
5346-
type: incident_attachments
53475344
items:
53485345
$ref: '#/components/schemas/AttachmentData'
53495346
type: array
@@ -5355,24 +5352,12 @@ components:
53555352
- data
53565353
type: object
53575354
AttachmentData:
5358-
example:
5359-
attributes:
5360-
attachment:
5361-
documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
5362-
title: Postmortem IR-123
5363-
attachment_type: postmortem
5364-
modified: '2025-01-01T01:01:01.000000001Z'
5365-
id: 00000000-abcd-0002-0000-000000000000
5366-
relationships:
5367-
last_modified_by_user:
5368-
data:
5369-
id: 00000000-0000-0000-cccc-000000000000
5370-
type: users
5371-
type: incident_attachments
5355+
description: Attachment data from a response.
53725356
properties:
53735357
attributes:
53745358
$ref: '#/components/schemas/AttachmentDataAttributes'
53755359
id:
5360+
description: The unique identifier of the attachment.
53765361
example: 00000000-abcd-0002-0000-000000000000
53775362
type: string
53785363
relationships:
@@ -5386,56 +5371,52 @@ components:
53865371
- id
53875372
type: object
53885373
AttachmentDataAttributes:
5374+
description: The attachment's attributes.
53895375
properties:
53905376
attachment:
53915377
$ref: '#/components/schemas/AttachmentDataAttributesAttachment'
53925378
attachment_type:
53935379
$ref: '#/components/schemas/AttachmentDataAttributesAttachmentType'
53945380
modified:
5381+
description: Timestamp when the attachment was last modified.
5382+
example: '2025-01-01T01:01:01.000000001Z'
53955383
format: date-time
53965384
type: string
53975385
type: object
53985386
AttachmentDataAttributesAttachment:
5387+
description: The attachment object.
53995388
properties:
54005389
documentUrl:
5390+
description: The URL of the attachment.
5391+
example: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
54015392
type: string
54025393
title:
5394+
description: The title of the attachment.
5395+
example: Postmortem IR-123
54035396
type: string
54045397
type: object
54055398
AttachmentDataAttributesAttachmentType:
5399+
description: The type of the attachment.
54065400
enum:
54075401
- postmortem
54085402
- link
5403+
example: postmortem
54095404
type: string
54105405
x-enum-varnames:
54115406
- POSTMORTEM
54125407
- LINK
54135408
AttachmentDataRelationships:
5409+
description: The attachment's resource relationships.
54145410
properties:
5411+
incident:
5412+
$ref: '#/components/schemas/RelationshipToIncident'
54155413
last_modified_by_user:
5416-
$ref: '#/components/schemas/AttachmentDataRelationshipsLastModifiedByUser'
5417-
type: object
5418-
AttachmentDataRelationshipsLastModifiedByUser:
5419-
properties:
5420-
data:
5421-
$ref: '#/components/schemas/AttachmentDataRelationshipsLastModifiedByUserData'
5422-
required:
5423-
- data
5424-
type: object
5425-
AttachmentDataRelationshipsLastModifiedByUserData:
5426-
properties:
5427-
id:
5428-
example: ''
5429-
type: string
5430-
type:
5431-
$ref: '#/components/schemas/UserType'
5432-
required:
5433-
- type
5434-
- id
5414+
$ref: '#/components/schemas/RelationshipToUser'
54355415
type: object
54365416
AttachmentIncluded:
5417+
description: Objects related to an attachment.
54375418
oneOf:
5438-
- $ref: '#/components/schemas/User140420082644000'
5419+
- $ref: '#/components/schemas/IncidentUserData'
54395420
AuditLogsEvent:
54405421
description: Object description of an Audit Logs event after it is processed
54415422
and stored by Datadog.
@@ -12983,20 +12964,13 @@ components:
1298312964
- type
1298412965
type: object
1298512966
CreateAttachmentRequest:
12986-
example:
12987-
data:
12988-
attributes:
12989-
attachment:
12990-
documentUrl: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
12991-
title: Postmortem-IR-123
12992-
attachment_type: postmortem
12993-
id: 00000000-0000-0000-0000-000000000000
12994-
type: incident_attachments
12967+
description: Create request for an attachment.
1299512968
properties:
1299612969
data:
1299712970
$ref: '#/components/schemas/CreateAttachmentRequestData'
1299812971
type: object
1299912972
CreateAttachmentRequestData:
12973+
description: Attachment data for a create request.
1300012974
properties:
1300112975
attributes:
1300212976
$ref: '#/components/schemas/CreateAttachmentRequestDataAttributes'
@@ -13008,17 +12982,23 @@ components:
1300812982
- type
1300912983
type: object
1301012984
CreateAttachmentRequestDataAttributes:
12985+
description: The attributes for creating an attachment.
1301112986
properties:
1301212987
attachment:
1301312988
$ref: '#/components/schemas/CreateAttachmentRequestDataAttributesAttachment'
1301412989
attachment_type:
1301512990
$ref: '#/components/schemas/AttachmentDataAttributesAttachmentType'
1301612991
type: object
1301712992
CreateAttachmentRequestDataAttributesAttachment:
12993+
description: The attachment object for creating an attachment.
1301812994
properties:
1301912995
documentUrl:
12996+
description: The URL of the attachment.
12997+
example: https://app.datadoghq.com/notebook/123/Postmortem-IR-123
1302012998
type: string
1302112999
title:
13000+
description: The title of the attachment.
13001+
example: Postmortem-IR-123
1302213002
type: string
1302313003
type: object
1302413004
CreateCaseRequestArray:
@@ -41753,38 +41733,41 @@ components:
4175341733
type: array
4175441734
type: object
4175541735
PatchAttachmentRequest:
41756-
example:
41757-
data:
41758-
attributes:
41759-
attachment:
41760-
documentUrl: https://app.datadoghq.com/notebook/124/Postmortem-IR-124
41761-
title: Postmortem-IR-124
41762-
type: incident_attachments
41736+
description: Request to update an attachment.
4176341737
properties:
4176441738
data:
4176541739
$ref: '#/components/schemas/PatchAttachmentRequestData'
4176641740
type: object
4176741741
PatchAttachmentRequestData:
41742+
description: Attachment data for an update request.
4176841743
properties:
4176941744
attributes:
4177041745
$ref: '#/components/schemas/PatchAttachmentRequestDataAttributes'
4177141746
id:
41747+
description: The unique identifier of the attachment.
41748+
example: 00000000-abcd-0002-0000-000000000000
4177241749
type: string
4177341750
type:
4177441751
$ref: '#/components/schemas/IncidentAttachmentType'
4177541752
required:
4177641753
- type
4177741754
type: object
4177841755
PatchAttachmentRequestDataAttributes:
41756+
description: The attributes for updating an attachment.
4177941757
properties:
4178041758
attachment:
4178141759
$ref: '#/components/schemas/PatchAttachmentRequestDataAttributesAttachment'
4178241760
type: object
4178341761
PatchAttachmentRequestDataAttributesAttachment:
41762+
description: The updated attachment object.
4178441763
properties:
4178541764
documentUrl:
41765+
description: The updated URL for the attachment.
41766+
example: https://app.datadoghq.com/notebook/124/Postmortem-IR-124
4178641767
type: string
4178741768
title:
41769+
description: The updated title for the attachment.
41770+
example: Postmortem-IR-124
4178841771
type: string
4178941772
type: object
4179041773
PatchIncidentNotificationTemplateRequest:
@@ -59178,17 +59161,6 @@ components:
5917859161
type:
5917959162
$ref: '#/components/schemas/UsersType'
5918059163
type: object
59181-
User140420082644000:
59182-
properties:
59183-
attributes:
59184-
$ref: '#/components/schemas/UserAttributes'
59185-
id:
59186-
type: string
59187-
type:
59188-
$ref: '#/components/schemas/UserType'
59189-
required:
59190-
- type
59191-
type: object
5919259164
UserAttributes:
5919359165
description: Attributes of user object returned by the API.
5919459166
properties:
@@ -59639,15 +59611,6 @@ components:
5963959611
meta:
5964059612
$ref: '#/components/schemas/TeamsResponseMeta'
5964159613
type: object
59642-
UserType:
59643-
default: users
59644-
description: Users resource type.
59645-
enum:
59646-
- users
59647-
example: users
59648-
type: string
59649-
x-enum-varnames:
59650-
- USERS
5965159614
UserUpdateAttributes:
5965259615
description: Attributes of the edited user.
5965359616
properties:
@@ -71758,12 +71721,7 @@ paths:
7175871721
operationId: DeleteIncidentAttachment
7175971722
parameters:
7176071723
- $ref: '#/components/parameters/IncidentIDPathParameter'
71761-
- description: The ID of the attachment.
71762-
in: path
71763-
name: attachment_id
71764-
required: true
71765-
schema:
71766-
example: 00000000-0000-0000-0000-000000000002
71724+
- $ref: '#/components/parameters/AttachmentIDPathParameter'
7176771725
responses:
7176871726
'204':
7176971727
description: No Content
@@ -71795,12 +71753,7 @@ paths:
7179571753
operationId: UpdateIncidentAttachment
7179671754
parameters:
7179771755
- $ref: '#/components/parameters/IncidentIDPathParameter'
71798-
- description: The ID of the attachment.
71799-
in: path
71800-
name: attachment_id
71801-
required: true
71802-
schema:
71803-
example: 00000000-0000-0000-0000-000000000002
71756+
- $ref: '#/components/parameters/AttachmentIDPathParameter'
7180471757
- $ref: '#/components/parameters/AttachmentIncludeQueryParameter'
7180571758
requestBody:
7180671759
content:
@@ -93412,6 +93365,11 @@ tags:
9341293365
name: Logs Archives
9341393366
- description: 'Custom Destinations forward all the logs ingested to an external destination.
9341493367

93368+
93369+
**Note**: Log forwarding is not available for the Government (US1-FED) site. Contact
93370+
your account representative for more information.
93371+
93372+
9341593373
See the [Custom Destinations Page](https://app.datadoghq.com/logs/pipelines/log-forwarding/custom-destinations)
9341693374

9341793375
for a list of the custom destinations currently configured in web UI.'

data/api/v2/translate_actions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,15 +1195,15 @@
11951195
"description": "Create an incident attachment.",
11961196
"summary": "Create incident attachment",
11971197
"request_description": "",
1198-
"request_schema_description": ""
1198+
"request_schema_description": "Create request for an attachment."
11991199
},
12001200
"DeleteIncidentAttachment": {
12011201
"summary": "Delete incident attachment"
12021202
},
12031203
"UpdateIncidentAttachment": {
12041204
"summary": "Update incident attachment",
12051205
"request_description": "",
1206-
"request_schema_description": ""
1206+
"request_schema_description": "Request to update an attachment."
12071207
},
12081208
"ListIncidentImpacts": {
12091209
"description": "Get all impacts for an incident.",

0 commit comments

Comments
 (0)