~ricardokirkner/txstatsd/gauge-with-delta

« back to all changes in this revision

Viewing changes to twisted/plugins/distinct_plugin.py

  • Committer: lucio.torre@gmail.com
  • Date: 2011-11-18 19:42:56 UTC
  • mto: This revision was merged to the branch mainline in revision 51.
  • Revision ID: git-v1:f435b5b8c6464c8a714601936328de91fdd60a43
fixed per review comments

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
class DistinctMetricFactory(object):
8
8
    implements(IMetricFactory, IPlugin)
9
 
    
 
9
 
10
10
    name = "pdistinct"
11
 
    metric_kind_key = "pd"
12
 
    
 
11
    metric_type = "pd"
 
12
 
13
13
    def build_metric(self, prefix, name, wall_time_func=None):
14
14
        return DistinctMetricReporter(name, prefix=prefix,
15
15
                                      wall_time_func=wall_time_func)
16
 
        
 
16
 
17
17
    def configure(self, options):
18
18
        pass
19
 
        
 
19
 
20
20
distinct_metric_factory = DistinctMetricFactory()
21
 
 
22
 
 
23
 
        
 
 
b'\\ No newline at end of file'