health-check-elastic-search

0.0.2 • Public • Published

Health Check Elastic Search

CI

Circle CI

Install

$ npm install health-check-elastic-search

Usage

var healthCheckElasticSearch = require('health-check-elastic-search');

healthCheckElasticSearch.do({
  host: 'localhost:9200'
})
 .then(function(result){
    console.log(result); 
    
    /* 
      { health: false,
        success: 0,
        error: 1,
        details: 
         [ 
           { 
             name: 'localhost:9200',
             health: false,
             message: 'No Living connections' 
           } 
         ] 
      }
    */
 })
 .catch(function(error){
    console.log(error); 
 });

Package Sidebar

Install

npm i health-check-elastic-search

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • lucastinik