QueryUserAppUsageTimeRank
Queries the ranking of cumulative application usage duration for a specified user within a date range.
Operation description
Queries the ranking of application usage duration for a specified user within a statistical range. StartDate and EndDate use the yyyyMMdd format. If either parameter is not provided, it defaults to yesterday. Both dates must be within the last 90 days, and the start date cannot be later than the end date. The query range includes the start and end dates. UserId must be set to the ID of the user to be queried. The results are sorted in descending order of cumulative application usage duration.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:QueryUserAppUsageTimeRank |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID for OpenAPI access, which is used for request authentication and routing. To filter business data by region, use |
cn-hangzhou |
| AppInstanceGroupId |
string |
No |
The ID of the app instance group, which is used to filter data for a specified app instance group. If this parameter is not provided, data is not filtered by app instance group. |
aig-9ciijz60n4xsv**** |
| StartDate |
string |
No |
The start date of the statistical period, in |
20260901 |
| EndDate |
string |
No |
The end date of the statistical period, in |
20260907 |
| UserId |
string |
No |
The ID of the end user to be queried. This parameter must be explicitly provided. If it is not provided, no matching records are usually returned. |
user01 |
| BizRegionId |
string |
No |
The business region ID, which is used to filter application usage data. If this parameter is not provided, data is not filtered by business region. You can call the ListRegions operation to obtain the ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response. |
||
| Code |
string |
The business status code. A value of |
200 |
| IndexData |
array<object> |
The ranking list of user application usage duration, sorted in descending order of cumulative usage duration. |
|
|
object |
The data list object. |
||
| AppId |
string |
The ID of the application. |
app-9ciijz60n4xsv**** |
| AppName |
string |
The name of the application. |
Visual Studio Code |
| AppTimeCnt |
string |
The cumulative usage duration of the application within the statistical range. Unit: seconds. |
200 |
| AppVersion |
string |
The version of the application. The current version may not return this value, and callers should not rely on this field. A non-empty value indicates the application version. |
1.96.0 |
| Message |
string |
The description of the request processing result. If the request is successful, |
success |
| RequestId |
string |
The unique identifier of the request, which can be used to troubleshoot request issues. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Examples
Success response
JSON format
{
"Code": "200",
"IndexData": [
{
"AppId": "app-9ciijz60n4xsv****",
"AppName": "Visual Studio Code",
"AppTimeCnt": "200",
"AppVersion": "1.96.0"
}
],
"Message": "success",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.