Sha256: e4391ed51bf164b49043e330eb4cba41c0a4bff36f6930b739164cfb1d953a44

Contents?: true

Size: 712 Bytes

Versions: 29

Compression:

Stored size: 712 Bytes

Contents

# Get a list of security signals returns "OK" response with pagination

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

body = DatadogAPIClient::V2::SecurityMonitoringSignalListRequest.new({
  filter: DatadogAPIClient::V2::SecurityMonitoringSignalListRequestFilter.new({
    from: (Time.now + -15 * 60),
    query: "security:attack status:high",
    to: Time.now,
  }),
  page: DatadogAPIClient::V2::SecurityMonitoringSignalListRequestPage.new({
    limit: 2,
  }),
  sort: DatadogAPIClient::V2::SecurityMonitoringSignalsSort::TIMESTAMP_ASCENDING,
})
opts = {
  body: body,
}
api_instance.search_security_monitoring_signals_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/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.27.1 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.26.1 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.26.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.25.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.24.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.22.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.21.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.20.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.19.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.18.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.17.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.16.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.15.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.14.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.13.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.12.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.11.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.10.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb
datadog_api_client-2.9.0 examples/v2/security-monitoring/SearchSecurityMonitoringSignals_1309350146.rb