Coder Social home page Coder Social logo

notify-server-status's Introduction

Build Status

できること

  1. 外部サーバの死活監視 1.1. ステータスコード 1.2. レスポンスタイム
  2. Slackへの通知

引数サンプル

引数名 説明
url チェック対象のURL
expected_code 期待されるステータスコード e.g. 200 301 500 2xx
timeout タイムアウトまでの秒数(ms)
ok_text 成功したときのSlackに投げるテキスト。何もなし可。 e.g. ""
ng_text 失敗したときのSlackの通知するテキスト e.g. "@channel コード$code サーバが落ちています"
https://example.com/notify-server-status?url=http://example.com&expected_code=200&ng_text=failed

https://example.com/notify-server-status?url=http://example.com&expected_code=200&ok_text=success

モック

https://qiita.com/kenshiroh/items/5ee5248ddafea0ae5572

参考パッケージ

https://www.npmjs.com/search?q=notify-server-status

https://www.npmjs.com/package/@m03geek/server-status

https://www.npmjs.com/package/connect-server-status

https://www.npmjs.com/package/status-monitor

https://www.npmjs.com/package/server-health

https://www.npmjs.com/package/hubot-site-health-examine

Node.jsの公開について https://2017.l2tp.org/archives/107

notify-server-status's People

Contributors

yousan avatar ketch123 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.