Skip to content

Latest commit

 

History

History
62 lines (43 loc) · 1.08 KB

healthchecks.md

File metadata and controls

62 lines (43 loc) · 1.08 KB
description
Interact with Healthchecks app

Healthchecks

{% embed url="https://healthchecks.io/" %} Website {% endembed %}

If you are in Naas.ai cloud it's already setup, otherwise

HC_API : this should be set as env vars.

this should connect to this docker machine :

{% embed url="https://hub.docker.com/r/galexrt/healthchecks/" %}

Start

key = "123456-123456-12455"
naas_drivers.healthcheck.connect(key).send("start")

Done

key = "123456-123456-12455"
naas_drivers.healthcheck.connect(key).send()

Fail

key = "123456-123456-12455"
naas_drivers.healthcheck.connect(key).send("fail")

Check url

url = "https://google.com"
key = "123456-123456-12455"
naas_drivers.health_check.connect(key).check_up(url)

Connect

{% hint style="warning" %} You can also save your connection and don't repeat it for each method. {% endhint %}

key = "123456-123456-12455"
healthcheck = naas_drivers.healthcheck.connect(key)
healthcheck.send()

Official documentation

{% embed url="https://healthchecks.io/docs" %}