Skip to content

Commit 48b6e1c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark Incident Impact Endpoints stable (#3133)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 946eeef commit 48b6e1c

File tree

4 files changed

+4
-31
lines changed

4 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

services/events/src/v2/EventsApi.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,7 @@ export class EventsApi {
598598
| "us3.datadoghq.com"
599599
| "us5.datadoghq.com"
600600
| "ap1.datadoghq.com"
601+
| "ap2.datadoghq.com"
601602
| "datadoghq.eu"
602603
| "ddog-gov.com";
603604
subdomain: string;

services/incidents/src/v2/IncidentsApi.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
137137
): Promise<RequestContext> {
138138
const _config = _options || this.configuration;
139139

140-
if (!_config.unstableOperations["IncidentsApi.v2.createIncidentImpact"]) {
141-
throw new Error(
142-
"Unstable operation 'createIncidentImpact' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.createIncidentImpact'] = true`",
143-
);
144-
}
145-
146140
// verify required parameter 'incidentId' is not null or undefined
147141
if (incidentId === null || incidentId === undefined) {
148142
throw new RequiredError("incidentId", "createIncidentImpact");
@@ -593,12 +587,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
593587
): Promise<RequestContext> {
594588
const _config = _options || this.configuration;
595589

596-
if (!_config.unstableOperations["IncidentsApi.v2.deleteIncidentImpact"]) {
597-
throw new Error(
598-
"Unstable operation 'deleteIncidentImpact' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.deleteIncidentImpact'] = true`",
599-
);
600-
}
601-
602590
// verify required parameter 'incidentId' is not null or undefined
603591
if (incidentId === null || incidentId === undefined) {
604592
throw new RequiredError("incidentId", "deleteIncidentImpact");
@@ -1398,12 +1386,6 @@ export class IncidentsApiRequestFactory extends BaseAPIRequestFactory {
13981386
): Promise<RequestContext> {
13991387
const _config = _options || this.configuration;
14001388

1401-
if (!_config.unstableOperations["IncidentsApi.v2.listIncidentImpacts"]) {
1402-
throw new Error(
1403-
"Unstable operation 'listIncidentImpacts' is disabled. Enable it by setting `configuration.unstableOperations['IncidentsApi.v2.listIncidentImpacts'] = true`",
1404-
);
1405-
}
1406-
14071389
// verify required parameter 'incidentId' is not null or undefined
14081390
if (incidentId === null || incidentId === undefined) {
14091391
throw new RequiredError("incidentId", "listIncidentImpacts");

0 commit comments

Comments
 (0)