Class: ActiveEndpoint::ProbesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/active_endpoint/probes_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



17
18
19
20
# File 'app/controllers/active_endpoint/probes_controller.rb', line 17

def destroy
  ActiveEndpoint::Probe.find(params[:id]).destroy
  redirect_to :back
end

#indexObject



5
6
7
# File 'app/controllers/active_endpoint/probes_controller.rb', line 5

def index
  @probes_group = ActiveEndpoint::Probe.group_by_endpoint
end

#showObject



9
10
11
# File 'app/controllers/active_endpoint/probes_controller.rb', line 9

def show
  @probes = ActiveEndpoint::Probe.where(endpoint: params[:id])
end

#show_responseObject



13
14
15
# File 'app/controllers/active_endpoint/probes_controller.rb', line 13

def show_response
  @probe = ActiveEndpoint::Probe.find(params[:probe_id])
end