Trees | Indices | Help |
|
---|
|
1 ############################################################################## 2 # 3 # Copyright (C) Zenoss, Inc. 2007, all rights reserved. 4 # 5 # This content is made available according to terms specified in 6 # License.zenoss under the directory where your Zenoss product is installed. 7 # 8 ############################################################################## 9 10 11 __doc__="""GprintGraphPoint 12 13 Handles GraphPoints that define an rrd GPRINT 14 """ 15 16 from GraphPoint import GraphPoint 17 from Globals import InitializeClass 18 1921 ''' This is here so than zope will let us copy/paste/rename 22 graphpoints. 23 ''' 24 gp = GprintGraphPoint(id) 25 context._setObject(gp.id, gp) 26 if REQUEST: 27 return context.callZenScreen(REQUEST)28 2931 32 meta_type = 'GprintGraphPoint' 33 34 vname = '' 35 format = '' 36 strftime = '' 37 38 _properties = GraphPoint._properties + ( 39 {'id':'vname', 'type':'string', 'mode':'w'}, 40 {'id':'format', 'type':'string', 'mode':'w'}, 41 {'id':'strftime', 'type':'string', 'mode':'w'}, 42 ) 43 4463 64 65 InitializeClass(GprintGraphPoint) 6646 return self.format47 48 51 5255 ''' Build the graphing commands for this graphpoint 56 ''' 57 from Products.ZenUtils.Utils import unused 58 unused(multiid, rrdDir) 59 return cmds + ['GPRINT:%s:%s%s' % ( 60 self.addPrefix(prefix, self.vname), 61 (self.format or self.DEFAULT_FORMAT).replace(':', '\:'), 62 self.strftime and ':%s' % self.strftime or '')]
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Mon Jul 30 17:11:16 2012 | http://epydoc.sourceforge.net |