Package Products :: Package ZenRRD :: Module RRDUtil |
[hide private]
[frames] | no frames]

# Module RRDUtil

source code

Classes | [hide private]
| RRDUtil Wrapper class around rrdtool

Functions | [hide private]
number or string |
_checkUndefined(x) Sanity check on the min, max values | source code
convertToRRDTime(val) Convert any value that is passed in to a string that is acceptable to use for RRDtool's start and end parameters. | source code

Variables | [hide private]
| __doc__ = `"""RRDU`...``
| log = `logging.getLogger("zen.RRDUtil")`

Function Details | [hide private]

### _checkUndefined(x) | source code
Sanity check on the min, max values Parameters: `x` (number) - RRD min or max value Returns: number or string Either the number or 'U' (for undefined)

### convertToRRDTime(val) | source code
    Convert any value that is passed in to a string that is acceptable to use
    for RRDtool's start and end parameters. Raises ValueError if this is not
    possible.

    See the AT-STYLE TIME SPECIFICATION and TIME REFERENCE SPECIFICATION
    sections of the following document.

        http://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html

    Note: Currently this method is only fixing floats by turning them into
          strings with no decimal places.

Variables Details | [hide private]

  ### __doc__ Value:
      """RRDUtil

      Wrapper routines around the rrdtool library.
      """