![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
nodejitsu-api
Advanced tools
Readme
The Node.JS Nodejitsu-api library enables accessing Nodejitsu's RESTful API.
var nj = require('nodejitsu-api'),
fs = require('fs');
var client = nj.createClient({
username: 'marak',
password: 'foobar',
remoteUri: 'https://api.nodejitsu.com'
});
client.apps.list(function(err, result){
if (err) {
console.log(err);
return;
}
console.log(JSON.stringify(result, null, 2, true));
});
This library may be installed using npm:
npm install nodejitsu-api
This method sets up a client for connecting to Nodejitsu's databases. Here's a minimal example for connecting to Nodejitsu's API as Marak:
var client = nj.createClient({
username: 'marak',
password: 'foobar',
remoteUri: 'https://api.nodejitsu.com'
});
The options object contains three required properties:
username
: The username for your Nodejitsu accountpassword
: The password for your Nodejitsu accountremoteUri
: The uri of the api host (typically https://api.nodejitsu.com).Method calls are generally structured as resource
and action
.
client.resource.action("data", function (err, result) {
if (err) {
throw err;
}
// use the result
});
Most actions take a string argument and a callback, though a few actions only take a callback.
The client's methods are reflective of jitsu's resources. Here's a broad overview:
apps.available
apps.list
apps.start
apps.stop
apps.destroy
databases.create
databases.destroy
databases.list
snapshots.activate
snapshots.create
snapshots.destroy
snapshots.list
logs.byApp
logs.byUser
users.available
users.create
users.confirm
users.forgot
users.update
and many more...
All tests are written with vows and should be run with npm:
$ npm test
MIT.
FAQs
nodejitsu API client wrapper
We found that nodejitsu-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.