Skip to content

Commit 045f3e1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark Incident Impact Endpoints stable (#1089)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 8c89df3 commit 045f3e1

File tree

4 files changed

+4
-40
lines changed

4 files changed

+4
-40
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.

src/datadog/configuration.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,12 @@ impl Default for Configuration {
188188
("v2.update_deployment_gate".to_owned(), false),
189189
("v2.update_deployment_rule".to_owned(), false),
190190
("v2.create_incident".to_owned(), false),
191-
("v2.create_incident_impact".to_owned(), false),
192191
("v2.create_incident_integration".to_owned(), false),
193192
("v2.create_incident_notification_rule".to_owned(), false),
194193
("v2.create_incident_notification_template".to_owned(), false),
195194
("v2.create_incident_todo".to_owned(), false),
196195
("v2.create_incident_type".to_owned(), false),
197196
("v2.delete_incident".to_owned(), false),
198-
("v2.delete_incident_impact".to_owned(), false),
199197
("v2.delete_incident_integration".to_owned(), false),
200198
("v2.delete_incident_notification_rule".to_owned(), false),
201199
("v2.delete_incident_notification_template".to_owned(), false),
@@ -208,7 +206,6 @@ impl Default for Configuration {
208206
("v2.get_incident_todo".to_owned(), false),
209207
("v2.get_incident_type".to_owned(), false),
210208
("v2.list_incident_attachments".to_owned(), false),
211-
("v2.list_incident_impacts".to_owned(), false),
212209
("v2.list_incident_integrations".to_owned(), false),
213210
("v2.list_incident_notification_rules".to_owned(), false),
214211
("v2.list_incident_notification_templates".to_owned(), false),
@@ -581,6 +578,7 @@ lazy_static! {
581578
"us3.datadoghq.com".into(),
582579
"us5.datadoghq.com".into(),
583580
"ap1.datadoghq.com".into(),
581+
"ap2.datadoghq.com".into(),
584582
"datadoghq.eu".into(),
585583
"ddog-gov.com".into(),
586584
],

src/datadogV2/api/api_incidents.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -901,14 +901,6 @@ impl IncidentsAPI {
901901
> {
902902
let local_configuration = &self.config;
903903
let operation_id = "v2.create_incident_impact";
904-
if local_configuration.is_unstable_operation_enabled(operation_id) {
905-
warn!("Using unstable operation {operation_id}");
906-
} else {
907-
let local_error = datadog::UnstableOperationDisabledError {
908-
msg: "Operation 'v2.create_incident_impact' is not enabled".to_string(),
909-
};
910-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
911-
}
912904

913905
// unbox and build optional parameters
914906
let include = params.include;
@@ -1995,14 +1987,6 @@ impl IncidentsAPI {
19951987
) -> Result<datadog::ResponseContent<()>, datadog::Error<DeleteIncidentImpactError>> {
19961988
let local_configuration = &self.config;
19971989
let operation_id = "v2.delete_incident_impact";
1998-
if local_configuration.is_unstable_operation_enabled(operation_id) {
1999-
warn!("Using unstable operation {operation_id}");
2000-
} else {
2001-
let local_error = datadog::UnstableOperationDisabledError {
2002-
msg: "Operation 'v2.delete_incident_impact' is not enabled".to_string(),
2003-
};
2004-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
2005-
}
20061990

20071991
let local_client = &self.client;
20081992

@@ -3537,14 +3521,6 @@ impl IncidentsAPI {
35373521
> {
35383522
let local_configuration = &self.config;
35393523
let operation_id = "v2.list_incident_impacts";
3540-
if local_configuration.is_unstable_operation_enabled(operation_id) {
3541-
warn!("Using unstable operation {operation_id}");
3542-
} else {
3543-
let local_error = datadog::UnstableOperationDisabledError {
3544-
msg: "Operation 'v2.list_incident_impacts' is not enabled".to_string(),
3545-
};
3546-
return Err(datadog::Error::UnstableOperationDisabledError(local_error));
3547-
}
35483524

35493525
// unbox and build optional parameters
35503526
let include = params.include;

tests/scenarios/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

0 commit comments

Comments
 (0)