HOW TO
The service usage by users report, a new ArcGIS Server report, was added with the release of ArcGIS Enterprise 11.5 and is available in the ArcGIS Server Administrator API. This report provides a detailed view of service usage by reporting the number of times a service was accessed by each unique user. This feature gives administrators better visibility into content access within their organization, allowing them to understand usage trends.

{
"reportname": "Service usage by users for the last 7 days",
"since": "LAST_WEEK",
"queries": [
{
"resourceURIs": ["services/"],
"metrics": ["ServiceUsageByUsers"]
}
],
"metadata": {
"temp": false,
"title": "Service usage by users for the last 7 days",
"managerReport": true,
"styles": {
"services/": {
"color": "#382DF5"
}
}
}
}

The above JSON creates a report file that shows the data of the users who accessed the service since “LAST_WEEK”. Additionally, the "resourceURIs": ["services/"]” option indicates that the report will be generated across all the services available on the site. We can create this report for a specific service or a folder as well; however, the syntax for them is different. We can even create this report for multiple options using a comma-separated list such as:
"resourceURIs": ["services/SampleWorldCities.MapServer", "services/System"]


Article ID: 000037241
Get help from ArcGIS experts
Start chatting now