Esempio n. 1
0
 def __init__(self, connection):
     
     super().__init__(connection)
     self.register(corefields.CharField('disk'), True)
     self.register(IpField('ip'), True)
     self.fields['ip'].indexed=True
     self.register(corefields.DoubleField('size'))
     self.register(corefields.DoubleField('used'))
     self.register(corefields.DoubleField('free'))
     self.register(corefields.DoubleField('percent'))
     self.register(DateField('date'))
Esempio n. 2
0
 def __init__(self, connection):
     
     super().__init__(connection)
     
     self.register(IpField('ip'), True)
     self.fields['ip'].indexed=True
     self.register(corefields.DoubleField('bytes_sent'))
     self.register(corefields.DoubleField('bytes_recv'))
     self.register(corefields.IntegerField('errin'))
     self.register(corefields.IntegerField('errout'))
     self.register(corefields.IntegerField('dropin'))
     self.register(corefields.IntegerField('dropout'))
     self.register(corefields.BooleanField('last_updated'))
     self.register(DateField('date'))
Esempio n. 3
0
 def __init__(self, connection):
     
     super().__init__(connection)
     self.register(IpField('ip'), True)
     self.fields['ip'].indexed=True
     self.register(corefields.IntegerField('num_cpu'))
     self.register(corefields.DoubleField('idle'))
     self.register(corefields.BooleanField('last_updated'))
     self.register(DateField('date'))
     self.register(corefields.ForeignKeyField('server_id', Server(connection), size=11, required=False, identifier_field='id', named_field="hostname", select_fields=['actual_idle', 'date']))
Esempio n. 4
0
    def __init__(self, connection):

        super().__init__(connection)

        self.register(DateField('date'))
        self.register(corefields.ForeignKeyField('task_id', Task(connection)),
                      True)
        self.register(IpField('server'))
        self.register(corefields.DoubleField('progress'))
        self.register(corefields.BooleanField('no_progress'))
        self.register(corefields.TextField('message'), True)
        self.register(corefields.BooleanField('error'))
        self.register(corefields.BooleanField('status'))
        self.register(DictField('data', corefields.CharField('data')))
Esempio n. 5
0
 def __init__(self, connection):
     
     super().__init__(connection)
     
     self.register(corefields.CharField('hostname'), True)
     self.register(LonelyIpField('ip'), True)
     self.fields['ip'].unique=True
     self.fields['ip'].indexed=True
     self.register(corefields.BooleanField('status'))
     self.register(corefields.BooleanField('monitoring'))
     self.register(corefields.CharField('os_codename'), True)
     self.register(corefields.IntegerField('num_updates'))
     self.register(corefields.DoubleField('actual_idle'))
     self.register(LastUpdatedField('date'))
Esempio n. 6
0
 def __init__(self, connection):
     
     super().__init__(connection)
     
     self.register(IpField('ip'), True)
     self.fields['ip'].indexed=True
     
     #svmem(total=518418432, available=413130752, percent=20.3, used=208052224, free=310366208, active=137457664, inactive=40919040, buffers=20692992, cached=82071552, shared=4820992)
     
     self.register(corefields.BigIntegerField('total'), True)
     self.register(corefields.BigIntegerField('available'), True)
     self.register(corefields.DoubleField('percent'), True)
     self.register(corefields.BigIntegerField('used'), True)
     self.register(corefields.BigIntegerField('free'), True)
     self.register(corefields.BigIntegerField('active'), True)
     self.register(corefields.BigIntegerField('inactive'), True)
     self.register(corefields.BigIntegerField('buffers'), True)
     self.register(corefields.BigIntegerField('cached'), True)
     self.register(corefields.BigIntegerField('shared'), True)
     
     self.register(corefields.BooleanField('last_updated'))
     self.register(DateField('date'))