Module: Sensu::API::Routes
- Includes:
- Aggregates, Checks, Clients, Events, Health, Info, Request, Resolve, Results, Settings, Silenced, Stashes
- Included in:
- HTTPHandler
- Defined in:
- lib/sensu/api/routes.rb,
lib/sensu/api/routes/info.rb,
lib/sensu/api/routes/checks.rb,
lib/sensu/api/routes/events.rb,
lib/sensu/api/routes/health.rb,
lib/sensu/api/routes/clients.rb,
lib/sensu/api/routes/request.rb,
lib/sensu/api/routes/resolve.rb,
lib/sensu/api/routes/results.rb,
lib/sensu/api/routes/stashes.rb,
lib/sensu/api/routes/settings.rb,
lib/sensu/api/routes/silenced.rb,
lib/sensu/api/routes/aggregates.rb
Defined Under Namespace
Modules: Aggregates, Checks, Clients, Events, Health, Info, Request, Resolve, Results, Settings, Silenced, Stashes
Constant Summary collapse
- GET_METHOD =
"GET".freeze
- HEAD_METHOD =
"HEAD".freeze
- POST_METHOD =
"POST".freeze
- DELETE_METHOD =
"DELETE".freeze
- OPTIONS_METHOD =
"OPTIONS".freeze
- GET_ROUTES =
[ [SETTINGS_URI, :get_settings], [INFO_URI, :get_info], [HEALTH_URI, :get_health], [CLIENTS_URI, :get_clients], [CLIENT_URI, :get_client], [CLIENT_HISTORY_URI, :get_client_history], [CHECKS_URI, :get_checks], [CHECK_URI, :get_check], [EVENTS_URI, :get_events], [EVENTS_CLIENT_URI, :get_events_client], [EVENT_URI, :get_event], [AGGREGATES_URI, :get_aggregates], [AGGREGATE_URI, :get_aggregate], [AGGREGATE_CLIENTS_URI, :get_aggregate_clients], [AGGREGATE_CHECKS_URI, :get_aggregate_checks], [AGGREGATE_RESULTS_SEVERITY_URI, :get_aggregate_results_severity], [STASHES_URI, :get_stashes], [STASH_URI, :get_stash], [RESULTS_URI, :get_results], [RESULTS_CLIENT_URI, :get_results_client], [RESULT_URI, :get_result], [SILENCED_URI, :get_silenced], [SILENCED_ID_URI, :get_silenced_id], [SILENCED_SUBSCRIPTION_URI, :get_silenced_subscription], [SILENCED_CHECK_URI, :get_silenced_check] ]
- ROUTES =
{ GET_METHOD => GET_ROUTES, HEAD_METHOD => GET_ROUTES, POST_METHOD => [ [CLIENTS_URI, :post_clients], [REQUEST_URI, :post_request], [RESOLVE_URI, :post_resolve], [STASHES_URI, :post_stashes], [STASH_URI, :post_stash], [RESULTS_URI, :post_results], [SILENCED_URI, :post_silenced], [SILENCED_CLEAR_URI, :post_silenced_clear] ], DELETE_METHOD => [ [CLIENT_URI, :delete_client], [EVENT_URI, :delete_event], [AGGREGATE_URI, :delete_aggregate], [STASH_URI, :delete_stash], [RESULT_URI, :delete_result] ] }
Constants included from Silenced
Silenced::SILENCED_CHECK_URI, Silenced::SILENCED_CLEAR_URI, Silenced::SILENCED_ID_URI, Silenced::SILENCED_SUBSCRIPTION_URI, Silenced::SILENCED_URI
Constants included from Results
Results::RESULTS_CLIENT_URI, Results::RESULTS_URI, Results::RESULT_URI
Constants included from Stashes
Stashes::STASHES_URI, Stashes::STASH_URI
Constants included from Aggregates
Aggregates::AGGREGATES_URI, Aggregates::AGGREGATE_CHECKS_URI, Aggregates::AGGREGATE_CLIENTS_URI, Aggregates::AGGREGATE_RESULTS_SEVERITY_URI, Aggregates::AGGREGATE_URI
Constants included from Resolve
Constants included from Events
Events::EVENTS_CLIENT_URI, Events::EVENTS_URI, Events::EVENT_URI
Constants included from Request
Constants included from Checks
Checks::CHECKS_URI, Checks::CHECK_URI
Constants included from Clients
Clients::CLIENTS_URI, Clients::CLIENT_HISTORY_URI, Clients::CLIENT_URI
Constants included from Health
Constants included from Info
Constants included from Settings
Method Summary
Methods included from Silenced
#fetch_silenced, #get_silenced, #get_silenced_check, #get_silenced_id, #get_silenced_subscription, #post_silenced, #post_silenced_clear
Methods included from Results
#delete_result, #get_result, #get_results, #get_results_client, #post_results
Methods included from Stashes
#delete_stash, #get_stash, #get_stashes, #post_stash, #post_stashes
Methods included from Aggregates
#delete_aggregate, #get_aggregate, #get_aggregate_checks, #get_aggregate_clients, #get_aggregate_results_severity, #get_aggregates
Methods included from Resolve
Methods included from Events
#delete_event, #get_event, #get_events, #get_events_client
Methods included from Request
Methods included from Checks
Methods included from Clients
#delete_client, #get_client, #get_client_history, #get_clients, #post_clients