diff --git a/aerospike_helpers/metrics/__init__.py b/aerospike_helpers/metrics/__init__.py index a564149e9..612633e90 100644 --- a/aerospike_helpers/metrics/__init__.py +++ b/aerospike_helpers/metrics/__init__.py @@ -28,7 +28,7 @@ class ConnectionStats: """Connection statistics. Attributes: - in_use (int): Connections actively being used in database transactions on this node. + in_use (int): Connections actively being used in database commands on this node. There can be multiple pools per node. This value is a summary of those pools on this node. in_pool (int): Connections residing in pool(s) on this node. There can be multiple pools per node. This value is a summary of those pools on this node. @@ -62,10 +62,10 @@ class Node: address (str): The IP address / host name of the node (not including the port number). port (int): Port number of the node's address. conns (:py:class:`ConnectionStats`): Synchronous connection stats on this node. - error_count (int): Transaction error count since node was initialized. If the error is retryable, - multiple errors per transaction may occur. - timeout_count (int): Transaction timeout count since node was initialized. - If the timeout is retryable (ie socketTimeout), multiple timeouts per transaction may occur. + error_count (int): Command error count since node was initialized. If the error is retryable, + multiple errors per command may occur. + timeout_count (int): Command timeout count since node was initialized. + If the timeout is retryable (ie socketTimeout), multiple timeouts per command may occur. metrics (:py:class:`NodeMetrics`): Node metrics """ pass @@ -77,8 +77,8 @@ class Cluster: Attributes: cluster_name (Optional[str]): Expected cluster name for all nodes. May be :py:obj:`None`. invalid_node_count (int): Count of add node failures in the most recent cluster tend iteration. - tran_count (int): Transaction count. The value is cumulative and not reset per metrics interval. - retry_count (int): Transaction retry count. There can be multiple retries for a single transaction. + command_count (int): Command count. The value is cumulative and not reset per metrics interval. + retry_count (int): Command retry count. There can be multiple retries for a single command. The value is cumulative and not reset per metrics interval. nodes (list[:py:class:`Node`]): Active nodes in cluster. """ diff --git a/test/new_tests/test_metrics.py b/test/new_tests/test_metrics.py index 54a3e7ed9..0fc4201f5 100644 --- a/test/new_tests/test_metrics.py +++ b/test/new_tests/test_metrics.py @@ -158,7 +158,7 @@ def test_setting_metrics_policy_custom_settings(self): assert type(cluster) == Cluster assert cluster.cluster_name is None or type(cluster.cluster_name) == str assert type(cluster.invalid_node_count) == int - assert type(cluster.tran_count) == int + assert type(cluster.command_count) == int assert type(cluster.retry_count) == int assert type(cluster.nodes) == list # Also check the Node and ConnectionStats objects in the Cluster object were populated