module NRRC::Routes::Applications
Public Class Methods
create_event(id, data)
click to toggle source
# File lib/new_relic_rest_client/routes/applications.rb, line 24 def create_event id, data create_action( payload: data, url: "#{url id}/events.json" ) end
downtime_list(id, params={})
click to toggle source
# File lib/new_relic_rest_client/routes/applications.rb, line 31 def downtime_list id, params={} get_action({url: "#{url id}/target_downtime_events.json"},params) end
downtime_show(id,event_id)
click to toggle source
# File lib/new_relic_rest_client/routes/applications.rb, line 35 def downtime_show id,event_id get_action(url: "#{url id}/target_downtime_events/#{event_id}.json") end
event_close(id, event_id)
click to toggle source
# File lib/new_relic_rest_client/routes/applications.rb, line 20 def event_close id, event_id put_action(url: "#{url id}/events/#{event_id}/close.json") end
event_list(id, params={})
click to toggle source
# File lib/new_relic_rest_client/routes/applications.rb, line 12 def event_list id, params={} get_action({url: "#{url id}/events.json"},params) end
event_show(id,event_id)
click to toggle source
# File lib/new_relic_rest_client/routes/applications.rb, line 16 def event_show id,event_id get_action(url: "#{url id}/events/#{event_id}.json") end