Package ZenRRD :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

Functions [hide private]
 
loadargs(obj, args)
Load data into a RRD Object
source code
string
prefixid(idprefix, id)
See if prefix needs to be added to id
source code
string or None
rootid(idprefix, id)
See if prefix needs to be removed from id
source code
rrdconfig object
walkupconfig(context, name)
Given a Zope context, try to find the rrdconfig object for the name.
source code
set of strings
templateNames(context)
Return template names in the given context
source code
rrdconfig object
getRRDView(context, name)
Lookup an RRDView based on its name
source code
rrdconfig object
getRRDTargetType(context, name)
Lookup an rrdtargettype based on its name
source code
rrdconfig object
getRRDDataSource(context, name)
Lookup an rrddatasource based on its name
source code
 
rpneval(value, rpn)
Totally bogus RPN evaluation only works with one-level stack
source code
Variables [hide private]
  __doc__ = """ut...
Function Details [hide private]

loadargs(obj, args)

source code 
Load data into a RRD Object
Parameters:
  • obj (RRD object) - RRD object
  • args (list of strings) - arguments

prefixid(idprefix, id)

source code 
See if prefix needs to be added to id
Parameters:
  • idprefix (string) - prefix
  • id (string) - identifier
Returns: string
add the prefix with a '-' in between

rootid(idprefix, id)

source code 
See if prefix needs to be removed from id
Parameters:
  • idprefix (string) - prefix
  • id (string) - identifier
Returns: string or None
remove the prefix with a '-' in between or return None

walkupconfig(context, name)

source code 
Given a Zope context, try to find the rrdconfig object for the name. Raises RRDObjectNotFound if not found.
Parameters:
  • context (Zope context object) - Zope context
  • name (string) - RRDView name
Returns: rrdconfig object
rrdconfig object or None

templateNames(context)

source code 
Return template names in the given context
Parameters:
  • context (Zope context object) - Zope context
Returns: set of strings
names of the templates

getRRDView(context, name)

source code 
Lookup an RRDView based on its name
Parameters:
  • context (Zope context object) - Zope context
  • name (string) - RRDView name
Returns: rrdconfig object
rrdconfig object or None

getRRDTargetType(context, name)

source code 
Lookup an rrdtargettype based on its name
Parameters:
  • context (Zope context object) - Zope context
  • name (string) - RRDView name
Returns: rrdconfig object
rrdconfig object or None

getRRDDataSource(context, name)

source code 
Lookup an rrddatasource based on its name
Parameters:
  • context (Zope context object) - Zope context
  • name (string) - RRDView name
Returns: rrdconfig object
rrdconfig object or None

rpneval(value, rpn)

source code 
Totally bogus RPN evaluation only works with one-level stack
Parameters:
  • value (string) - something that can be used as a number
  • rpn (string) - Reverse Polish Notatio (RPN) expression

To Do: make unbogus


Variables Details [hide private]

__doc__

Value:
"""utils

RRD utility functions
"""