Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-04 20:35:53.754475",
"spec_repo_commit": "0a78d630"
"regenerated": "2024-11-04 21:14:32.253112",
"spec_repo_commit": "08338fd1"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-04 20:35:53.773064",
"spec_repo_commit": "0a78d630"
"regenerated": "2024-11-04 21:14:32.271768",
"spec_repo_commit": "08338fd1"
}
}
}
4 changes: 2 additions & 2 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11964,7 +11964,7 @@ components:
default: false
description: If true, this incident type will be used as the default incident
type if a type is not specified during the creation of incident resources.
example: true
example: false
type: boolean
lastModifiedBy:
description: A unique identifier that represents the user that last modified
Expand Down Expand Up @@ -12099,7 +12099,7 @@ components:
is_default:
description: When true, this incident type will be used as the default type
when an incident type is not specified.
example: true
example: false
type: boolean
lastModifiedBy:
description: A unique identifier that represents the user that last modified
Expand Down
8 changes: 5 additions & 3 deletions examples/v2/incidents/CreateIncidentType.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ public static void main(String[] args) {
new IncidentTypeCreateData()
.attributes(
new IncidentTypeAttributes()
.description("8d4bbb66dccf2456")
.isDefault(true)
.name("8d4bbb66dccf2456"))
.description(
"Any incidents that harm (or have the potential to) the"
+ " confidentiality, integrity, or availability of our data.")
.isDefault(false)
.name("Security Incident"))
.type(IncidentTypeType.INCIDENT_TYPES));

