Connecting Maigret with other tools.
./run.py
You 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.py
as 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