@statusify/core
TypeScript icon, indicating that this package has built-in type declarations

1.1.1-alpha.0 • Public • Published


Core for Statusify


Features

  • Incidents
  • Metrics
  • Severities
  • Builder Pattern
  • ASynchronous API

Technologies

Building

$ tsc

Usage

Constructing

Statusify needs to be initialized with Providers and a Severity Calculator, below is a list of included providers and calculators.

Providers

Calculators

const statusify = new Statusify({
  componentProvider: <ComponentProvider>,
  incidentProvider: <IncidentProvider>,
  severityProvider: <SeverityProvider>,
  severityCalculator: <SeverityCalculator>,
});

Fetching Data

All APIs are asynchronous and must therefore be used with Promise#then or await, read more here.

Methods for fetching data can be found within the Statusify class.

Creating Custom Providers and Calculators

Custom providers can be created by implementing one or more of the following interfaces:

Custom calculators can be created by implementing the ICalculatesSeverities interface.

Package Sidebar

Install

npm i @statusify/core

Weekly Downloads

4

Version

1.1.1-alpha.0

License

ISC

Unpacked Size

65.5 kB

Total Files

93

Last publish

Collaborators

  • legendeffects