diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-06-04 16:02:02 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-06-04 16:12:04 -0500 |
commit | 4c86dd989773aeb010ac9c583bb9de21ea4fc023 (patch) | |
tree | 7b4e75939b190cc3f4fc3649a14dd6779a2b5c70 /src/lib/Bcfg2 | |
parent | 12dd7abdc0e38383b2c20d484e3049d1435176ef (diff) | |
download | bcfg2-4c86dd989773aeb010ac9c583bb9de21ea4fc023.tar.gz bcfg2-4c86dd989773aeb010ac9c583bb9de21ea4fc023.tar.bz2 bcfg2-4c86dd989773aeb010ac9c583bb9de21ea4fc023.zip |
DBStats: Remove ping data
Diffstat (limited to 'src/lib/Bcfg2')
-rw-r--r-- | src/lib/Bcfg2/Server/Admin/Init.py | 2 | ||||
-rw-r--r-- | src/lib/Bcfg2/Server/Reports/reports/models.py | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/src/lib/Bcfg2/Server/Admin/Init.py b/src/lib/Bcfg2/Server/Admin/Init.py index c1f9ed484..6a6083782 100644 --- a/src/lib/Bcfg2/Server/Admin/Init.py +++ b/src/lib/Bcfg2/Server/Admin/Init.py @@ -61,7 +61,7 @@ groups = '''<Groups version='3.0'> # Default contents of clients.xml clients = '''<Clients version="3.0"> - <Client profile="basic" pingable="Y" pingtime="0" name="%s"/> + <Client profile="basic" name="%s"/> </Clients> ''' diff --git a/src/lib/Bcfg2/Server/Reports/reports/models.py b/src/lib/Bcfg2/Server/Reports/reports/models.py index 296c8c3a8..7540dae66 100644 --- a/src/lib/Bcfg2/Server/Reports/reports/models.py +++ b/src/lib/Bcfg2/Server/Reports/reports/models.py @@ -23,11 +23,6 @@ KIND_CHOICES = ( ('Path', 'symlink'), ('Service', 'Service'), ) -PING_CHOICES = ( - #These are possible ping states - ('Up (Y)', 'Y'), - ('Down (N)', 'N') -) TYPE_BAD = 1 TYPE_MODIFIED = 2 TYPE_EXTRA = 3 @@ -87,17 +82,6 @@ class Client(models.Model): pass -class Ping(models.Model): - """Represents a ping of a client (sparsely).""" - client = models.ForeignKey(Client, related_name="pings") - starttime = models.DateTimeField() - endtime = models.DateTimeField() - status = models.CharField(max_length=4, choices=PING_CHOICES) # up/down - - class Meta: - get_latest_by = 'endtime' - - class InteractiveManager(models.Manager): """Manages interactions objects.""" |