try {
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-11-06T20:25:23.087Z
2024-11-04T19:02:15.577Z

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-11-06T20:25:24.764Z
2024-11-04T19:02:17.223Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":{\"attributes\":{\"customer_impacted\":false,\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1699302324\"},\"type\":\"incidents\"}}"
"json": "{\"data\":{\"attributes\":{\"customer_impacted\":false,\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1730746937\"},\"type\":\"incidents\"}}"
},
"headers": {},
"method": "POST",
Expand All @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"data\":{\"type\":\"incidents\",\"id\":\"f5faf64f-c9bd-5171-8c9e-e4ce51604c97\",\"attributes\":{\"public_id\":174803,\"incident_type_uuid\":\"f7341da0-aaac-4ecf-aa65-5b094f4ecc42\",\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1699302324\",\"resolved\":null,\"customer_impact_scope\":null,\"customer_impact_start\":null,\"customer_impact_end\":null,\"customer_impacted\":false,\"notification_handles\":null,\"last_modified_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}},\"last_modified_by_uuid\":null,\"created\":\"2023-11-06T20:25:24.903041+00:00\",\"modified\":\"2023-11-06T20:25:24.903041+00:00\",\"commander\":null,\"detected\":\"2023-11-06T20:25:24.890646+00:00\",\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}},\"created_by_uuid\":null,\"creation_idempotency_key\":null,\"customer_impact_duration\":0,\"time_to_detect\":0,\"time_to_repair\":0,\"time_to_internal_response\":0,\"time_to_resolve\":0,\"archived\":null,\"fields\":{\"severity\":{\"type\":\"dropdown\",\"value\":\"UNKNOWN\"},\"state\":{\"type\":\"dropdown\",\"value\":\"active\"},\"root_cause\":{\"type\":\"textbox\",\"value\":null},\"detection_method\":{\"type\":\"dropdown\",\"value\":\"unknown\"},\"services\":{\"type\":\"autocomplete\",\"value\":null},\"teams\":{\"type\":\"autocomplete\",\"value\":null},\"summary\":{\"type\":\"textbox\",\"value\":null}},\"field_analytics\":null,\"severity\":\"UNKNOWN\",\"state\":\"active\",\"non_datadog_creator\":null,\"visibility\":\"organization\",\"case_id\":null},\"relationships\":{\"created_by_user\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}},\"last_modified_by_user\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}},\"commander_user\":{\"data\":null},\"user_defined_fields\":{\"data\":[{\"type\":\"user_defined_field\",\"id\":\"ad2b9456-eaec-5bbd-9bae-e502d74e23f8\"},{\"type\":\"user_defined_field\",\"id\":\"299616f7-8acd-5403-886b-991656d6b982\"},{\"type\":\"user_defined_field\",\"id\":\"4148ead2-da45-548e-b6be-8e319bafc425\"},{\"type\":\"user_defined_field\",\"id\":\"66b62f59-48f6-5fee-969a-0886b1db6dcd\"},{\"type\":\"user_defined_field\",\"id\":\"d8a54f16-8b2a-5ab4-87b8-5f0fa575c83e\"},{\"type\":\"user_defined_field\",\"id\":\"623af0a5-f30c-577e-8146-09b8324bdb2d\"},{\"type\":\"user_defined_field\",\"id\":\"ccfc9e6c-f586-58e5-b502-03c466c72e6f\"}]},\"integrations\":{\"data\":[]},\"attachments\":{\"data\":[]},\"responders\":{\"data\":[]},\"impacts\":{\"data\":[]}}}}\n",
"body": "{\"data\":{\"type\":\"incidents\",\"id\":\"de4affc2-0412-5ed3-9d20-7f71b21ad305\",\"attributes\":{\"public_id\":250835,\"incident_type_uuid\":\"41d2e10b-4108-4736-92d7-791d00ea0702\",\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1730746937\",\"resolved\":null,\"customer_impact_scope\":null,\"customer_impact_start\":null,\"customer_impact_end\":null,\"customer_impacted\":false,\"notification_handles\":null,\"last_modified_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}},\"last_modified_by_uuid\":null,\"created\":\"2024-11-04T19:02:17.394588+00:00\",\"modified\":\"2024-11-04T19:02:17.394588+00:00\",\"commander\":null,\"detected\":\"2024-11-04T19:02:17.385480+00:00\",\"created_by\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"attributes\":{\"uuid\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\",\"handle\":\"frog@datadoghq.com\",\"email\":\"frog@datadoghq.com\",\"name\":null,\"icon\":\"https://secure.gravatar.com/avatar/28a16dfe36e73b60c1d55872cb0f1172?s=48&d=retro\"}}},\"created_by_uuid\":null,\"creation_idempotency_key\":null,\"customer_impact_duration\":0,\"time_to_detect\":0,\"time_to_repair\":0,\"time_to_internal_response\":0,\"time_to_resolve\":0,\"archived\":null,\"fields\":{\"severity\":{\"type\":\"dropdown\",\"value\":\"UNKNOWN\"},\"state\":{\"type\":\"dropdown\",\"value\":\"active\"},\"detection_method\":{\"type\":\"dropdown\",\"value\":\"unknown\"},\"root_cause\":{\"type\":\"textbox\",\"value\":null},\"summary\":{\"type\":\"textbox\",\"value\":null},\"services\":{\"type\":\"autocomplete\",\"value\":null},\"teams\":{\"type\":\"autocomplete\",\"value\":null}},\"field_analytics\":null,\"severity\":\"UNKNOWN\",\"state\":\"active\",\"non_datadog_creator\":null,\"visibility\":\"organization\",\"case_id\":null},\"relationships\":{\"created_by_user\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}},\"last_modified_by_user\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}},\"commander_user\":{\"data\":null},\"user_defined_fields\":{\"data\":[{\"type\":\"user_defined_field\",\"id\":\"33457d2a-570c-5567-b4af-979a2a8f1164\"},{\"type\":\"user_defined_field\",\"id\":\"d003693c-bee9-5420-8d46-859269c20914\"},{\"type\":\"user_defined_field\",\"id\":\"1ddff6f6-cb1f-51a0-9d81-dc18ef52cc9d\"},{\"type\":\"user_defined_field\",\"id\":\"6bc9d32b-c2cd-591e-9b7a-74c886a5ddcf\"},{\"type\":\"user_defined_field\",\"id\":\"95c53547-2ba3-5d8a-9c3b-cf245bc0c629\"},{\"type\":\"user_defined_field\",\"id\":\"39044b03-cee4-555f-b1e0-3eb3aa759a86\"},{\"type\":\"user_defined_field\",\"id\":\"3cbe9e60-d794-532c-acc0-73641f782813\"}]},\"integrations\":{\"data\":[]},\"attachments\":{\"data\":[]},\"responders\":{\"data\":[]},\"impacts\":{\"data\":[]}}}}\n",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -27,22 +27,22 @@
"timeToLive": {
"unlimited": true
},
"id": "ec47038b-baa0-1646-eec8-f69d308fc404"
"id": "dfccd09f-3ff9-e07b-e2af-7fcf55f38a84"
},
{
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"data\":[{\"attributes\":{\"attachment\":{\"documentUrl\":\"https://www.example.com/doc\",\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1699302324\"},\"attachment_type\":\"link\"},\"type\":\"incident_attachments\"}]}"
"json": "{\"data\":[{\"attributes\":{\"attachment\":{\"documentUrl\":\"https://www.example.com/doc\",\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1730746937\"},\"attachment_type\":\"link\"},\"type\":\"incident_attachments\"}]}"
},
"headers": {},
"method": "PATCH",
"path": "/api/v2/incidents/f5faf64f-c9bd-5171-8c9e-e4ce51604c97/attachments",
"path": "/api/v2/incidents/de4affc2-0412-5ed3-9d20-7f71b21ad305/attachments",
"keepAlive": false,
"secure": true
},
"httpResponse": {
"body": "{\"data\":[{\"type\":\"incident_attachments\",\"id\":\"34749f37-7681-50cb-8cc4-709950a4bd62\",\"attributes\":{\"modified\":\"2023-11-06T20:25:25.295458+00:00\",\"attachment_type\":\"link\",\"attachment\":{\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1699302324\",\"documentUrl\":\"https://www.example.com/doc\"}},\"relationships\":{\"last_modified_by_user\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}]}\n",
"body": "{\"data\":[{\"type\":\"incident_attachments\",\"id\":\"233c12d5-547a-5638-97e6-6c9d1c456cb7\",\"attributes\":{\"modified\":\"2024-11-04T19:02:17.844501+00:00\",\"attachment_type\":\"link\",\"attachment\":{\"title\":\"Test-Create_an_incident_attachment_returns_OK_response-1730746937\",\"documentUrl\":\"https://www.example.com/doc\"}},\"relationships\":{\"last_modified_by_user\":{\"data\":{\"type\":\"users\",\"id\":\"3ad549bf-eba0-11e9-a77a-0705486660d0\"}}}}]}\n",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -57,13 +57,13 @@
"timeToLive": {
"unlimited": true
},
"id": "ebb2637f-cbcb-1e20-e0a0-036a069006ef"
"id": "aef14cc6-d409-508a-216c-43485fb8c65b"
},
{
"httpRequest": {
"headers": {},
"method": "DELETE",
"path": "/api/v2/incidents/f5faf64f-c9bd-5171-8c9e-e4ce51604c97",
"path": "/api/v2/incidents/de4affc2-0412-5ed3-9d20-7f71b21ad305",
"keepAlive": false,
"secure": true
},
Expand All @@ -82,6 +82,6 @@
"timeToLive": {
"unlimited": true
},
"id": "cd21182f-c4df-3f66-1195-385f4d896888"
"id": "a8aeb3d2-7606-e74a-5462-ae9545953f54"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-11-06T20:25:25.688Z
2024-11-04T19:02:18.198Z
Loading
Loading