MCPcopy Index your code
hub / github.com/scality/cloudserver / pushLocationMetric

Function pushLocationMetric

lib/utapi/utilities.js:382–386  ·  view source on GitHub ↗

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

(location, byteLength, log, cb)

Source from the content-addressed store, hash-verified

380 * @return {function} - `utapi.pushLocationMetric`
381 */
382function pushLocationMetric(location, byteLength, log, cb) {
383 const locationId = _getLocationId(location);
384 return utapi.pushLocationMetric(locationId, byteLength,
385 log.getSerializedUids(), cb);
386}
387
388module.exports = {
389 listMetrics,

Callers 1

locationStorageCheckFunction · 0.85

Calls 2

_getLocationIdFunction · 0.85
getSerializedUidsMethod · 0.80

Tested by

no test coverage detected