Core for Statusify
- Incidents
- Metrics
- Severities
- Builder Pattern
- ASynchronous API
$ tsc
Statusify needs to be initialized with Providers and a Severity Calculator, below is a list of included providers and calculators.
- Builder (Component + Severity)
- ArrayIncidentProvider (Incident)
const statusify = new Statusify({
componentProvider: <ComponentProvider>,
incidentProvider: <IncidentProvider>,
severityProvider: <SeverityProvider>,
severityCalculator: <SeverityCalculator>,
});
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.
Custom providers can be created by implementing one or more of the following interfaces:
Custom calculators can be created by implementing the ICalculatesSeverities interface.