> Imported from Azure DevOps wiki (Products/Custodian/Custodian-Functions.md). Generated 2026-05-05T21:22:35Z from clone /Users/ck/Sites/asp-azure-tenant/vendor/StrategicDigitalServices.wiki. > > Attachment links may still point at paths in the wiki repository; open the clone under .attachments/ if previews break.
There are 2 function apps relating to Custodian …
Custodian.Statistics – in its own solution.
- An Azure Logic App, _custodian-stats_, runs under the infrastructure resource group, on a recurring timer to collect specific entries from application insights and adds them to a service bus queue.
- 2 functions
- AddStatisticsEntry
- triggered by service bus queue
- Takes messages from a service bus queue and adds them to the AiStatistics database table.
- SendStats
- triggered by timer
- Gathers records from the AiStatistics table into a csv file and send as an email attachment.
Custodian.Functions – in the Custodian solution.
- Just 1 function
- BailApproaching
- triggered by timer
- Extracts instances of expected suspect bail appearances, grouped by OIC and adds them to a service bus queue (intended for _Aspolice.CustodianIntegration.Mailer_ integration service running on an internal force system).