Globally reduce copyright headers
[project/luci.git] / applications / luci-app-statistics / luasrc / model / cbi / luci_statistics / csv.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("CSV Plugin Configuration"),
6         translate(
7                 "The csv plugin stores collected data in csv file format " ..
8                 "for further processing by external programs."
9         ))
10
11 -- collectd_csv config section
12 s = m:section( NamedSection, "collectd_csv", "luci_statistics" )
13
14 -- collectd_csv.enable
15 enable = s:option( Flag, "enable", translate("Enable this plugin") )
16 enable.default = 0
17
18 -- collectd_csv.datadir (DataDir)
19 datadir = s:option( Value, "DataDir", translate("Storage directory for the csv files") )
20 datadir.default = "127.0.0.1"
21 datadir:depends( "enable", 1 )
22
23 -- collectd_csv.storerates (StoreRates)
24 storerates = s:option( Flag, "StoreRates", translate("Store data values as rates instead of absolute values") )
25 storerates.default = 0
26 storerates:depends( "enable", 1 )
27
28 return m
29