Skip to content

Commit 2807f56

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 31044eb of spec repo (#2421)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e4c70fd commit 2807f56

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17524,6 +17524,10 @@ components:
1752417524
items:
1752517525
$ref: '#/components/schemas/IncidentTimelineCellCreateAttributes'
1752617526
type: array
17527+
is_test:
17528+
description: A flag indicating whether the incident is a test incident.
17529+
example: false
17530+
type: boolean
1752717531
notification_handles:
1752817532
description: Notification handles that will be notified of the incident
1752917533
at creation.
@@ -17931,6 +17935,10 @@ components:
1793117935
description: A unique identifier that represents an incident type.
1793217936
example: 00000000-0000-0000-0000-000000000000
1793317937
type: string
17938+
is_test:
17939+
description: A flag indicating whether the incident is a test incident.
17940+
example: false
17941+
type: boolean
1793417942
modified:
1793517943
description: Timestamp when the incident was last modified.
1793617944
format: date-time

features/v2/incidents.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Feature: Incidents
7070
Scenario: Create an incident returns "Bad Request" response
7171
Given operation "CreateIncident" enabled
7272
And new "CreateIncident" request
73-
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
73+
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "is_test": false, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
7474
When the request is sent
7575
Then the response status is 400 Bad Request
7676

@@ -89,7 +89,7 @@ Feature: Incidents
8989
Scenario: Create an incident returns "Not Found" response
9090
Given operation "CreateIncident" enabled
9191
And new "CreateIncident" request
92-
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
92+
And body with value {"data": {"attributes": {"customer_impact_scope": "Example customer impact scope", "customer_impacted": false, "fields": {"severity": {"type": "dropdown", "value": "SEV-5"}}, "incident_type_uuid": "00000000-0000-0000-0000-000000000000", "initial_cells": [{"cell_type": "markdown", "content": {"content": "An example timeline cell message."}, "important": false}], "is_test": false, "notification_handles": [{"display_name": "Jane Doe", "handle": "@[email protected]"}, {"display_name": "Slack Channel", "handle": "@slack-channel"}, {"display_name": "Incident Workflow", "handle": "@workflow-from-incident"}], "title": "A test incident title"}, "relationships": {"commander_user": {"data": {"id": "00000000-0000-0000-0000-000000000000", "type": "users"}}}, "type": "incidents"}}
9393
When the request is sent
9494
Then the response status is 404 Not Found
9595

services/incidents/src/v2/models/IncidentCreateAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ export class IncidentCreateAttributes {
2828
* An array of initial timeline cells to be placed at the beginning of the incident timeline.
2929
*/
3030
"initialCells"?: Array<IncidentTimelineCellCreateAttributes>;
31+
/**
32+
* A flag indicating whether the incident is a test incident.
33+
*/
34+
"isTest"?: boolean;
3135
/**
3236
* Notification handles that will be notified of the incident at creation.
3337
*/
@@ -72,6 +76,10 @@ export class IncidentCreateAttributes {
7276
baseName: "initial_cells",
7377
type: "Array<IncidentTimelineCellCreateAttributes>",
7478
},
79+
isTest: {
80+
baseName: "is_test",
81+
type: "boolean",
82+
},
7583
notificationHandles: {
7684
baseName: "notification_handles",
7785
type: "Array<IncidentNotificationHandle>",

services/incidents/src/v2/models/IncidentResponseAttributes.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export class IncidentResponseAttributes {
5454
* A unique identifier that represents an incident type.
5555
*/
5656
"incidentTypeUuid"?: string;
57+
/**
58+
* A flag indicating whether the incident is a test incident.
59+
*/
60+
"isTest"?: boolean;
5761
/**
5862
* Timestamp when the incident was last modified.
5963
*/
@@ -173,6 +177,10 @@ export class IncidentResponseAttributes {
173177
baseName: "incident_type_uuid",
174178
type: "string",
175179
},
180+
isTest: {
181+
baseName: "is_test",
182+
type: "boolean",
183+
},
176184
modified: {
177185
baseName: "modified",
178186
type: "Date",

0 commit comments

Comments
 (0)