Skip to content

Commit 2d87463

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark Incident Impact Endpoints stable (#2840)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 23e952c commit 2d87463

File tree

4 files changed

+4
-34
lines changed

4 files changed

+4
-34
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

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,14 +249,12 @@ def initialize
249249
"v2.update_deployment_gate": false,
250250
"v2.update_deployment_rule": false,
251251
"v2.create_incident": false,
252-
"v2.create_incident_impact": false,
253252
"v2.create_incident_integration": false,
254253
"v2.create_incident_notification_rule": false,
255254
"v2.create_incident_notification_template": false,
256255
"v2.create_incident_todo": false,
257256
"v2.create_incident_type": false,
258257
"v2.delete_incident": false,
259-
"v2.delete_incident_impact": false,
260258
"v2.delete_incident_integration": false,
261259
"v2.delete_incident_notification_rule": false,
262260
"v2.delete_incident_notification_template": false,
@@ -269,7 +267,6 @@ def initialize
269267
"v2.get_incident_todo": false,
270268
"v2.get_incident_type": false,
271269
"v2.list_incident_attachments": false,
272-
"v2.list_incident_impacts": false,
273270
"v2.list_incident_integrations": false,
274271
"v2.list_incident_notification_rules": false,
275272
"v2.list_incident_notification_templates": false,
@@ -627,6 +624,7 @@ def operation_server_settings
627624
"us3.datadoghq.com",
628625
"us5.datadoghq.com",
629626
"ap1.datadoghq.com",
627+
"ap2.datadoghq.com",
630628
"datadoghq.eu",
631629
"ddog-gov.com"
632630
]

lib/datadog_api_client/v2/api/incidents_api.rb

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ def create_incident_impact(incident_id, body, opts = {})
114114
# @option opts [Array<IncidentImpactRelatedObject>] :include Specifies which related resources should be included in the response.
115115
# @return [Array<(IncidentImpactResponse, Integer, Hash)>] IncidentImpactResponse data, response status code and response headers
116116
def create_incident_impact_with_http_info(incident_id, body, opts = {})
117-
unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_impact".to_sym]
118-
if unstable_enabled
119-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_impact")
120-
else
121-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_incident_impact"))
122-
end
123117

124118
if @api_client.config.debugging
125119
@api_client.config.logger.debug 'Calling API: IncidentsAPI.create_incident_impact ...'
@@ -639,12 +633,6 @@ def delete_incident_impact(incident_id, impact_id, opts = {})
639633
# @param opts [Hash] the optional parameters
640634
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
641635
def delete_incident_impact_with_http_info(incident_id, impact_id, opts = {})
642-
unstable_enabled = @api_client.config.unstable_operations["v2.delete_incident_impact".to_sym]
643-
if unstable_enabled
644-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.delete_incident_impact")
645-
else
646-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.delete_incident_impact"))
647-
end
648636

649637
if @api_client.config.debugging
650638
@api_client.config.logger.debug 'Calling API: IncidentsAPI.delete_incident_impact ...'
@@ -1601,12 +1589,6 @@ def list_incident_impacts(incident_id, opts = {})
16011589
# @option opts [Array<IncidentImpactRelatedObject>] :include Specifies which related resources should be included in the response.
16021590
# @return [Array<(IncidentImpactsResponse, Integer, Hash)>] IncidentImpactsResponse data, response status code and response headers
16031591
def list_incident_impacts_with_http_info(incident_id, opts = {})
1604-
unstable_enabled = @api_client.config.unstable_operations["v2.list_incident_impacts".to_sym]
1605-
if unstable_enabled
1606-
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.list_incident_impacts")
1607-
else
1608-
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.list_incident_impacts"))
1609-
end
16101592

16111593
if @api_client.config.debugging
16121594
@api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_impacts ...'

0 commit comments

Comments
 (0)