Connecting Maigret with other tools.
./run.pyYou will start maigret-adapter service at localhost:8080.
Now you can use API interface for maigret:
curl localhost:8080 -s | jq ~
{
"maigret-adapter": "0.0.1",
"usage": "/check/{service}/{site}/{identifier}",
"services": [
"test_service",
"mailcat"
]
}You have to install Maigret first.
./test.sh-
Use
integrations/test_adapter.pyas a template. -
Add import to
integrations/__init__.py -
Register adapter in
run.py -
Run server and make health-check of your service with the name used in
run.py:
curl localhost:8080/sites/<NAME> -v