summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/DBStats.py
Commit message (Collapse)AuthorAgeFilesLines
* Allow to run directly from a git checkout (#1037)Sol Jerome2012-03-241-113/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Remove svn keywordsSol Jerome2012-02-191-1/+0
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* New database field: "is_sensitive"Holger Weiß2011-06-291-2/+3
| | | | | | The new "entry.reason.is_sensitive" flag indicates whether the file contents/diffs were omitted from the database due to the "sensitive" <Path> attribute.
* Accept non-ASCII diffsHolger Weiß2011-06-061-0/+1
| | | | | | | Currently, client reports don't include diffs of files which aren't US-ASCII encoded. The client transmits such files as Base64 blobs. As we'd like to change that, this commit teaches the server to properly handle non-ASCII diffs.
* Plugins: Add full PY3K compatibilitySol Jerome2011-04-261-2/+4
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* DBStats: use clients_xml classTim Laszlo2011-02-101-1/+1
|
* DBStats: Fix random mysql errorsTim Laszlo2010-07-301-6/+15
| | | | | | | | | Occasionally importing ping data would fail with "Commands out of sync; you can't run this command now". Improved logging and error handling for imports. Fixed indentation error in GetCurrentEntry git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5992 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Handle and warn when an unknown client is givenTim Laszlo2010-07-161-1/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5977 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Improved handling of binary objects in the databaseTim Laszlo2010-07-081-2/+9
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5962 ce84e21b-d406-0410-9b95-82705330c041
* Added ThreadedStatistics plugin class. Migrated DBStats to use ↵Tim Laszlo2010-06-071-7/+7
| | | | | | ThreadedStatistics. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5889 ce84e21b-d406-0410-9b95-82705330c041
* Use logging instead of print statements in importscript.pyTim Laszlo2010-05-261-0/+1
| | | | | | | | Switch from print statements to the standard Logger.py functions. This allows load_stats in importscript.py to log error messages when daemonized. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5867 ce84e21b-d406-0410-9b95-82705330c041
* Reports: Add server name to reports (Patch from Tim Laszlo)Sol Jerome2009-11-091-5/+11
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5562 ce84e21b-d406-0410-9b95-82705330c041
* DBStats: Fix data eating / Core: revert copy changeNarayan Desai2009-11-051-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5530 ce84e21b-d406-0410-9b95-82705330c041
* Pylint/PEP 8 Code cleanupsSol Jerome2009-10-071-3/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5477 ce84e21b-d406-0410-9b95-82705330c041
* Finish up Pull Source and multi-Statistics codeNarayan Desai2009-01-121-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5012 ce84e21b-d406-0410-9b95-82705330c041
* This patch is stage 1 of the plugin capabilities reworkNarayan Desai2009-01-051-8/+14
| | | | | | | | - define new plugin base classes - switch Plugin.__name__ => Plugin.name git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5004 ce84e21b-d406-0410-9b95-82705330c041
* Increase DBstats verbosity upon import failureNarayan Desai2008-11-071-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4965 ce84e21b-d406-0410-9b95-82705330c041
* Add error handling and retries for database write problems (Resolves Ticket ↵Narayan Desai2008-10-081-2/+10
| | | | | | #602) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4935 ce84e21b-d406-0410-9b95-82705330c041
* Fix dbstats for getExtraNarayan Desai2008-08-271-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4894 ce84e21b-d406-0410-9b95-82705330c041
* Add reporting system schema evolution support (from Stousignant)Narayan Desai2008-08-201-7/+22
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4884 ce84e21b-d406-0410-9b95-82705330c041
* Fix error paths in direct db pluginNarayan Desai2008-08-191-2/+5
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4881 ce84e21b-d406-0410-9b95-82705330c041
* Implement GetCurrentEntry api for Statistics and DBStats (prereq for ↵Narayan Desai2008-08-071-2/+19
| | | | | | portable bcfg2-admin pull) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4869 ce84e21b-d406-0410-9b95-82705330c041
* Switch bcfg2-admin minestruct to use the new statistics api to get at data ↵Narayan Desai2008-08-061-0/+6
| | | | | | in either of statistics.xml or dbstats directly git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4862 ce84e21b-d406-0410-9b95-82705330c041
* Switch dbstats to using fast reports importerNarayan Desai2008-08-061-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4858 ce84e21b-d406-0410-9b95-82705330c041
* Add new DBstats plugin (direct to reports db)Narayan Desai2008-07-221-0/+25
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4820 ce84e21b-d406-0410-9b95-82705330c041