Sha256: 83ed7160f2f3ab1d1b87a5f7362c53bb45a4befad14bcf0fb5ef2ab562d83222
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
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). # require 'pry' register Sinatra::Namespace namespace "/_status/_hostgroup" do ## # @method get_status_hostgroup # # Return full status of the hostgroup: including host status and # service status. # get "/:hostgroup" do |hostgroup| @data = Hostgroup.new(hostgroup).full nil end ## # @method get_status_hostgroup_service # # Endpoint: # - GET /_status/_hostgroup/:hostgroup/_service # get "/: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 "/:hostgroup/_host" do |hostgroup| @data = Hostgroup.new(hostgroup).host_status nil end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nagira-0.4.0 | app/get/status/hostgroups.rb |