I'm building a dashboard to try to monitor credit usage on AGOL based on this blog post: https://www.esri.com/arcgis-blog/products/arcgis-online/administration/managing-arcgis-online-content-with-arcgis-dashboards-and-arcgis-notebooks/ But there seems to be an issue with the calculation of feature service credit usage; the results are way overestimating the credit consumption (as compared to the standard reporting available in AGOL). I've traced the problem to the fact that the calculation only uses the total size of the feature service including attachments, but credit consumption is calculated independently for the feature service (at 2.4 credits/10MB/month) and the attachments (1.2 credits/1GB/month). My question is how can I access the feature service size? It must be possible given that the feature service and attachment storage sizes are reported independently on the feature service's item info page. I don't see anything in the ArcGIS API for Python documentation, nor the REST API documentation. The only path forward I see is summing the size of all attachments for each feature service and subtracting that from the total size of the feature service. That feels... suboptimal. Thanks!
... View more