Sha256: abe2703b03f93231fcfd80b3ef8399ea12a91ddf6785ba6411fa607243d7daa3
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V1::EventsAPI.new body = DatadogAPIClient::V1::EventCreateRequest.new({ text: "Oh boy!", title: "Did you hear the news today?" }) # EventCreateRequest | Event request object begin # Post an event result = api_instance.create_event(body) p result rescue DatadogAPIClient::V1::APIError => e puts "Error when calling EventsAPI->create_event: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v1/events/CreateEvent.rb |