status-warden-model

0.0.32 • Public • Published

Status Warden Model

The status warden model is the mongoose data model used throughout the status warden application stack for interfacing with the underlying mongodb database.

Installation

$ npm install status-warden-model

Example Usage

var model = require('status-warden-model');
 
var monitor = new Monitor({
    job: (job-id)
    name: 'Status Warden Monitor',
    url: 'http://www.statuswarden.com',
    user: (user-id)
});
 
monitor.save(function(err, monitor) {
   if (err) return console.error(err);
   console.dir(monitor);
});

Model Entities

Job - A job is a defined task scheduled to be carried out at a point in the future eg. email notifications, url status check.

Monitor - A monitor contains a web address that is periodically requested to monitor the urls status for a particular user.

MonitorEvent - A monitor event stores information regarding events occuring on a particular monitor.

User - This holds details of a particular user account, including authentication details, email, display name and roles.

Status Warden

Status Warden is a status monitoring service for supervising web address health. The warden monitors the status of a web address at a configurable interval and provides serviceable intelligence through email notifications and a web based dashboard.

Features

  • Periodic monitoring of web addresses
  • Email notifications on status change
  • Configurable monitoring interval
  • Basic authentication
  • REST style facade API
  • Web based dashboard

Related Links & Documents

Readme

Keywords

Package Sidebar

Install

npm i status-warden-model

Weekly Downloads

4

Version

0.0.32

License

none

Last publish

Collaborators

  • gdownes