Module: NRRC::Routes::Applications
Class Method Summary
collapse
Methods included from Helpers
create_action, delete_action, get_action, put_action, url
Methods included from Common
list, show
metric_data, metric_names
delete, update
Class Method Details
.create_event(id, data) ⇒ Object
24
25
26
27
28
29
|
# 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 = {}) ⇒ Object
31
32
33
|
# 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) ⇒ Object
35
36
37
|
# 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) ⇒ Object
20
21
22
|
# 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 = {}) ⇒ Object
12
13
14
|
# 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) ⇒ Object
16
17
18
|
# 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
|