* luci/statistics: complete cbi model translation
[project/luci.git] / applications / luci-statistics / luasrc / model / cbi / luci_statistics / irq.lua
1 --[[
2
3 Luci configuration model for statistics - collectd irq plugin configuration
4 (c) 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
5
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13
14 ]]--
15
16 m = Map("luci_statistics")
17
18 -- collectd_irq config section
19 s = m:section( NamedSection, "collectd_irq", "luci_statistics" )
20
21 -- collectd_irq.enable
22 enable = s:option( Flag, "enable" )
23 enable.default = 0
24
25 -- collectd_irq.irqs (Irq)
26 irqs = s:option( Value, "Irqs" )
27 irqs.optional = true
28 irqs:depends( "enable", 1 )
29
30 -- collectd_irq.ignoreselected (IgnoreSelected)
31 ignoreselected = s:option( Flag, "IgnoreSelected" )
32 ignoreselected.default  = 0
33 ignoreselected.optional = "true"
34 ignoreselected:depends( "enable", 1 )
35
36 return m