MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / ok

Function ok

examples/couchbase/diagnostics_operations.py:13–19  ·  view source on GitHub ↗
(cluster)

Source from the content-addressed store, hash-verified

11
12
13def ok(cluster):
14 result = cluster.ping()
15 for _, reports in result.endpoints.items():
16 for report in reports:
17 if not report.state == PingState.OK:
18 return False
19 return True
20
21
22cluster = Cluster(

Callers 1

Calls 2

pingMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected