You can use Webhooks to get data from GMetri into your system/platform. Webhooks are supported for viewer's variable changes, session creations, and rule triggers.
GMetri Webhooks are pseudo real-time with a max delay of 60 seconds.
If there are a large number of responses, GMetri will batch responses in groups of 500, sent with a minimum gap of 200ms between consecutive queries.
GMetri doesn't have the ability to resend/retry webhooks incase of an error response.
This webhook sends back an array of responses (viewer updates, session creation). Responses could be one of three types - variables, rules, session. Viewers are identified by their identifier, which depends on the authentication mechanism selected for the deployment.
Two inputs are needed from you to enable this webhook:
typeRuleWebhookData= { identifier:string, rules: { cid:number,//rule id cname:string,//rule name scene_name:string,//scene name where the rule was triggered timestamp:number,// epoch ms }[]};