Sha256: f8e0a479e0243f057c03b167377840051ff0f04e6780d0145af9a3333bf5dbe6

Contents?: true

Size: 1.23 KB

Versions: 1

Compression:

Stored size: 1.23 KB

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::ProcessesAPI.new
opts = {
  search: "search_example", # String | String to search processes by.
  tags: "account:prod,user:admin", # String | Comma-separated list of tags to filter processes by.
  from: 789, # Integer | Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window will be 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`.
  to: 789, # Integer | Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window will be 15 minutes after the `from` timestamp. If neither `from` nor `to` are provided, the query window will be `[now - 15m, now]`.
  page_limit: 56, # Integer | Maximum number of results returned.
  page_cursor: "page_cursor_example", # String | String to query the next page of results. This key is provided with each valid response from the API in `meta.page.after`.
}

begin
  # Get all processes
  result = api_instance.list_processes(opts)
  p result
rescue DatadogAPIClient::V2::APIError => e
  puts "Error when calling ProcessesAPI->list_processes: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v2/processes/ListProcesses.rb