%3 ::rrd::DataElement ::rrd::DataElement gprintLegend init render ::rrd::Element ::rrd::Element ::rrd::DataElement->::rrd::Element ::rrd::VolatileObject ::rrd::VolatileObject ::rrd::Element->::rrd::VolatileObject ::rrd::DataArea ::rrd::DataArea render ::rrd::DataArea->::rrd::DataElement ::rrd::DataLine ::rrd::DataLine render ::rrd::DataLine->::rrd::DataElement ::rrd::TrendLine ::rrd::TrendLine render ::rrd::TrendLine->::rrd::DataElement

Class ::rrd::DataElement

::rrd::DataElement[i] 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[i]
  • superclass: ::rrd::Element[i]
  • subclass: ::rrd::DataArea[i], ::rrd::DataLine[i], ::rrd::TrendLine[i]
::nx::Class create ::rrd::DataElement \
     -superclass ::rrd::Element

Methods (to be applied on instances)

  • render (scripted, public)

     <instance of rrd::DataElement[i]> 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