--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  name: above
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: pid_file
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: times
  rw: RW
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Condition Symbol :cpu_usage Type: Poll"
- !ruby/struct:SM::Flow::P 
  body: Trigger when the percent of CPU use of a process is above a specified limit. On multi-core systems, this number could conceivably be above 100.
- !ruby/struct:SM::Flow::P 
  body: Paramaters
- !ruby/struct:SM::Flow::VERB 
  body: "  Required\n    <tt>pid_file</tt> is the pid file of the process in question. Automatically\n               populated for Watches.\n    <tt>above</tt> is the percent CPU above which to trigger the condition. You\n            may use #percent to clarify this amount (see examples).\n"
- !ruby/struct:SM::Flow::P 
  body: Examples
- !ruby/struct:SM::Flow::P 
  body: "Trigger if the process is using more than 25 percent of the cpu (from a Watch):"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:cpu_usage) do |c|\n    c.above = 25.percent\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "Non-Watch Tasks must specify a PID file:"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:cpu_usage) do |c|\n    c.above = 25.percent\n    c.pid_file = &quot;/var/run/mongrel.3000.pid&quot;\n  end\n"
constants: []

full_name: God::Conditions::CpuUsage
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: pid
- !ruby/object:RI::MethodSummary 
  name: prepare
- !ruby/object:RI::MethodSummary 
  name: reset
- !ruby/object:RI::MethodSummary 
  name: test
- !ruby/object:RI::MethodSummary 
  name: valid?
name: CpuUsage
superclass: PollCondition
