REST and SOAP API analytics collection and cleanup
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API implementation
API analytics uses scheduled jobs to collect and clean up analytics data.
The instance tracks all web service transactions for APIs on the inclusion list and maintains a daily history, aggregated by resource and HTTP action combination. Requester information is aggregated per requester, resource, and HTTP action combination and tracked up to the daily limit defined by the property com.glide.api.stats.daily_ limit.
On the 2nd of each month, the API Monthly Stats scheduled job calculates the monthly total for each resource and HTTP action combination. Each day the API Monthly Requestor Stats scheduled job calculates the monthly total for each resource, requester, and HTTP action combination based on daily scores older than 2 days.
Daily statistics are maintained for 33 days. Monthly totals are maintained for 13 months. Table cleaners for the sys_api_stats, sys_api_stats_requestor, and sys_api_stats_requestor_monthly tables remove analytics records older than these limits.
REST & SOAP API analytics naming
The API Name used when tracking API analytics is determined by the type of API being described, such as a REST API or a Scripted SOAP service.