devlooped / devlooped/WhatsApp

Add automatic telemetry reporting for endpoint availability messages

Open
#280 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
13
Forks
3
PR merge metrics
No merged PRs in 30d

Description

When using our endpoint for flow data, WhatsApp for Business will automatically send endpoint availability updates (from pings and actual usage) stats which we should track and report as our own telemetry for unified tracking.

Docs: https://developers.facebook.com/docs/whatsapp/flows/guides/healthmonitoring

Example of a message:

{
  "entry": [
    {
      "id": "539235785933710",
      "time": 1755544869,
      "changes": [
        {
          "value": {
            "event": "ENDPOINT_AVAILABILITY",
            "message": "Flow endpoint availability successfully recovered. Users will now be able to open and use the flow.",
            "flow_id": "1987937931743377",
            "availability": 100,
            "threshold": 90,
            "alert_state": "DEACTIVATED"
          },
          "field": "flows"
        }
      ]
    }
  ],
  "object": "whatsapp_business_account"
}

Back this issue
Back this issue

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source file, entry point, or test. Start by reading the linked WhatsApp health-monitoring documentation and locating the webhook handling for Flow messages, then compare it with the example payload. Done means endpoint-availability events are included in unified telemetry, with coverage for the supplied event shape.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.