Skip to content

LucasRodrigues/health-check-elastic-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Health Check Elastic Search

Health check to system 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); 
 });

Releases

No releases published

Packages

No packages published