examples/v2/incidents/UpdateIncident.rb in datadog_api_client-1.11.0 vs examples/v2/incidents/UpdateIncident.rb in datadog_api_client-2.0.0
- old
+ new
@@ -1,9 +1,9 @@
# Update an existing incident returns "OK" response
require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
- config.unstable_operations[:update_incident] = true
+ config.unstable_operations["v2.update_incident".to_sym] = true
end
api_instance = DatadogAPIClient::V2::IncidentsAPI.new
# there is a valid "incident" in the system
INCIDENT_DATA_ATTRIBUTES_TITLE = ENV["INCIDENT_DATA_ATTRIBUTES_TITLE"]