How can i use 'usage_reports' from AGOLAdminManager

1012
3
09-18-2017 04:27 AM
PhanindraDulam1
New Contributor II

Hello,

Can you please guide me how can I use 'usage_reports' from AGOLAdminManager and retrieve reports.

Thank you,

3 Replies
BarryBiediger
New Contributor III

Did you ever figure this out?

0 Kudos
deactivated-user-ChrisBeaudett
New Contributor III

We have the same question.  In particular, it would be helpful to have documentation or samples for these reports.

We were able to generate a user report using the following code, but it would be nice to see all reporting options and available parameters.

import arcgis, datetime, time
from arcgis.gis import GIS
import getpass
password = getpass.getpass("Enter Password: ")
gis = GIS("https://our_agol_hostname.maps.arcgis.com", "user_account", password)
print ("Logged in!")
gis.admin.usage_reports.applications()
MJBiazar
Esri Contributor

Hi @PhanindraDulam1,

 

You can use AGOLUsageReports in arcgis.gis.admin module to generate different reports :

  • applications: Creates a usage report for all registered application logins for a given organization on ArcGIS Online.
    •  gis.admin.usage_reports.applications(start_time=Nonetime_frame='week')
  • credit : Creates a Report as a Panda’s dataframe or CSV file for a given time range for ArcGIS Online Organizations.
    • gis.admin.usage_reports.credit(start_time=Nonetime_frame='week'export=False)
  • users: Creates a usage report for all users for a given organization on ArcGIS Online.
    • gis.admin.usage_reports.users(start_time=None, time_frame='week')

 

For more details, please see our documentation:

https://developers.arcgis.com/python/api-reference/arcgis.gis.admin.html#agolusagereports

 

Best,

MJ

0 Kudos