- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables
Class ::rrd::DataElement
::rrd::DataElement create ... \
[ -datasource:required datasource:required ] \
[ -ds-name (default "42") ] \
[ -name name ] \
[ -scale (default "1") ]
Defined in packages/rrd-tool/tcl/rrd-procs.tcl
Class Relations
- class: ::nx::Class
- superclass: ::rrd::Element
- subclass: ::rrd::DataArea, ::rrd::DataLine, ::rrd::TrendLine
::nx::Class create ::rrd::DataElement \ -superclass ::rrd::ElementMethods (to be applied on instances)
render (scripted, public)
<instance of rrd::DataElement> render
- Testcases:
- No testcase defined.
set rrdFile [${:datasource} cget -rrdFile] regsub -all {[-]} ${:name} _ :name lappend defs DEF:${:name}avg=${rrdFile}:${:ds-name}:AVERAGE DEF:${:name}cur=${rrdFile}:${:ds-name}:LAST DEF:${:name}min=${rrdFile}:${:ds-name}:MIN DEF:${:name}max=${rrdFile}:${:ds-name}:MAX CDEF:${:name}avgscaled=${:name}avg,${:scale},* CDEF:${:name}curscaled=${:name}cur,${:scale},* CDEF:${:name}minscaled=${:name}min,${:scale},* CDEF:${:name}maxscaled=${:name}max,${:scale},* return $defs
- Methods: All Methods Documented Methods Hide Methods
- Source: Display Source Hide Source
- Variables: Show Variables Hide Variables