Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
node-tsguru
Advanced tools
TimeSeries.Guru Node.js client.
npm install node-tsguru
There is a demo application available at https://github.com/widdix/node-tsguru-demo
var tsguru = require("node-tsguru");
tsguru({token: "abc123456789def", databaseID: "abc123456789def"}, function(err, client) {
if (err) throw err;
console.log("connected");
// interact with client like demonstrated below
});
client.insert("sensor01", 123.45, function(err) {
if (err) throw err;
console.log("inserted");
});
client.insert("sensor01", 123.45, 100, function(err) {
if (err) throw err;
console.log("inserted");
});
client.insertSymbol("sensor", "sen01", 123.45, function(err) {
if (err) throw err;
console.log("inserted");
});
client.insertSymbol("sensor", "sen01", 123.45, 10, true, function(err) {
if (err) throw err;
console.log("inserted");
});
client.bulk()
.add("sensor01", 123.45)
.add("sensor02", 234.56)
.add("sensor03", 345.67)
.add("sensor04", 456.78)
.insert(function(err) {
if (err) throw err;
console.log("bulk inserted");
});
var tsguru = require("node-tsguru");
tsguru({token: "abc123456789def", databaseID: "abc123456789def"})
.then(function(client) {
console.log("connected");
// interact with client like demonstrated below
})
.catch(function(err) {
console.log(err);
});
client.insert("sensor01", 123.45)
.then(function(client) {
console.log("inserted");
})
.catch(function(err) {
console.log(err);
});
client.bulk()
.add("sensor01", 123.45)
.add("sensor02", 234.56)
.add("sensor03", 345.67)
.add("sensor04", 456.78)
.insert()
.then(function(client) {
console.log("bulk inserted");
})
.catch(function(err) {
console.log(err);
});
params
: Object
token
: StringdatabaseID
: Stringtimeout
: Number in milliseconds (optional, default: 10000)cb
: Function(err, client) (optional)
err
: Error or undefinedclient
: Client or undefinedreturns a Promise if no cb
was supplied
Insert into a simple time series.
timeseriesName
: Stringvalue1
... valueN
: Number, Boolean or Stringcb
: Function(err) (optional)
err
: Error or undefinedreturns a Promise if no cb
was supplied
Insert into a symbol time series.
timeseriesName
: Stringsymbol
: Stringvalue1
... valueN
: Number, Boolean or Stringcb
: Function(err) (optional)
err
: Error or undefinedreturns a Promise if no cb
was supplied
returns a Bulk
Add to a simple time series.
timeseriesName
: Stringvalue1
... valueN
: Number, Boolean or StringAdd to a symbol time series.
timeseriesName
: Stringsymbol
: Stringvalue1
... valueN
: Number, Boolean or StringInsert takes care about maximal allowed body size. A single insert can be split into multiple POST calls if the HTTP body gets to large.
cb
: Function(err) (optional)
err
: Error or undefinedreturns a Promise if no cb
was supplied
FAQs
TimeSeries.Guru Node.js client
The npm package node-tsguru receives a total of 0 weekly downloads. As such, node-tsguru popularity was classified as not popular.
We found that node-tsguru demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.