Fix some spelling mistakes and a incorrect url

Change-Id: Id122cd98d133496e423847274d7abdbfd54262af
This commit is contained in:
liu-sheng 2014-03-06 11:28:50 +08:00
parent 4d35b21658
commit f87314da2a
6 changed files with 11 additions and 11 deletions

View File

@ -2,7 +2,7 @@
The current members of ceilometer-core are listed here: The current members of ceilometer-core are listed here:
https://launchpad.net/~ceilometer-core/+members#active https://launchpad.net/~ceilometer-drivers/+members#active
This group can +2 and approve patches in Ceilometer. However, they may This group can +2 and approve patches in Ceilometer. However, they may
choose to seek feedback from the appropriate specialist maintainer before choose to seek feedback from the appropriate specialist maintainer before

View File

@ -1442,7 +1442,7 @@ class AlarmThresholdRule(_Base):
"The number of historical periods to evaluate the threshold" "The number of historical periods to evaluate the threshold"
exclude_outliers = wsme.wsattr(bool, default=False) exclude_outliers = wsme.wsattr(bool, default=False)
"Whether datapoints with anomolously low sample counts are excluded" "Whether datapoints with anomalously low sample counts are excluded"
def __init__(self, query=None, **kwargs): def __init__(self, query=None, **kwargs):
if query: if query:

View File

@ -131,7 +131,7 @@ class BitfieldTraitPlugin(TraitPluginBase):
keys: keys:
path: jsonpath of field to match. path: jsonpath of field to match.
bit: (int) number of bit to set (lsb is bit 0) bit: (int) number of bit to set (lsb is bit 0)
value: set bit if corrosponding field's value value: set bit if corresponding field's value
matches this. If value is not provided, matches this. If value is not provided,
bit will be set if the field exists (and bit will be set if the field exists (and
is non-null), regardless of it's value. is non-null), regardless of it's value.

View File

@ -75,14 +75,14 @@ class HardwarePollster(plugin.CentralPollster):
# because of the interface requirement # because of the interface requirement
return () return ()
def generate_samples(self, host_url, datas): def generate_samples(self, host_url, data):
"""Generate an interable Sample from the datas returned by inspector """Generate an iterable Sample from the data returned by inspector
:param host_url: host url of the endpoint :param host_url: host url of the endpoint
:param datas: list of data returned by the corresponding inspector :param data: list of data returned by the corresponding inspector
""" """
return (self.generate_one_sample(host_url, data) for data in datas) return (self.generate_one_sample(host_url, datum) for datum in data)
@abc.abstractmethod @abc.abstractmethod
def generate_one_sample(self, host_url, c_data): def generate_one_sample(self, host_url, c_data):
@ -91,7 +91,7 @@ class HardwarePollster(plugin.CentralPollster):
:param host_url: host url of the endpoint :param host_url: host url of the endpoint
:param c_data: data returned by the corresponding inspector, of :param c_data: data returned by the corresponding inspector, of
one of the types defined in the file one of the types defined in the file
ceiloemter.hardware.inspector.base.CPUStats ceilometer.hardware.inspector.base.CPUStats
""" """
def _get_inspector(self, parsed_url): def _get_inspector(self, parsed_url):

View File

@ -422,7 +422,7 @@ class Connection(base.Connection):
:param project: Optional ID for project that owns the resource. :param project: Optional ID for project that owns the resource.
:param source: Optional source filter. :param source: Optional source filter.
:param start_timestamp: Optional modified timestamp start range. :param start_timestamp: Optional modified timestamp start range.
:param start_timestamp_op: Optonal start time operator, like gt, ge. :param start_timestamp_op: Optional start time operator, like gt, ge.
:param end_timestamp: Optional modified timestamp end range. :param end_timestamp: Optional modified timestamp end range.
:param end_timestamp_op: Optional end time operator, like lt, le. :param end_timestamp_op: Optional end time operator, like lt, le.
:param metaquery: Optional dict with metadata to match on. :param metaquery: Optional dict with metadata to match on.

View File

@ -364,7 +364,7 @@ class TestEvaluate(base.TestEvaluatorBase):
with mock.patch('ceilometerclient.client.get_client', with mock.patch('ceilometerclient.client.get_client',
return_value=self.api_client): return_value=self.api_client):
# most recent datapoints inside threshold but with # most recent datapoints inside threshold but with
# anomolously low sample count # anomalously low sample count
threshold = self.alarms[0].rule['threshold'] threshold = self.alarms[0].rule['threshold']
avgs = [self._get_stat('avg', avgs = [self._get_stat('avg',
threshold + (v if v < 10 else -v), threshold + (v if v < 10 else -v),
@ -406,7 +406,7 @@ class TestEvaluate(base.TestEvaluatorBase):
with mock.patch('ceilometerclient.client.get_client', with mock.patch('ceilometerclient.client.get_client',
return_value=self.api_client): return_value=self.api_client):
# most recent datapoints outside threshold but with # most recent datapoints outside threshold but with
# anomolously low sample count # anomalously low sample count
threshold = self.alarms[0].rule['threshold'] threshold = self.alarms[0].rule['threshold']
avgs = [self._get_stat('avg', avgs = [self._get_stat('avg',
threshold - (v if v < 9 else -v), threshold - (v if v < 9 else -v),