Sha256: 89ff82d5960c4968e934eb4a9e435bc9f4dfb175b3530a69552e698069981ca8

Contents?: true

Size: 680 Bytes

Versions: 1

Compression:

Stored size: 680 Bytes

Contents

require "datadog_api_client"

DatadogAPIClient::V2.configure do |config|
  config.unstable_operations[:create_incident_service] = true
end

api_instance = DatadogAPIClient::V2::IncidentServicesAPI.new
body = DatadogAPIClient::V2::IncidentServiceCreateRequest.new({ data: DatadogAPIClient::V2::IncidentServiceCreateData.new({ type: DatadogAPIClient::V2::IncidentServiceType::SERVICES }) }) # IncidentServiceCreateRequest | Incident Service Payload.

begin
  # Create a new incident service
  result = api_instance.create_incident_service(body)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling IncidentServicesAPI->create_incident_service: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v2/incident-services/CreateIncidentService.rb