Webhook for Beaconing Analytics
10K+
This code belongs to e-UCM research group and has been developed for the H2020 BEACONING Project and sends analytics information to a server; or, if the server is currently unavailable, stores them locally until it becomes available again.
![]()
This repository helps to create webhooks to notify events. A webhook may contain the following fields:
Creation and deletion of webhooks and events is possible via the following routes. To enter the webhook, a password is required. This password is located in the root directory of the analytics framework in a file named .env .
GET /webhooks/: lists the webhooksPOST /webhooks/: creates a webhookGET /webhooks/delete/id: deletes the webhook with id
GET /events/: lists the event typesPOST /events/: creates an event typeGET /events/delete/id: deletes the event type with idPOST /events/collector/event_type: sends its body to the webhooks. The endpoints will receive a header with the event_type annd the body sent.
There are 5 special events. Those events have been hardcoded and behave as synchronous instead of the async workflow of a webhook. Every Special event must be authenticated, including a valid A2 Authentication header (see http://e-ucm.github.io/a2/#api-Login-Login). These events are the following:
When a GLP is assigned to a group in Beaconing, webhook is notified and creates the Activities, Dashboards, and everything needed to collect data.
Event info:
POST /events/glp_assigned: creates everything required for that GLP to perform analysisBODY params:
When a user is created in Beaconing, webhook is notified and creates a clone of that user.
Event info:
POST /events/user_created: creates a clone of the userBODY params:
When a group is created in Beaconing, webhook is notified and creates a clone of that group.
Event info:
POST /events/group_created: creates an clone of the groupBODY params:
When participants are added to a group, webhook is notified and updates the group.
Event info:
POST /events/group_participants_added: adds participants to a groupBODY params:
When participants are removed to a group, webhook is notified and updates the group.
Event info:
POST /events/group_participants_removed: removes participants from a groupBODY params:
When a group is removed, webhook is notified and removes the group.
Event info:
POST /events/group_removed: removes a groupBODY params:
Content type
Image
Digest
Size
343.8 MB
Last updated
over 7 years ago
docker pull eucm/beaconing-analytics-webhookPulls:
33
Last week