MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / getPolicyInfo

Function getPolicyInfo

lib/insights-client.js:417–428  ·  view source on GitHub ↗
(policy)

Source from the content-addressed store, hash-verified

415}
416
417function getPolicyInfo(policy) {
418 if (!policy) {
419 return undefined;
420 }
421
422 const options = policy.getOptions && policy.getOptions();
423
424 return {
425 type: policy.constructor.name,
426 options: (options instanceof Map) ? mapToObject(options) : utils.emptyObject
427 };
428}
429
430function getConsistencyString(c) {
431 if (typeof c !== 'number') {

Callers 2

_getStartupMessageMethod · 0.85

Calls 2

mapToObjectFunction · 0.85
getOptionsMethod · 0.65

Tested by

no test coverage detected