Globally reduce copyright headers
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / irq.lua
1 -- Copyright 2008 Freifunk Leipzig / Jo-Philipp Wich <xm@leipzig.freifunk.net>
2 -- Licensed to the public under the Apache License 2.0.
3
4 m = Map("luci_statistics",
5         translate("IRQ Plugin Configuration"),
6         translate(
7                 "The irq plugin will monitor the rate of issues per second for " ..
8                 "each selected interrupt. If no interrupt is selected then all " ..
9                 "interrupts are monitored."
10         ))
11
12 -- collectd_irq config section
13 s = m:section( NamedSection, "collectd_irq", "luci_statistics" )
14
15 -- collectd_irq.enable
16 enable = s:option( Flag, "enable", translate("Enable this plugin") )
17 enable.default = 0
18
19 -- collectd_irq.irqs (Irq)
20 irqs = s:option( Value, "Irqs", translate("Monitor interrupts") )
21 irqs.optional = true
22 irqs:depends( "enable", 1 )
23
24 -- collectd_irq.ignoreselected (IgnoreSelected)
25 ignoreselected = s:option( Flag, "IgnoreSelected", translate("Monitor all except specified") )
26 ignoreselected.default  = 0
27 ignoreselected.optional = "true"
28 ignoreselected:depends( "enable", 1 )
29
30 return m