(self)
return config
Returns the default collector settings
Returns the default collector settings
Returns the default collector settings
def get_default_config(self):
        """
        Returns the default collector settings
        """
        config = super(ApcupsdCollector, self).get_default_config()
        config.update({
            'path':     'apcupsd',
            'hostname': 'localhost',
            'port': 3551,
            'metrics': ['LINEV', 'LOADPCT', 'BCHARGE', 'TIMELEFT', 'BATTV',
                        'NUMXFERS', 'TONBATT', 'MAXLINEV', 'MINLINEV',
                        'OUTPUTV', 'ITEMP', 'LINEFREQ', 'CUMONBATT', ],
        })
        return config
def get_default_config ( self ) : config = super ( ApcupsdCollector , self ) . get_default_config ( ) config . update ( { 'path' : 'apcupsd' , 'hostname' : 'localhost' , 'port' : 3551 , 'metrics' : [ 'LINEV' , 'LOADPCT' , 'BCHARGE' , 'TIMELEFT' , 'BATTV' , 'NUMXFERS' , 'TONBATT' , 'MAXLINEV' , 'MINLINEV' , 'OUTPUTV' , 'ITEMP' , 'LINEFREQ' , 'CUMONBATT' , ] , } ) return config