description |
---|
Interact with Healthchecks app |
{% 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/" %}
key = "123456-123456-12455"
naas_drivers.healthcheck.connect(key).send("start")
key = "123456-123456-12455"
naas_drivers.healthcheck.connect(key).send()
key = "123456-123456-12455"
naas_drivers.healthcheck.connect(key).send("fail")
url = "https://google.com"
key = "123456-123456-12455"
naas_drivers.health_check.connect(key).check_up(url)
{% 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()
{% embed url="https://healthchecks.io/docs" %}