Sha256: 143ceb7ba3743c94db972a60619b669fc09fa6b50c09e3df99b9ae933d9100f5

Contents?: true

Size: 623 Bytes

Versions: 16

Compression:

Stored size: 623 Bytes

Contents

# Update an index returns "OK" response

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

body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({
  daily_limit: 300000000,
  disable_daily_limit: false,
  exclusion_filters: [
    DatadogAPIClient::V1::LogsExclusion.new({
      filter: DatadogAPIClient::V1::LogsExclusionFilter.new({
        query: "*",
        sample_rate: 1.0,
      }),
      name: "payment",
    }),
  ],
  filter: DatadogAPIClient::V1::LogsFilter.new({
    query: "source:python",
  }),
  num_retention_days: 15,
})
p api_instance.update_logs_index("name", body)

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
datadog_api_client-2.19.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.18.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.17.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.16.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.15.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.14.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.13.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.12.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.11.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.10.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.9.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.8.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.7.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.6.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.5.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.4.0 examples/v1/logs-indexes/UpdateLogsIndex.rb