diff options
Diffstat (limited to 'rrdtool-model.lua')
-rw-r--r-- | rrdtool-model.lua | 12 |
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) |