开发者社区> 镜像站> NPM> stillalive
stillalive
still alive ====
Last updated 6 years ago by cwmma .
MIT · Original npm · Tarball · package.json
$ cnpm install stillalive 
SYNC missed versions from official npm registry.

still alive

Confirm a process is still alive, and if it isn't, send an email about it.

Only works with mandrill so the config needs to be

{
  "key": "server key",
  "api": "mandrill api key"
}

npm install -g stillalive

stillalive ./path/to/config port

port is optional, defaults to process.env.PORT followed by 3000.

usage

send a put to host/still/alive/:id where id is your app specific timeout's name

the body of your request should be json with

{
  "key": "server key (set in your config file)",
  "email": {
    "from_email": "you@domain.tld",
    "to": [
      {
        "type": "to",
        "email": "name@domain.tld",
        "name": "Their Name"
      }
    ],
    "subject": "subject line",
    "text": "text body of email"
  },
  "interval": {
    "minutes": 5
  }
}

interval field is passed to interval.

Current Tags

  • 0.3.0                                ...           beta (5 years ago)
  • 1.1.0                                ...           latest (6 years ago)

7 Versions

  • 0.3.0                                ...           5 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
  • 0.2.0                                ...           7 years ago
  • 0.1.0                                ...           7 years ago
  • 0.0.1                                ...           7 years ago
  • 0.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None