summaryrefslogtreecommitdiffstats
path: root/health-controller.lua
blob: 72838e15751f763e5b27ed769d7c8bdf36b0f746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module (..., package.seeall)

default_action = "system"

-- Public methods

system = function (self )
	return ({system = self.model:get_system(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end

storage = function (self )
	return ({storage = self.model:get_storage(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end

network = function (self )
	return ({network = self.model:get_network(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end

modules = function (self )
	return ({modules = self.model:get_modules(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end

proc = function (self )
	return ({proc = self.model:get_proc(), url = self.conf.script .. self.conf.prefix .. self.conf.controller} )
end