Skip to content

🩺 a simple asynchronous javascript client for kuberhealthy

Notifications You must be signed in to change notification settings

gWOLF3/kuberhealthy-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kuberhealthy-client 🩺

npm version

a simple, asynchronous javascript client for kuberhealthy synthetic checks.

install

npm i --save kuberhealthy

use:

const kh = require('kuberhealthy')

// Report failure. Returns Promise.
kh.ReportFailure(['example failure message'])

// Report success. Returns Promise.
kh.ReportSuccess()

NOTE: KH_REPORTING_URL must be set in your env. This is usually done automatically if running as 'khcheck' on kubernetes.

example:

const report = async () => {
  try {
    await kh.ReportSuccess()
  } catch (e) {
    console.error(e)
    process.exit(1)
  }
  process.exit(0)
}

report()

credit:

About

🩺 a simple asynchronous javascript client for kuberhealthy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published