class Reliquary::API::KeyTransactions
Constants
- METHOD_PARAMS
How to parameterize queries against
API
endpoint These are for parameters to be added to the query; some endpointsrequire additional parameters to build the URI fragment.
- URI_FRAGMENT
URI fragment for
Applications
API
endpoint- URI_METHOD
URI method for
Applications
API
endpoint
Public Instance Methods
list(params = {})
click to toggle source
@!method list List key transactions, optionally filtering by name or ID @param [Hash] params parameters for listing @option [String] :name New Relic key transaction name to select @option [Array<String>] :ids New Relic key transaction policy IDs to select
# File lib/reliquary/api/key_transactions.rb, line 39 def list(params = {}) begin # this is the "default" Key Transactions method, no overrides api_params = {} execute(api_params, {:params => process_request_params(__method__, params)}) rescue StandardError => e raise e end end
show(params = {})
click to toggle source
@!method show Show summary for a single key transaction @param [Hash] params parameters for listing @option params [Integer] :id New Relic key transaction ID
# File lib/reliquary/api/key_transactions.rb, line 55 def show(params = {}) begin id = retrieve_id(params) # HTTP method is the default GET # override the URI fragment api_params = { :uri_fragment => "key_transactions/#{id}.json" } execute(api_params, {:params => process_request_params(__method__, params)}) rescue StandardError => e raise e end end