Created
May 19, 2009 05:35
-
-
Save afarnham/113924 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CounterMetric(Metric): | |
def values(self): | |
if self.virtual: | |
return True | |
if 'call' in self.options: | |
self._record(self.options['call']) | |
return self._snapshot() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment