Rename get_counters to get_samples

Now counter has been renamed to sample, so it is better that
we update the function get_counters to get_samples.

Implements part of blueprint remove-counter

Change-Id: I908ea347f8d0fd4b5ef4b76eee6de98da5d2e0ca
This commit is contained in:
Jay Lau
2013-08-02 16:24:49 +08:00
parent b999458a43
commit a34bcb76d2
24 changed files with 150 additions and 151 deletions

View File

@@ -76,7 +76,7 @@ class PollsterBase(PluginBase):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod
def get_counters(self, manager, cache):
def get_samples(self, manager, cache):
"""Return a sequence of Counter instances from polling the resources.
:param manager: The service manager class invoking the plugin.