Sha256: 7dc416350ac354d2d1836b2ee6e42647460954bef23b178f382eceba42b62566

Contents?: true

Size: 357 Bytes

Versions: 10

Compression:

Stored size: 357 Bytes

Contents

# Get a list of incidents returns "OK" response with pagination

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations["v2.list_incidents".to_sym] = true
end
api_instance = DatadogAPIClient::V2::IncidentsAPI.new
opts = {
  page_size: 2,
}
api_instance.list_incidents_with_pagination(opts) { |item| puts item }

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.9.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.8.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.7.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.6.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.5.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.4.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.3.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.2.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.1.0 examples/v2/incidents/ListIncidents_2665616954.rb
datadog_api_client-2.0.2 examples/v2/incidents/ListIncidents_2665616954.rb