Sha256: 463f87c0e116750c015476265cee6bbd4df4a9407a5e8324e616fea1caf71ee5

Contents?: true

Size: 304 Bytes

Versions: 20

Compression:

Stored size: 304 Bytes

Contents

# Post an event returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::EventsAPI.new

body = DatadogAPIClient::V1::EventCreateRequest.new({
  title: "Example-Event",
  text: "A text message.",
  tags: [
    "test:ExampleEvent",
  ],
})
p api_instance.create_event(body)

Version data entries

20 entries across 20 versions & 1 rubygems

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