Sha256: a9726c48aec2a068c90fe60a8c1b7d78454d74d2b740e755bc9756b740e4668b

Contents?: true

Size: 649 Bytes

Versions: 29

Compression:

Stored size: 649 Bytes

Contents

# Search Audit Logs events returns "OK" response with pagination

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::AuditAPI.new

body = DatadogAPIClient::V2::AuditLogsSearchEventsRequest.new({
  filter: DatadogAPIClient::V2::AuditLogsQueryFilter.new({
    from: "now-15m",
    to: "now",
  }),
  options: DatadogAPIClient::V2::AuditLogsQueryOptions.new({
    timezone: "GMT",
  }),
  page: DatadogAPIClient::V2::AuditLogsQueryPageOptions.new({
    limit: 2,
  }),
  sort: DatadogAPIClient::V2::AuditLogsSort::TIMESTAMP_ASCENDING,
})
opts = {
  body: body,
}
api_instance.search_audit_logs_with_pagination(opts) { |item| puts item }

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.27.1 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.26.1 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.26.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.25.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.24.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.22.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.21.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.20.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.19.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.18.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.17.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.16.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.15.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.14.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.13.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.12.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.11.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.10.0 examples/v2/audit/SearchAuditLogs_3215529662.rb
datadog_api_client-2.9.0 examples/v2/audit/SearchAuditLogs_3215529662.rb