Sha256: cb3eac32dbf69690d7ed0afaf3c95c5d96bbaf18024b870d176a88312b3b6f86

Contents?: true

Size: 800 Bytes

Versions: 20

Compression:

Stored size: 800 Bytes

Contents

# Update an existing incident service returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.unstable_operations["v2.update_incident_service".to_sym] = true
end
api_instance = DatadogAPIClient::V2::IncidentServicesAPI.new

# there is a valid "service" in the system
SERVICE_DATA_ATTRIBUTES_NAME = ENV["SERVICE_DATA_ATTRIBUTES_NAME"]
SERVICE_DATA_ID = ENV["SERVICE_DATA_ID"]

body = DatadogAPIClient::V2::IncidentServiceUpdateRequest.new({
  data: DatadogAPIClient::V2::IncidentServiceUpdateData.new({
    type: DatadogAPIClient::V2::IncidentServiceType::SERVICES,
    attributes: DatadogAPIClient::V2::IncidentServiceUpdateAttributes.new({
      name: "service name-updated",
    }),
  }),
})
p api_instance.update_incident_service(SERVICE_DATA_ID, body)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.28.1 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.27.1 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.26.1 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.26.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.25.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.24.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.22.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.21.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.20.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.19.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.18.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.17.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.16.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.15.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.14.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.13.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.12.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.11.0 examples/v2/incident-services/UpdateIncidentService.rb
datadog_api_client-2.10.0 examples/v2/incident-services/UpdateIncidentService.rb