Module: Icinga2::Actions
- Included in:
- Client
- Defined in:
- lib/icinga2/actions.rb
Overview
namespace for action handling
There are several actions available for Icinga 2 provided by the /v1/actions URL endpoint.
original API Documentation: www.icinga.com/docs/icinga2/latest/doc/12-icinga2-api/#actions
Instance Method Summary collapse
-
#restart_process ⇒ Hash
Restarts Icinga2.
-
#shutdown_process ⇒ Hash
Shuts down Icinga2.
Instance Method Details
#restart_process ⇒ Hash
Restarts Icinga2.
138 139 140 141 142 143 144 |
# File 'lib/icinga2/actions.rb', line 138 def restart_process post( url: format('%s/actions/restart-process', @icinga_api_url_base), headers: @headers, options: @options ) end |
#shutdown_process ⇒ Hash
Shuts down Icinga2.
123 124 125 126 127 128 129 |
# File 'lib/icinga2/actions.rb', line 123 def shutdown_process post( url: format('%s/actions/shutdown-process', @icinga_api_url_base), headers: @headers, options: @options ) end |