Skip to content

Commit 99be8a8

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark Incident Impact Endpoints stable (#3134)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 655102f commit 99be8a8

File tree

5 files changed

+4
-31
lines changed

5 files changed

+4
-31
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67941,6 +67941,7 @@ paths:
6794167941
- us3.datadoghq.com
6794267942
- us5.datadoghq.com
6794367943
- ap1.datadoghq.com
67944+
- ap2.datadoghq.com
6794467945
- datadoghq.eu
6794567946
- ddog-gov.com
6794667947
subdomain:
@@ -69008,9 +69009,6 @@ paths:
6900869009
operator: OR
6900969010
permissions:
6901069011
- incident_read
69011-
x-unstable: '**Note**: This endpoint is in Preview.
69012-
69013-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6901469012
post:
6901569013
description: Create an impact for an incident.
6901669014
operationId: CreateIncidentImpact
@@ -69054,9 +69052,6 @@ paths:
6905469052
operator: OR
6905569053
permissions:
6905669054
- incident_write
69057-
x-unstable: '**Note**: This endpoint is in Preview.
69058-
69059-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6906069055
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
6906169056
delete:
6906269057
description: Delete an incident impact.
@@ -69087,9 +69082,6 @@ paths:
6908769082
operator: OR
6908869083
permissions:
6908969084
- incident_write
69090-
x-unstable: '**Note**: This endpoint is in Preview.
69091-
69092-
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
6909369085
/api/v2/incidents/{incident_id}/relationships/integrations:
6909469086
get:
6909569087
description: Get all integration metadata for an incident.

features/v2/incidents.feature

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -806,16 +806,14 @@ Feature: Incidents
806806

807807
@generated @skip @team:DataDog/incident-app
808808
Scenario: List an incident's impacts returns "Bad Request" response
809-
Given operation "ListIncidentImpacts" enabled
810-
And new "ListIncidentImpacts" request
809+
Given new "ListIncidentImpacts" request
811810
And request contains "incident_id" parameter from "REPLACE.ME"
812811
When the request is sent
813812
Then the response status is 400 Bad Request
814813

815814
@generated @skip @team:DataDog/incident-app
816815
Scenario: List an incident's impacts returns "Not Found" response
817-
Given operation "ListIncidentImpacts" enabled
818-
And new "ListIncidentImpacts" request
816+
Given new "ListIncidentImpacts" request
819817
And request contains "incident_id" parameter from "REPLACE.ME"
820818
When the request is sent
821819
Then the response status is 404 Not Found

packages/datadog-api-client-common/configuration.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,12 @@ export function createConfiguration(
282282
"v2.updateDeploymentGate": false,
283283
"v2.updateDeploymentRule": false,
284284
"v2.createIncident": false,
285-
"v2.createIncidentImpact": false,
286285
"v2.createIncidentIntegration": false,
287286
"v2.createIncidentNotificationRule": false,
288287
"v2.createIncidentNotificationTemplate": false,
289288
"v2.createIncidentTodo": false,
290289
"v2.createIncidentType": false,
291290
"v2.deleteIncident": false,
292-
"v2.deleteIncidentImpact": false,
293291
"v2.deleteIncidentIntegration": false,
294292
"v2.deleteIncidentNotificationRule": false,
295293
"v2.deleteIncidentNotificationTemplate": false,
@@ -302,7 +300,6 @@ export function createConfiguration(
302300
"v2.getIncidentTodo": false,
303301
"v2.getIncidentType": false,
304302
"v2.listIncidentAttachments": false,
305-
"v2.listIncidentImpacts": false,
306303
"v2.listIncidentIntegrations": false,
307304
"v2.listIncidentNotificationRules": false,
308305
"v2.listIncidentNotificationTemplates": false,

packages/datadog-api-client-common/servers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ export const operationServers: {
163163
| "us3.datadoghq.com"
164164
| "us5.datadoghq.com"
165165
| "ap1.datadoghq.com"
166+
| "ap2.datadoghq.com"
166167
| "datadoghq.eu"
167168
| "ddog-gov.com";
168169
subdomain: string;

packages/datadog-api-client-v2/apis/IncidentsApi.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
112112
): Promise<RequestContext> {
113113
const _config = _options || this.configuration;
114114

115-
logger.warn("Using unstable operation 'createIncidentImpact'");
116-
if (!_config.unstableOperations["v2.createIncidentImpact"]) {
117-
throw new Error("Unstable operation 'createIncidentImpact' is disabled");
118-
}
119-
120115
// verify required parameter 'incidentId' is not null or undefined
121116
if (incidentId === null || incidentId === undefined) {
122117
throw new RequiredError("incidentId", "createIncidentImpact");
@@ -495,11 +490,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
495490
): Promise<RequestContext> {
496491
const _config = _options || this.configuration;
497492

498-
logger.warn("Using unstable operation 'deleteIncidentImpact'");
499-
if (!_config.unstableOperations["v2.deleteIncidentImpact"]) {
500-
throw new Error("Unstable operation 'deleteIncidentImpact' is disabled");
501-
}
502-
503493
// verify required parameter 'incidentId' is not null or undefined
504494
if (incidentId === null || incidentId === undefined) {
505495
throw new RequiredError("incidentId", "deleteIncidentImpact");
@@ -1140,11 +1130,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
11401130
): Promise<RequestContext> {
11411131
const _config = _options || this.configuration;
11421132

1143-
logger.warn("Using unstable operation 'listIncidentImpacts'");
1144-
if (!_config.unstableOperations["v2.listIncidentImpacts"]) {
1145-
throw new Error("Unstable operation 'listIncidentImpacts' is disabled");
1146-
}
1147-
11481133
// verify required parameter 'incidentId' is not null or undefined
11491134
if (incidentId === null || incidentId === undefined) {
11501135
throw new RequiredError("incidentId", "listIncidentImpacts");

0 commit comments

Comments
 (0)