Sha256: 950e95e8509c29de2e30960f73fcfa19f09749975958e72754bb31508c4179b3
Contents?: true
Size: 1003 Bytes
Versions: 4
Compression:
Stored size: 1003 Bytes
Contents
class Nagira < Sinatra::Base # @!macro [attach] sinatra.get # # @overload get "$1" # # @return HTTP response. Hash formatted in the format defined by # requested output type(XML, YAML or JSON). # ## # @method get_status_hostgroup # # Return full status of the hostgroup: including host status and # service status. # get "/_status/_hostgroup/:hostgroup" do |hostgroup| @data = Hostgroup.new(hostgroup).full nil end ## # @method get_status_hostgroup_service # # Endpoint: # - GET /_status/_hostgroup/:hostgroup/_service # get "/_status/_hostgroup/:hostgroup/_service" do |hostgroup| @data = Hostgroup.new(hostgroup).service_status nil end ## # @method get_status_hostgroup_host # @overload get("/_status/_hostgroup/:hostgroup/_host") # # Endpoint: # - GET /_status/_hostgroup/:host get "/_status/_hostgroup/:hostgroup/_host" do |hostgroup| @data = Hostgroup.new(hostgroup).host_status nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nagira-0.5.1 | app/get/status/hostgroups.rb |
nagira-0.5.0 | app/get/status/hostgroups.rb |
nagira-0.4.2 | app/get/status/hostgroups.rb |
nagira-0.4.1 | app/get/status/hostgroups.rb |