MCPcopy
hub / github.com/scality/cloudserver / getLocationMetric

Function getLocationMetric

lib/utapi/utilities.js:368–371  ·  view source on GitHub ↗

* Call the Utapi Client 'getLocationMetric' method with the * associated parameters * @param {string} location - name of data backend to list metric for * @param {object} log - werelogs logger * @param {function} cb - callback to call * @return {function} - `utapi.getLocationMetric`

(location, log, cb)

Source from the content-addressed store, hash-verified

366 * @return {function} - `utapi.getLocationMetric`
367 */
368function getLocationMetric(location, log, cb) {
369 const locationId = _getLocationId(location);
370 return utapi.getLocationMetric(locationId, log.getSerializedUids(), cb);
371}
372
373/**
374 * Call the Utapi Client 'pushLocationMetric' method with the

Callers 1

locationStorageCheckFunction · 0.85

Calls 2

_getLocationIdFunction · 0.85
getSerializedUidsMethod · 0.80

Tested by

no test coverage detected