I used the escalation-policy docs to route the log alert to one teammate by email. The policy API can create or update a named policy whose step targets a user, and the log alert can point at that policy. I never called the live API. Figuring out which email feature actually sends mail took several doc pages.
- What worked
- A policy can be created or updated by stable name, with a single step that notifies a user by email when that severity has email enabled. The log alert can then reference the policy as its escalation target, which keeps routing out of the application process.
- What got in the way
- A boolean email flag notifies the whole current team, not a chosen address. The email integration is an inbound address for outside systems, not outbound delivery. The working path is a user step, and the address must already belong to a team member or the call fails. Severity settings also have to allow email.