Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67941,6 +67941,7 @@ paths:
- us3.datadoghq.com
- us5.datadoghq.com
- ap1.datadoghq.com
- ap2.datadoghq.com
- datadoghq.eu
- ddog-gov.com
subdomain:
Expand Down Expand Up @@ -69008,9 +69009,6 @@ paths:
operator: OR
permissions:
- incident_read
x-unstable: '**Note**: This endpoint is in Preview.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
post:
description: Create an impact for an incident.
operationId: CreateIncidentImpact
Expand Down Expand Up @@ -69054,9 +69052,6 @@ paths:
operator: OR
permissions:
- incident_write
x-unstable: '**Note**: This endpoint is in Preview.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/incidents/{incident_id}/impacts/{impact_id}:
delete:
description: Delete an incident impact.
Expand Down Expand Up @@ -69087,9 +69082,6 @@ paths:
operator: OR
permissions:
- incident_write
x-unstable: '**Note**: This endpoint is in Preview.

If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help/).'
/api/v2/incidents/{incident_id}/relationships/integrations:
get:
description: Get all integration metadata for an incident.
Expand Down
6 changes: 2 additions & 4 deletions features/v2/incidents.feature
Original file line number Diff line number Diff line change
Expand Up @@ -806,16 +806,14 @@ Feature: Incidents

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

@generated @skip @team:DataDog/incident-app
Scenario: List an incident's impacts returns "Not Found" response
Given operation "ListIncidentImpacts" enabled
And new "ListIncidentImpacts" request
Given new "ListIncidentImpacts" request
And request contains "incident_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found
Expand Down
4 changes: 1 addition & 3 deletions lib/datadog_api_client/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,12 @@ def initialize
"v2.update_deployment_gate": false,
"v2.update_deployment_rule": false,
"v2.create_incident": false,
"v2.create_incident_impact": false,
"v2.create_incident_integration": false,
"v2.create_incident_notification_rule": false,
"v2.create_incident_notification_template": false,
"v2.create_incident_todo": false,
"v2.create_incident_type": false,
"v2.delete_incident": false,
"v2.delete_incident_impact": false,
"v2.delete_incident_integration": false,
"v2.delete_incident_notification_rule": false,
"v2.delete_incident_notification_template": false,
Expand All @@ -269,7 +267,6 @@ def initialize
"v2.get_incident_todo": false,
"v2.get_incident_type": false,
"v2.list_incident_attachments": false,
"v2.list_incident_impacts": false,
"v2.list_incident_integrations": false,
"v2.list_incident_notification_rules": false,
"v2.list_incident_notification_templates": false,
Expand Down Expand Up @@ -627,6 +624,7 @@ def operation_server_settings
"us3.datadoghq.com",
"us5.datadoghq.com",
"ap1.datadoghq.com",
"ap2.datadoghq.com",
"datadoghq.eu",
"ddog-gov.com"
]
Expand Down
18 changes: 0 additions & 18 deletions lib/datadog_api_client/v2/api/incidents_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,6 @@ def create_incident_impact(incident_id, body, opts = {})
# @option opts [Array<IncidentImpactRelatedObject>] :include Specifies which related resources should be included in the response.
# @return [Array<(IncidentImpactResponse, Integer, Hash)>] IncidentImpactResponse data, response status code and response headers
def create_incident_impact_with_http_info(incident_id, body, opts = {})
unstable_enabled = @api_client.config.unstable_operations["v2.create_incident_impact".to_sym]
if unstable_enabled
@api_client.config.logger.warn format("Using unstable operation '%s'", "v2.create_incident_impact")
else
raise DatadogAPIClient::APIError.new(message: format("Unstable operation '%s' is disabled", "v2.create_incident_impact"))
end

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

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

if @api_client.config.debugging
@api_client.config.logger.debug 'Calling API: IncidentsAPI.list_incident_impacts ...'
Expand Down
Loading