0.0.1 • Published 7 years ago

dashli-website-status-collector v0.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

Build Status Coverage Status

Website Status Collector for Dashli

Requests a url and returns the status and the response time.

Installation

  yarn add dashli-website-status-collector

Usage

  import websiteStatus from 'dashli-website-status-collector';

  dashli.addCollector(
    'google-status',
    websiteStatus({ title: 'Google', url: 'https://www.google.com' }),
    { cron: '* * * * *' });

Configuration Options

PropertyOptionalDefaultDescription
titleno-Title
urlno-url to request
methodyesGEThttp method to use
headersyes-http headers to use (format {a:'1'} or {b:'1','2','3'})
methodyesGEThttp method to use
timeoutyes1000timout in milliseconds
testyes-string to search on the response body
historySizeyes30number of values to store in the history

License

This project is licensed under the MIT License - see the LICENSE file for details

0.0.1

7 years ago