You can programmatically access statistics of Access Gateways, Identity Servers, and ESP.
Section 24.3.1, Monitoring API for Identity Server Statistics
Section 24.3.2, Monitoring API for Access Gateway Statistics