Skip to content

Commit 13b7010

Browse files
authored
Merge pull request apache#908 from datastax/python-901
PYTHON-901: minor improvement in ExecutionProfile and Metrics docs
2 parents ae23eea + 3a1a058 commit 13b7010

3 files changed

Lines changed: 8 additions & 1 deletion

File tree

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Other
2424
* Remove "Experimental" tag from execution profiles documentation (PYTHON-840)
2525
* request_timer metrics descriptions are slightly incorrect (PYTHON-885)
2626
* Remove "Experimental" tag from cqlengine connections documentation (PYTHON-892)
27+
* Set in documentation default consistency for operations is LOCAL_ONE (PYTHON-901)
2728

2829
3.12.0
2930
======

cassandra/metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
class Metrics(object):
2929
"""
3030
A collection of timers and counters for various performance metrics.
31+
32+
Timer metrics are represented as floating point seconds.
3133
"""
3234

3335
request_timer = None

docs/api/cassandra/cluster.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,12 @@
114114

115115
.. automethod:: set_meta_refresh_enabled
116116

117-
.. autoclass:: ExecutionProfile
117+
.. autoclass:: ExecutionProfile (load_balancing_policy=<object object>, retry_policy=None, consistency_level=LOCAL_ONE, serial_consistency_level=None, request_timeout=10.0, row_factory=<function tuple_factory>, speculative_execution_policy=None)
118118
:members:
119+
:exclude-members: consistency_level
120+
121+
.. autoattribute:: consistency_level
122+
:annotation: = LOCAL_ONE
119123

120124
.. autodata:: EXEC_PROFILE_DEFAULT
121125
:annotation:

0 commit comments

Comments
 (0)