Sha256: 4128586f625c24d92d4a95efe38a003d6b16602eb9269fd36055adae59669035

Contents?: true

Size: 446 Bytes

Versions: 35

Compression:

Stored size: 446 Bytes

Contents

# Search test logs returns "OK" response

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

body = DatadogAPIClient::V1::LogsListRequest.new({
  index: "main",
  query: "host:Test*",
  sort: DatadogAPIClient::V1::LogsSort::TIME_ASCENDING,
  time: DatadogAPIClient::V1::LogsListRequestTime.new({
    from: (Time.now + -1 * 3600),
    timezone: "Europe/Paris",
    to: Time.now,
  }),
})
p api_instance.list_logs(body)

Version data entries

35 entries across 35 versions & 1 rubygems

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