appcd-agent
Advanced tools
Comparing version 1.0.0-6 to 1.0.0-7
@@ -206,4 +206,18 @@ 'use strict'; | ||
} | ||
/** | ||
* Generates a snapshot of the collected data. | ||
* | ||
* @returns {Object} | ||
* @access public | ||
*/ | ||
health() { | ||
const result = {}; | ||
for (const [name, bucket] of Object.entries(this.buckets)) { | ||
result[name] = bucket.collection.stats; | ||
} | ||
return result; | ||
} | ||
}; | ||
exports.default = Agent; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFnZW50LmpzIl0sIm5hbWVzIjpbIkFnZW50IiwiY29uc3RydWN0b3IiLCJvcHRzIiwiVHlwZUVycm9yIiwicG9sbEludGVydmFsIiwiTWF0aCIsIm1heCIsImJ1Y2tldHMiLCJjb2xsZWN0b3JzIiwiZ2V0U3RhdHMiLCJuYW1lIiwiY29sbGVjdGlvbiIsInN0YXRzIiwic3RhcnQiLCJpbml0Q3B1IiwiY3VycmVudENwdSIsInByb2Nlc3MiLCJjcHVVc2FnZSIsImluaXRIcnRpbWUiLCJjdXJyZW50SHJUaW1lIiwiaHJ0aW1lIiwiY2xlYXJUaW1lb3V0IiwicG9sbFRpbWVyIiwicG9sbCIsInN0b3AiLCJhZGRDb2xsZWN0b3IiLCJmbiIsInB1c2giLCJyZW1vdmVDb2xsZWN0b3IiLCJpIiwibGVuZ3RoIiwic3BsaWNlIiwiY3B1IiwibWVtIiwibWVtb3J5VXNhZ2UiLCJ1c2VyIiwic3lzdGVtIiwiZnJlZW1lbSIsImhlYXBUb3RhbCIsImhlYXBVc2VkIiwicnNzIiwiUHJvbWlzZSIsImFsbCIsIm1hcCIsInJlc29sdmUiLCJ0aGVuIiwicmVzdWx0IiwiT2JqZWN0IiwiYXNzaWduIiwibm93IiwiRGF0ZSIsImRlbHRhIiwibGFzdFRpbWVzdGFtcCIsIm5leHQiLCJzZXRUaW1lb3V0IiwiYmluZCIsIm1pc3NlZCIsImZsb29yIiwia2V5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iBHZW5lcmF0ZXMgYSBzbmFwc2hvdCBvZiB0aGUgY29sbGVjdGVkIGRhdGEuXG5cdCAqXG5cdCAqIEByZXR1cm5zIHtPYmplY3R9XG5cdCAqIEBhY2Nlc3MgcHVibGljXG5cdCAqL1xuXHRoZWFsdGgoKSB7XG5cdFx0Y29uc3QgcmVzdWx0ID0ge307XG5cdFx0Zm9yIChjb25zdCBbIG5hbWUsIGJ1Y2tldCBdIG9mIE9iamVjdC5lbnRyaWVzKHRoaXMuYnVja2V0cykpIHtcblx0XHRcdHJlc3VsdFtuYW1lXSA9IGJ1Y2tldC5jb2xsZWN0aW9uLnN0YXRzO1xuXHRcdH1cblx0XHRyZXR1cm4gcmVzdWx0O1xuXHR9XG59XG4iXX0= |
@@ -69,3 +69,3 @@ 'use strict'; | ||
/** | ||
* ? | ||
* Returns a snapshot of the contents of this collection. | ||
* | ||
@@ -85,2 +85,2 @@ * @returns {Object} | ||
exports.default = Collection; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbGxlY3Rpb24uanMiXSwibmFtZXMiOlsiQ29sbGVjdGlvbiIsImNvbnN0cnVjdG9yIiwic2l6ZSIsInZhbHVlcyIsIm1pbiIsIm1heCIsImF2ZyIsImFkZCIsInZhbHVlIiwiaXNOYU4iLCJUeXBlRXJyb3IiLCJwdXNoIiwidG90YWwiLCJjb3VudGVyIiwic3RhdHMiLCJBcnJheSIsImZyb20iXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQTs7Ozs7O0FBRUE7OztJQUdxQkEsVSxHQUFOLE1BQU1BLFVBQU4sQ0FBaUI7QUFDL0I7Ozs7OztBQU1BQyxhQUFZQyxJQUFaLEVBQWtCO0FBQ2pCLE9BQUtDLE1BQUwsR0FBYyx5QkFBZUQsSUFBZixDQUFkO0FBQ0EsT0FBS0UsR0FBTCxHQUFXLElBQVg7QUFDQSxPQUFLQyxHQUFMLEdBQVcsSUFBW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yO1xuXHRcdFx0XHR9XG5cblx0XHRcdFx0aWYgKGNvdW50ZXIgPiB0aGlzLm1heCkge1xuXHRcdFx0XHRcdHRoaXMubWF4ID0gY291bnRlcjtcblx0XHRcdFx0fVxuXHRcdFx0fVxuXG5cdFx0XHR0aGlzLmF2ZyA9IHRvdGFsIC8gdGhpcy52YWx1ZXMuc2l6ZTtcblx0XHR9XG5cblx0XHRyZXR1cm4gdGhpcztcblx0fVxuXG5cdC8qKlxuXHQgKiBSZXR1cm5zIGEgc25hcHNob3Qgb2YgdGhlIGNvbnRlbnRzIG9mIHRoaXMgY29sbGVjdGlvbi5cblx0ICpcblx0ICogQHJldHVybnMge09iamVjdH1cblx0ICogQGFjY2VzcyBwdWJsaWNcblx0ICovXG5cdGdldCBzdGF0cygpIHtcblx0XHRyZXR1cm4ge1xuXHRcdFx0dmFsdWVzOiBBcnJheS5mcm9tKHRoaXMudmFsdWVzKSxcblx0XHRcdG1pbjogICAgdGhpcy5taW4sXG5cdFx0XHRtYXg6ICAgIHRoaXMubWF4LFxuXHRcdFx0YXZnOiAgICB0aGlzLmF2Z1xuXHRcdH07XG5cdH1cbn1cbiJdfQ== |
{ | ||
"name": "appcd-agent", | ||
"version": "1.0.0-6", | ||
"version": "1.0.0-7", | ||
"description": "Monitors a Node.js process and tracks CPU and memory usage.", | ||
@@ -23,3 +23,3 @@ "main": "./dist/index", | ||
"devDependencies": { | ||
"appcd-gulp": "^1.0.0-6", | ||
"appcd-gulp": "^1.0.0-7", | ||
"gulp": "^3.9.1" | ||
@@ -26,0 +26,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63848
274