Method: Sensu::Server::Tessen#get_client_count
- Defined in:
- lib/sensu/server/tessen.rb
#get_client_count {|count| ... } ⇒ Object
Get the Sensu client count for the installation. This count currently includes proxy clients.
120 121 122 123 124 |
# File 'lib/sensu/server/tessen.rb', line 120 def get_client_count @redis.scard("clients") do |count| yield count.to_i end end |