コード例 #1
0
 def create_fields(self):
     
     self.register(corefields.CharField('task'))
     
     self.register(corefields.CharField('uuid'))
     
     self.register(corefields.BooleanField('status'))
     
     self.register(corefields.TextField('info'))
     
     self.register(corefields.IntegerField('pid'))
コード例 #2
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'))
コード例 #3
0
    def create_fields(self):

        self.register(corefields.CharField('os_codename'), True)

        self.register(ipfield.IpField('ip'), True)

        self.register(corefields.CharField('hostname'), True)

        self.register(corefields.CharField('name'), True)

        self.register(corefields.CharField('type'), True)

        self.register(corefields.CharField('profile'), True)
        
        self.register(LastUpdatedField('last_updated'))

        self.register(StatusField('status'))
コード例 #4
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'))
コード例 #5
0
 def create_fields(self):
     
     self.register(ipfield.IpField('server'), True)
     
     self.fields['server'].indexed=True
     
     self.register(corefields.CharField('device', 25), True)
     
     self.register(corefields.IntegerField('network_up'), True)
     
     self.register(corefields.IntegerField('network_down'), True)
     
     self.register(datefield.DateField('date'))
コード例 #6
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')))
コード例 #7
0
 def create_fields(self):
     
     self.register(corefields.CharField('check_task'), True)
     
     self.register(corefields.CharField('profile'))
コード例 #8
0
    def __init__(self, connection):

        super().__init__(connection)

        self.connection = connection
        self.register(corefields.CharField('name_task'), True)
        self.register(corefields.CharField('description_task'), True)
        self.register(corefields.CharField('codename_task'))
        self.register(
            ArrayField('files', ArrayField('', corefields.CharField(''))))
        self.register(
            ArrayField('commands_to_execute',
                       ArrayField('', corefields.CharField(''))))
        self.register(ArrayField('delete_files', corefields.CharField('')))
        self.register(
            ArrayField('delete_directories', corefields.CharField('')))
        self.register(corefields.BooleanField('error'))
        self.register(corefields.BooleanField('status'))
        self.register(corefields.CharField('url_return'))
        self.register(IpField('server'))
        self.register(corefields.TextField('where_sql_server'))
        self.fields['where_sql_server'].escape = True
        self.register(corefields.IntegerField('num_servers'))
        self.register(corefields.CharField('user'))
        self.register(corefields.CharField('password'))
        self.register(corefields.CharField('path'))
        self.register(corefields.BooleanField('one_time'))
        self.register(corefields.CharField('version'))
        self.register(corefields.CharField('post_func'))
        self.register(corefields.CharField('pre_func'))
        self.register(corefields.CharField('error_func'))
        self.register(DictField('extra_data', corefields.CharField('')))

        self.error = False
        self.txt_error = ''
コード例 #9
0
 def __init__(self, connection):
     
     super().__init__(connection)
     # name, related_table, size=11, required=False, identifier_field='id', named_field="id", select_fields=[]):
     self.register(corefields.CharField('name'), True)
     self.register(ParentField('parent_id', 11, False, 'name'))
コード例 #10
0
 def __init__(self, connection):
     
     super().__init__(connection)
     
     self.register(corefields.CharField('name'), True)
     self.register(corefields.CharField('codename'), True)            
コード例 #11
0
 def __init__(self, connection):
     
     super().__init__(connection)
     self.register(corefields.CharField('name_task'), True)
     self.register(LonelyIpField('ip'), True)