Sha256: 40852f211607a312c58122dd5b605bdaecddc5d63bbfa917ba68f5d0cfab5e01
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V2::LogsAPI.new body = [DatadogAPIClient::V2::HTTPLogItem.new] # Array<HTTPLogItem> | Log to send (JSON format). opts = { content_encoding: DatadogAPIClient::V2::ContentEncoding::GZIP, # ContentEncoding | HTTP header used to compress the media-type. ddtags: "env:prod,user:my-user", # String | Log tags can be passed as query parameters with `text/plain` content type. } begin # Send logs result = api_instance.submit_log(body, opts) p result rescue DatadogAPIClient::V2::APIError => e puts "Error when calling LogsAPI->submit_log: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v2/logs/SubmitLog.rb |