soxoj / maigret-adapter

Connect Maigret with other tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maigret-adapter

Connecting Maigret with other tools.

Usage

./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"
  ]
}

Testing

You have to install Maigret first.

./test.sh

How to register you service

  1. Use integrations/test_adapter.py as a template.

  2. Add import to integrations/__init__.py

  3. Register adapter in run.py

  4. Run server and make health-check of your service with the name used in run.py:

curl localhost:8080/sites/<NAME> -v

Scheme

Maigret-adapter scheme

About

Connect Maigret with other tools

License:MIT License


Languages

Language:Python 90.5%Language:Shell 9.5%