Hello, we work in a big organization where we have many users and projects in ArcGIS Online. For us, it is very important to keep track of credit usage to assign its cost to the appropriate project. Also, we must recommend good practices to reduce and optimize credit usage. We have noticed that the main cost of credits come from storage.
Even though ArcGIS Online provides specific reports that offer information about the size of different items, detailing the size of feature storage and file storage, we need to exploit this information in an external database to obtain dashboards personalized for our purposes.
We have developed a Python script that gets all information that we need from our AGOL, and download it in our database weekly. But we cannot get some data as total attachments size unless it gets through each feature in every layer, which can take hours or days.
This information is clearly somewhere in ArcGIS on line, linked to each item. It is provided in the reports and in the details shown in the item page, so it seem easy to get. But we have not found the property to query this information easily with our script (something as featureLayer.properties.AttachmentsSize).
Has anybody found the way to query attachments size with a unique command instead of querying each individual item of a layer?
Thank you.