Sha256: 467b25e953bdb6ec15441e4982f3cb8866d98a6b9f02cb6b30957abb103c7ac0

Contents?: true

Size: 541 Bytes

Versions: 9

Compression:

Stored size: 541 Bytes

Contents

# Update an index returns "OK" response

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

body = DatadogAPIClient::V1::LogsIndexUpdateRequest.new({
  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",
  }),
})
p api_instance.update_logs_index("name", body)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datadog_api_client-2.3.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.2.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.1.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.0.2 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.0.1 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-2.0.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-1.11.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-1.10.0 examples/v1/logs-indexes/UpdateLogsIndex.rb
datadog_api_client-1.9.0 examples/v1/logs-indexes/UpdateLogsIndex.rb