BIND 10 #191: Implement a initial version of stats
BIND 10 Development
do-not-reply at isc.org
Thu Oct 14 09:12:07 UTC 2010
#191: Implement a initial version of stats
-----------------------------+----------------------------------------------
Reporter: naokikambe | Owner: naokikambe
Type: task | Status: reviewing
Priority: major | Milestone: y2 6 month milestone
Component: statistics | Resolution:
Keywords: | Sensitive: 0
Estimatedhours: 20.0 | Hours: 0
Billable: 0 | Totalhours: 5.33
Internal: 0 |
-----------------------------+----------------------------------------------
Changes (by jelte):
* owner: jelte => naokikambe
Comment:
One more thing, I'd prefer it if you change
{{{
742 cmd = { "command": [
743 'set',
744 { "stats_data": {
745 'bind10.boot_time':
time.strftime('%Y-%m-%dT%H:%M:%SZ', _BASETIME)
746 }
747 }
748 ]
749 }
}}}
in bind10.py.in to
{{{
cmd = isc.config.ccsession.create_command('set',
{ "stats_data": {
'bind10.boot_time': time.strftime('%Y-%m-%dT%H:%M:%SZ',
_BASETIME)
}
})
}}}
The actual data passed is still 'hand-crafted' here, but the abstract away
from the actual format of command messages. (Perhaps this goes for the
tests as well btw).
Oh and another thing, i see that we recreate part of the lib/python/isc
tree for tests here. Not that we especially need to change this now, but i
am a bit afraid that this won't really scale or that this gets stale, so
we should think about ways to generalize this.
--
Ticket URL: <http://bind10.isc.org/ticket/191#comment:21>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list