correct docstring in storage module

meter_message_from_counter is in ceilometer.publisher.utils instead
of non-existent ceilometer.meter

Change-Id: I89ea68014d00f3080f09b44cff899c1f89666c42
This commit is contained in:
ZhiQiang Fan 2016-03-22 17:59:59 +08:00
parent dd2c6509c8
commit 1a935cdee9
6 changed files with 6 additions and 6 deletions

View File

@ -153,7 +153,7 @@ class Connection(object):
"""Write the data to the backend storage system.
:param data: a dictionary such as returned by
ceilometer.meter.meter_message_from_counter
ceilometer.publisher.utils.meter_message_from_counter
All timestamps must be naive utc datetime object.
"""

View File

@ -219,7 +219,7 @@ class Connection(pymongo_base.Connection):
"""Write the data to the backend storage system.
:param data: a dictionary such as returned by
ceilometer.meter.meter_message_from_counter
ceilometer.publisher.utils.meter_message_from_counter
"""
# Record the updated resource metadata
data = copy.deepcopy(data)

View File

@ -144,7 +144,7 @@ class Connection(hbase_base.Connection, base.Connection):
"""Write the data to the backend storage system.
:param data: a dictionary such as returned by
ceilometer.meter.meter_message_from_counter
ceilometer.publisher.utils.meter_message_from_counter
"""
with self.conn_pool.connection() as conn:
resource_table = conn.table(self.RESOURCE_TABLE)

View File

@ -104,7 +104,7 @@ class Connection(base.Connection):
"""Return an iterable of samples.
Items are created by
:func:`ceilometer.meter.meter_message_from_counter`.
ceilometer.publisher.utils.meter_message_from_counter.
"""
return []

View File

@ -245,7 +245,7 @@ class Connection(pymongo_base.Connection):
"""Write the data to the backend storage system.
:param data: a dictionary such as returned by
ceilometer.meter.meter_message_from_counter
ceilometer.publisher.utils.meter_message_from_counter
"""
# Record the updated resource metadata - we use $setOnInsert to
# unconditionally insert sample timestamps and resource metadata

View File

@ -332,7 +332,7 @@ class Connection(base.Connection):
"""Write the data to the backend storage system.
:param data: a dictionary such as returned by
ceilometer.meter.meter_message_from_counter
ceilometer.publisher.utils.meter_message_from_counter
"""
engine = self._engine_facade.get_engine()
with engine.begin() as conn: