Intevel / directus-logsnag

πŸ“’ Easily get notified when something in Directus happens.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

directus-logsnag

Directus LogSnag

πŸ“’ Get notified when something in Directus happens.

What is LogSnag?

LogSnag is a simple event tracking tool. It helps you keep track what is happening within your projects, creates custom feeds, and notifies you of important events. Register your application here

Installation

If you have any questions or problems, open an discussion on Github.

  1. Firstly create a LogSnag account
  2. Create your LogSnag project and your channels
  3. Get your LogSnag API Token, from the API page under settings. Generate or revoke your API tokens there.
  4. Clone this repository, copy the file from dist to your directus extensions folder /extensions/hooks/directus-logsnag/.
  5. Now you can get started with configuring ✨

Configuration

Your configuration file should be in your directus extensions folder under /extensions/hooks/directus-logsnag/logsnag.config.json.

{
	"api_token": "-",
	"events": [
		{ "name": "users.create", "project": "test", "channel": "nuxttest", "event": "New User!", "description": "A new Directus user was created", "icon": "πŸ€‘", "notify": true },
		{ "name": "payments.create", "project": "test", "channel": "nuxttest", "event": "New Payment", "description": "We've got a new payment :)", "icon": "πŸ’Έ", "notify": true }
	]
}

This is the configuration scheme, please insert your LogSnag API Token in api_token. Now you can configure your events, name is the parameter for the event name in Directus. So users.create would be the event in Directus which is called when a new User is created, after the event name, the LogSnag Configuration follows, this is how the message which is sended to LogSnag look like.

License

Published under MIT - Made with πŸ’œ by Conner Luka Bachmann

About

πŸ“’ Easily get notified when something in Directus happens.

License:MIT License


Languages

Language:TypeScript 100.0%