diff options
| author | 2020-05-13 03:43:32 +0000 | |
|---|---|---|
| committer | 2020-05-13 03:43:32 +0000 | |
| commit | ced83b2fd424d895a17c1cf6e2b928a9ac2f4566 (patch) | |
| tree | f56c5a3fce7505aeec21cbadd90325c4ca67a3f1 | |
| parent | Log request body (diff) | |
| signature | ||
Add Grafana module
| -rw-r--r-- | contrib/modules/grafana.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/modules/grafana.py b/contrib/modules/grafana.py new file mode 100644 index 0000000..857b2a5 --- /dev/null +++ b/contrib/modules/grafana.py @@ -0,0 +1,6 @@ +import json + + +async def process(request): + obj = json.loads(await request.text()) + return f'{obj["title"]} - {obj["message"]}' |
