@balena/jellyfish-plugin-incidents
TypeScript icon, indicating that this package has built-in type declarations

8.13.0 • Public • Published

Jellyfish Incidents Plugin

Provides the tools to manage outage incidents from within Jellyfish.

Usage

Below is an example how to use this library:

import { incidentsPlugin } from '@balena/jellyfish-plugin-incidents';
import { PluginManager } from '@balena/jellyfish-worker';

// Load contracts from this plugin
const pluginManager = new PluginManager([
	incidentsPlugin(),
]);
const contracts = pluginManager.getCards();
console.dir(contracts);

Documentation

Visit the website for complete documentation: https://product-os.github.io/jellyfish-plugin-incidents

Testing

Unit tests can be easily run with the command npm test.

You can run integration tests locally against Postgres and Redis instances running in docker-compose:

npm run compose
REDIS_HOST=localhost POSTGRES_HOST=localhost npm run test:integration

You can also access these Postgres and Redis instances:

PGPASSWORD=docker psql -hlocalhost -Udocker
redis-cli -h localhost

Readme

Keywords

none

Package Sidebar

Install

npm i @balena/jellyfish-plugin-incidents

Weekly Downloads

1

Version

8.13.0

License

AGPL-3.0

Unpacked Size

94.4 kB

Total Files

57

Last publish

Collaborators

  • dfunckt
  • page
  • balena.io