summaryrefslogtreecommitdiffstats
path: root/rrdtool-model.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2014-04-17 00:27:57 +0000
committerTed Trask <ttrask01@yahoo.com>2014-04-17 00:27:57 +0000
commita9168ab7089d89c965696c139d6dc27e653e775c (patch)
tree8dd3fe342c95278b4f2f90dc2f27e46869d2c0c9 /rrdtool-model.lua
parent8214b8f27def51f43d72bc04271b16d1a7b2e0df (diff)
downloadacf-rrdtool-master.tar.bz2
acf-rrdtool-master.tar.xz
Started changes to use new htmlviewfunctions functionsHEADmaster
Diffstat (limited to 'rrdtool-model.lua')
-rw-r--r--rrdtool-model.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/rrdtool-model.lua b/rrdtool-model.lua
index 8f97738..ea92fc4 100644
--- a/rrdtool-model.lua
+++ b/rrdtool-model.lua
@@ -83,16 +83,16 @@ end
function mymodule.createnewrrd()
local newdb = {}
- newdb.filename = cfe({label="Name",value="mydb.rrd",descr="The name of the RRD you want to create. RRD files should end with the extension .rrd. However, RRDtool will accept any filename."})
+ newdb.filename = cfe({label="Name",value="mydb.rrd",descr="The name of the RRD you want to create. RRD files should end with the extension .rrd. However, RRDtool will accept any filename.", seq=1})
newdb.start = cfe({label="Start",value="",descr="Specifies the time in seconds since 1970-01-01 UTC when the first value should be added to the RRD. RRDtool will not accept any data timed before or at the time specified.\
(Your system saids that your current time is '" .. tostring(os.time(os.date("*t"))) .. "' in the format you should specify above. The startvalue should be smaller than your current time.)\
-(Default: now - 10s)"})
+(Default: now - 10s)", seq=2})
newdb.step = cfe({label="Step",value="",descr="Specifies the base interval in seconds with which data will be fed into the RRD.\
-(Default: 300)"})
+(Default: 300)", seq=3})
newdb.ds = cfe({label="Data store(s)",value="",descr="DS:ds-name:GAUGE | COUNTER | DERIVE | ABSOLUTE:heartbeat:min:max \
-DS:ds-name:COMPUTE:rpn-expression",type="longtext"})
- newdb.rra = cfe({label="Round Robin Archive(s)",value="",descr="RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows",type="longtext"})
- return {value=newdb}
+DS:ds-name:COMPUTE:rpn-expression",type="longtext", seq=4})
+ newdb.rra = cfe({label="Round Robin Archive(s)",value="",descr="RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows",type="longtext", seq=5})
+ return cfe({value=newdb, label="Create new RRD"})
end
function mymodule.remove_file(self, path, userid)