Skip to content

Commit b22ca0a

Browse files
committed
Various doc fixes
1 parent 4797867 commit b22ca0a

5 files changed

Lines changed: 19 additions & 7 deletions

File tree

cassandra/cluster.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def auth_provider(self):
206206
"""
207207
When :attr:`~.Cluster.protocol_version` is 2 or higher, this should
208208
be an instance of a subclass of :class:`~cassandra.auth.AuthProvider`,
209-
such ass :class:`~.PlainTextAuthProvider`.
209+
such as :class:`~.PlainTextAuthProvider`.
210210
211211
When :attr:`~.Cluster.protocol_version` is 1, this should be
212212
a function that accepts one argument, the IP address of a node,
@@ -264,12 +264,12 @@ def auth_provider(self, value):
264264
metrics_enabled = False
265265
"""
266266
Whether or not metric collection is enabled. If enabled, :attr:`.metrics`
267-
will be an instance of :class:`.metrics.Metrics`.
267+
will be an instance of :class:`~cassandra.metrics.Metrics`.
268268
"""
269269

270270
metrics = None
271271
"""
272-
An instance of :class:`.metrics.Metrics` if :attr:`.metrics_enabled` is
272+
An instance of :class:`cassandra.metrics.Metrics` if :attr:`.metrics_enabled` is
273273
:const:`True`, else :const:`None`.
274274
"""
275275

cassandra/metrics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626

2727

2828
class Metrics(object):
29+
"""
30+
A collection of timers and counters for various performance metrics.
31+
"""
2932

3033
request_timer = None
3134
"""

cassandra/query.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ def _del_serial_consistency_level(self):
227227
:attr:`~.ConsistencyLevel.QUORUM` read is guaranteed to see that write.
228228
But if the regular :attr:`~.consistency_level` of that write is
229229
:attr:`~.ConsistencyLevel.ANY`, then only a read with a
230-
:attr`~.consistency_level` of :attr:`~.ConsistencyLevel.SERIAL` is
230+
:attr:`~.consistency_level` of :attr:`~.ConsistencyLevel.SERIAL` is
231231
guaranteed to see it (even a read with consistency
232232
:attr:`~.ConsistencyLevel.ALL` is not guaranteed to be enough).
233233
234-
The serial consistency can only be one of :attr:`~ConsistencyLevel.SERIAL`
235-
or :attr:`~ConsistencyLevel.LOCAL_SERIAL`. While ``SERIAL`` guarantees full
234+
The serial consistency can only be one of :attr:`~.ConsistencyLevel.SERIAL`
235+
or :attr:`~.ConsistencyLevel.LOCAL_SERIAL`. While ``SERIAL`` guarantees full
236236
linearizability (with other ``SERIAL`` updates), ``LOCAL_SERIAL`` only
237237
guarantees it in the local data center.
238238
@@ -241,7 +241,7 @@ def _del_serial_consistency_level(self):
241241
:attr:`consistency_level`.
242242
243243
Serial consistency levels may only be used against Cassandra 2.0+
244-
and the :attr:`~Cluster.protocol_version` must be set to 2 or higher.
244+
and the :attr:`~.Cluster.protocol_version` must be set to 2 or higher.
245245
""")
246246

247247
@property

docs/api/cassandra/metrics.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
``cassandra.metrics`` - Performance Metrics
2+
===========================================
3+
4+
.. module:: cassandra.metrics
5+
:members:
6+
7+
.. autoclass:: cassandra.metrics.Metrics ()
8+
:members:

docs/api/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ API Documentation
99
cassandra/policies
1010
cassandra/auth
1111
cassandra/metadata
12+
cassandra/metrics
1213
cassandra/query
1314
cassandra/pool
1415
cassandra/decoder

0 commit comments

Comments
 (0)