Class ::rrd::DataSource

::rrd::DataSource[i] create ... \
           [ -baseResolution baseResolution ] \
           [ -name name ] \
           [ -rrdFile rrdFile ] \
           [ -type (default "DERIVE") ]

Defined in packages/rrd-tool/tcl/rrd-procs.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nx::Object[i]
::nx::Class create ::rrd::DataSource \
     -superclass ::nx::Object

Methods (to be applied on instances)

  • deleteRRD (scripted, public)

     <instance of rrd::DataSource[i]> deleteRRD

    Testcases:
    No testcase defined.
    if {[file exists ${:rrdFile}]} { file delete ${:rrdFile} }
  • lastupdate (scripted, public)

     <instance of rrd::DataSource[i]> lastupdate

    Testcases:
    No testcase defined.
    return [Rrd::lastupdate ${:rrdFile}]
  • requireRRD (scripted, public)

     <instance of rrd::DataSource[i]> requireRRD

    Testcases:
    No testcase defined.
    if {![file exists ${:rrdFile}]} {
      :createRRDfile
    }
  • update (scripted, public)

     <instance of rrd::DataSource[i]> update [ -timestamp timestamp ] \
        value
    Switches:
    -timestamp (optional, defaults to "N")
    Parameters:
    value (required)

    Testcases:
    No testcase defined.
    ns_log notice "Rrd::update ${:rrdFile} ${timestamp}:$value"
    Rrd::update ${:rrdFile} ${timestamp}:$value