Module: Watchman

Included in:
CPUUsage, DiskUsage, Nginx, Redis, SystemInfo, Twemproxy, Unicorns, Uptime
Defined in:
lib/city_watch/util/watchman.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/city_watch/util/watchman.rb', line 73

def self.included(base)
	base.extend(ClassMethods)
	base.extend(Alerts)
	base.add_post_processor base.method(:send_alerts!)
	base.extend(Rules)
	base.add_post_processor base.method(:run_rules)
	base.extend(Flags)
	base.extend(Notifications)
	base.extend(DataSets)
	base.add_post_processor base.method(:run_dataset_collector)
	base.extend(Status)
	Watchmen.register(base)
end

Instance Method Details

#dataObject



10
11
12
# File 'lib/city_watch/util/watchman.rb', line 10

def data
	{}
end