Sha256: 84ab2ff3b76f47ad020caab2cf29af06752936da50892dae8d2e2542a16a90d4

Contents?: true

Size: 451 Bytes

Versions: 20

Compression:

Stored size: 451 Bytes

Contents

# Post an event with a long title returns "OK" response

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

body = DatadogAPIClient::V1::EventCreateRequest.new({
  title: "Example-Event very very very looooooooong looooooooooooong loooooooooooooooooooooong looooooooooooooooooooooooooong title with 100+ characters",
  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_19927815.rb
datadog_api_client-2.28.1 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.27.1 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.26.1 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.26.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.25.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.24.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.22.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.21.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.20.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.19.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.18.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.17.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.16.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.15.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.14.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.13.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.12.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.11.0 examples/v1/events/CreateEvent_19927815.rb
datadog_api_client-2.10.0 examples/v1/events/CreateEvent_19927815.rb