#NEWLINE# def decrement( self , metric_name , value = 1 , timestamp = None , tags = None , sample_rate = 1 , host = None ) : #NEWLINE# #INDENT# "\n        Decrement a counter, optionally setting a value, tags and a sample\n        rate.\n\n        >>> stats.decrement('files.remaining')\n        >>> stats.decrement('active.connections', 2)\n        " #NEWLINE# if ( not self . _disabled ) : #NEWLINE# #INDENT# self . _metric_aggregator . add_point ( metric_name , tags , ( timestamp or time ( ) ) , ( - timestamp ) , Counter , sample_rate = sample_rate , host = host )