Merge "Fix some spelling mistakes and a incorrect url"

This commit is contained in:
Jenkins 2014-03-19 06:09:16 +00:00 committed by Gerrit Code Review
commit fa39114e0c
6 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
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
choose to seek feedback from the appropriate specialist maintainer before

View File

@ -1488,7 +1488,7 @@ class AlarmThresholdRule(_Base):
"The number of historical periods to evaluate the threshold"
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):
if query:

View File

@ -131,7 +131,7 @@ class BitfieldTraitPlugin(TraitPluginBase):
keys:
path: jsonpath of field to match.
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,
bit will be set if the field exists (and
is non-null), regardless of it's value.

View File

@ -75,14 +75,14 @@ class HardwarePollster(plugin.CentralPollster):
# because of the interface requirement
return ()
def generate_samples(self, host_url, datas):
"""Generate an interable Sample from the datas returned by inspector
def generate_samples(self, host_url, data):
"""Generate an iterable Sample from the data returned by inspector
: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
def generate_one_sample(self, host_url, c_data):

View File

@ -454,7 +454,7 @@ class Connection(base.Connection):
:param project: Optional ID for project that owns the resource.
:param source: Optional source filter.
: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_op: Optional end time operator, like lt, le.
: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',
return_value=self.api_client):
# most recent datapoints inside threshold but with
# anomolously low sample count
# anomalously low sample count
threshold = self.alarms[0].rule['threshold']
avgs = [self._get_stat('avg',
threshold + (v if v < 10 else -v),
@ -406,7 +406,7 @@ class TestEvaluate(base.TestEvaluatorBase):
with mock.patch('ceilometerclient.client.get_client',
return_value=self.api_client):
# most recent datapoints outside threshold but with
# anomolously low sample count
# anomalously low sample count
threshold = self.alarms[0].rule['threshold']
avgs = [self._get_stat('avg',
threshold - (v if v < 9 else -v),