examples/generated/v2/incidents/UpdateIncident.rb in datadog_api_client-1.7.0 vs examples/generated/v2/incidents/UpdateIncident.rb in datadog_api_client-1.8.0
- old
+ new
@@ -5,13 +5,16 @@
end
api_instance = DatadogAPIClient::V2::IncidentsAPI.new
incident_id = "incident_id_example" # String | The UUID of the incident.
body = DatadogAPIClient::V2::IncidentUpdateRequest.new({ data: DatadogAPIClient::V2::IncidentUpdateData.new({ id: "00000000-0000-0000-4567-000000000000", type: DatadogAPIClient::V2::IncidentType::INCIDENTS }) }) # IncidentUpdateRequest | Incident Payload.
+opts = {
+ include: [DatadogAPIClient::V2::IncidentRelatedObject::USERS], # Array<IncidentRelatedObject> | Specifies which types of related objects should be included in the response.
+}
begin
# Update an existing incident
- result = api_instance.update_incident(incident_id, body)
+ result = api_instance.update_incident(incident_id, body, opts)
p result
rescue DatadogAPIClient::V2::APIError => e
puts "Error when calling IncidentsAPI->update_incident: #{e}"
end