Sha256: ed941fb42f32e409aeb2329e5099189d9046af15f8cca5f44e39635a8d28bfe6
Contents?: true
Size: 839 Bytes
Versions: 2
Compression:
Stored size: 839 Bytes
Contents
# Update an incident type returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.update_incident_type".to_sym] = true end api_instance = DatadogAPIClient::V2::IncidentsAPI.new # there is a valid "incident_type" in the system INCIDENT_TYPE_DATA_ATTRIBUTES_NAME = ENV["INCIDENT_TYPE_DATA_ATTRIBUTES_NAME"] INCIDENT_TYPE_DATA_ID = ENV["INCIDENT_TYPE_DATA_ID"] body = DatadogAPIClient::V2::IncidentTypePatchRequest.new({ data: DatadogAPIClient::V2::IncidentTypePatchData.new({ id: INCIDENT_TYPE_DATA_ID, attributes: DatadogAPIClient::V2::IncidentTypeUpdateAttributes.new({ name: "Security Incident-updated", }), type: DatadogAPIClient::V2::IncidentTypeType::INCIDENT_TYPES, }), }) p api_instance.update_incident_type(INCIDENT_TYPE_DATA_ID, body)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v2/incidents/UpdateIncidentType.rb |
datadog_api_client-2.28.1 | examples/v2/incidents/UpdateIncidentType.rb |