Sha256: ba5f3e252bb40af7bb041828efa054330aef2fd8934e66da9a7fd54f7778cb25

Contents?: true

Size: 635 Bytes

Versions: 7

Compression:

Stored size: 635 Bytes

Contents

# Create a new incident team returns "CREATED" response

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations[:create_incident_team] = true
end
api_instance = DatadogAPIClient::V2::IncidentTeamsAPI.new

body = DatadogAPIClient::V2::IncidentTeamCreateRequest.new({
  data: DatadogAPIClient::V2::IncidentTeamCreateData.new({
    type: DatadogAPIClient::V2::IncidentTeamType::TEAMS,
    attributes: DatadogAPIClient::V2::IncidentTeamCreateAttributes.new({
      name: "Example-Create_a_new_incident_team_returns_CREATED_response",
    }),
  }),
})
p api_instance.create_incident_team(body)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog_api_client-1.11.0 examples/v2/incident-teams/CreateIncidentTeam.rb
datadog_api_client-1.10.0 examples/v2/incident-teams/CreateIncidentTeam.rb
datadog_api_client-1.9.0 examples/v2/incident-teams/CreateIncidentTeam.rb
datadog_api_client-1.8.0 examples/v2/incident-teams/CreateIncidentTeam.rb
datadog_api_client-1.7.0 examples/v2/incident-teams/CreateIncidentTeam.rb
datadog_api_client-1.6.0 examples/v2/incident-teams/CreateIncidentTeam.rb
datadog_api_client-1.5.0 examples/v2/incident-teams/CreateIncidentTeam.rb