Discover how to integrate and manage your notification system with our simple yet powerful messaging service.
Learn how to create and configure events in MsgGO to manage your message delivery effectively.
To create an event in MsgGO, you need:
By default, MsgGO creates a matching rule based on your event name. For example, if you create an event named "Daily Database Backup", MsgGO will look for messages with:
{"event_name": "daily-database-backup"}
MsgGO's matching system is intentionally designed to be flexible. While we suggest using the event_name
key, you're free to use any identifier that fits your needs, such as "id", "event", "type", or "uid". This flexibility allows you to integrate MsgGO with existing systems without modifying your current event structure or naming conventions.
You can define custom matching rules based on JSON keys and values. For example:
{
"type": "backup",
"database": "production",
"status": "completed"
}
When creating event definitions, it's important to understand how overlapping rules work. Consider this example:
Event Definition A:
{"event_name": "database"}
Event Definition B:
{"event_name": "database", "status": "success"}
If you send this event:
{
"event_name": "database",
"status": "success",
"timestamp": "2023-12-01 12:00:00"
}
To avoid unpredictable matching:
Groups help organize your events logically. You can create groups based on:
You can create nested groups up to two levels deep, for example:
Choose names that clearly indicate the event's purpose:
Select group names that reflect your organization's structure or workflow: