Sha256: 0ce2cfd926c4a27a585377e4fbffb48d4916929837c0875829520d88969e855d
Contents?: true
Size: 735 Bytes
Versions: 1
Compression:
Stored size: 735 Bytes
Contents
require "datadog_api_client" DatadogAPIClient::V2.configure do |config| config.unstable_operations[:update_incident] = true 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. begin # Update an existing incident result = api_instance.update_incident(incident_id, body) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling IncidentsAPI->update_incident: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v2/incidents/UpdateIncident.rb |