Everything is easier with Scout Client 2.0

June 09, 2008 by Derek

Posted in Updates | no comments Comments

We’ve released the 2nd version of our Scout client. What I love about this release is that it doesn’t make anything more complex or break compatibility with our first release. It just makes writing plugins easier.

For example – lets say you want to generate an alert. How’s this for simplicity?


class INeedASandwich < Scout::Plugin
  def build_report
     alert(:subject => "Get me a sandwich")
  end
end

We’ve also made the process for managing memory (data stored on the client between runs of the plugin) easier to work with. Memory is a great tool for storing state.

For example:


class INeedASandwich < Scout::Plugin
  def build_report
    if memory(:am_i_hungry)
      alert(:subject => "Get me a sandwich")
      remember(:am_i_hungry => false)
    else
      remember(:am_i_hungry => true)
    end
  end
end

As always, updating to the latest release is as simple as:

gem install scout [1]
gem install scout --source http://gems.scoutapp.com/

[1] Rubyforge is slow to update, in the meantime, use our gem server mirror

Comments

(leave url/email »)

  

Featured Plugins

  • Process Usage
    Monitors the memory usage of a process, generating an alert if it exceeds a specified threshold.
  • URL Monitoring
    Monitors the availability of a URL, sending an alert if the URL is not reachable.
  • Ruby on Rails Request Monitoring
    Monitors ALL requests to a Ruby on Rails web application, alerting when slow web requests occur. Reports the total number of requests, the number of slow requests, and the average execution time.
  • Server Load
    Monitors the load on server, generating an alert if the load over the last minute is greater than a specified amount.


Categories

Already have a Scout account?   Where do I login? Highgroove Studios Powered By Rails Machine