UNPKG

nsolid-graphite

Version:

a daemon that sends N|Solid metrics to graphite

101 lines (100 loc) 4.21 kB
{ "_args": [ [ { "raw": "nodesource/nsolid-apiclient", "scope": null, "escapedName": null, "name": null, "rawSpec": "nodesource/nsolid-apiclient", "spec": "github:nodesource/nsolid-apiclient", "type": "hosted", "hosted": { "type": "github", "ssh": "git@github.com:nodesource/nsolid-apiclient.git", "sshUrl": "git+ssh://git@github.com/nodesource/nsolid-apiclient.git", "httpsUrl": "git+https://github.com/nodesource/nsolid-apiclient.git", "gitUrl": "git://github.com/nodesource/nsolid-apiclient.git", "shortcut": "github:nodesource/nsolid-apiclient", "directUrl": "https://raw.githubusercontent.com/nodesource/nsolid-apiclient/master/package.json" } }, "/Users/pmuellr/Projects/ns/nsolid-statsd" ] ], "_from": "nodesource/nsolid-apiclient", "_id": "nsolid-apiclient@1.0.0", "_inCache": true, "_location": "/nsolid-apiclient", "_phantomChildren": {}, "_requested": { "raw": "nodesource/nsolid-apiclient", "scope": null, "escapedName": null, "name": null, "rawSpec": "nodesource/nsolid-apiclient", "spec": "github:nodesource/nsolid-apiclient", "type": "hosted", "hosted": { "type": "github", "ssh": "git@github.com:nodesource/nsolid-apiclient.git", "sshUrl": "git+ssh://git@github.com/nodesource/nsolid-apiclient.git", "httpsUrl": "git+https://github.com/nodesource/nsolid-apiclient.git", "gitUrl": "git://github.com/nodesource/nsolid-apiclient.git", "shortcut": "github:nodesource/nsolid-apiclient", "directUrl": "https://raw.githubusercontent.com/nodesource/nsolid-apiclient/master/package.json" } }, "_requiredBy": [ "#USER", "/" ], "_resolved": "git+https://github.com/nodesource/nsolid-apiclient.git#fd48fac981d2e432d7e9e76735aa5a4fe6d31524", "_shasum": "9cb8c368b9da67e7288a885eda1a44aac6a32399", "_shrinkwrap": null, "_spec": "nodesource/nsolid-apiclient", "_where": "/Users/pmuellr/Projects/ns/nsolid-statsd", "author": { "name": "NodeSource" }, "bugs": { "url": "https://github.com/nodesource/nsolid-apiclient/issues" }, "contributors": [ { "name": "Bryce B. Baril" } ], "dependencies": { "bole": "~3.0.1", "hyperquest": "~2.0.0", "through2": "~2.0.1", "xtend": "~4.0.1" }, "description": "The client library for the N|Solid Storage API", "devDependencies": { "standard": "~7.1.2", "stream-spigot": "~3.0.5", "tape": "~4.6.0", "terminus": "~1.1.0" }, "directories": { "test": "test" }, "gitHead": "fd48fac981d2e432d7e9e76735aa5a4fe6d31524", "homepage": "https://github.com/nodesource/nsolid-apiclient", "license": "See LICENSE in LICENSE", "main": "client.js", "name": "nsolid-apiclient", "optionalDependencies": {}, "readme": "nsolid-apiclient\n---\n\nA very simple client for the REST-like N|Solid Storage API.\n\n```js\nvar Client = require(\"nsolid-apiclient\")\nvar client = Client(\"https://localhost:4000\")\n\nvar contentStream = client.read('metrics', {start: '-5m', end: '-1m'})\n```\n\nAPI\n---\n\nAll `endpoint` parameters should be an https URL to an N|Solid Storage server.\n\nCreating a client\n===\n\n var Client = require(\"nsolid-apiclient\")\n var client = Client(endpoint)\n\nCreate a new client with the specified `endpoint` pre-configured.\n\nClient methods\n===\n\nread\n---\n\n var responseStream = client.read(command[, options])\n\nSend the command with optional `options` object. The `options` object will be converted to query parameters. These commands will read cached or stored data in the N|Solid Storage system versus fetching data from the N|Solid processes.\n\nexec\n---\n\n var responseStream = client.exec(command[, options])\n\nInstruct the proxy to execute the command on each N|Solid Agent (with optional filters specified in `options`)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/nodesource/nsolid-apiclient.git" }, "scripts": { "test": "node test/ && standard" }, "version": "1.0.0" }