(self)
return config
Return the default config for a rule
Return the default config for a rule
Return the default config for a rule
def get_default_rule_config(self):
        """
        Return the default config for a rule
        """
        config = {}
        config.update({
            'collector': '',
            'metric': '',
            'namespace': '',
            'name': '',
            'unit': 'None',
            'collect_by_instance': True,
            'collect_without_dimension': False,
            'dimensions': {}
        })
        return config
def get_default_rule_config ( self ) : config = { } config . update ( { 'collector' : '' , 'metric' : '' , 'namespace' : '' , 'name' : '' , 'unit' : 'None' , 'collect_by_instance' : True , 'collect_without_dimension' : False , 'dimensions' : { } } ) return config