QuerySessionReportData
Queries the total number of sessions, connected sessions, and streaming sessions by statistical granularity.
Operation description
Queries session quantity reports. StartDate, EndDate, and StatDateType are required. The query span limit is determined by the statistical granularity: up to 1 day for 1m and 30m, up to 15 days for 6h, and up to 180 days for 1d. Both the start and end boundaries are included in the query range. Results are returned in pages, with a maximum of 1,500 records per page.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:QuerySessionReportData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppInstanceGroupId |
string |
No |
The ID of the app instance group, which is used to filter data for a specified app instance group. You can call the ListAppInstanceGroup operation to obtain the ID. If you do not specify this parameter, data is not filtered by app instance group. |
aig-9ciijz60n4xsv**** |
| PageSize |
integer |
No |
The number of entries per page. Default value: 200. If the value exceeds 1,500, it is processed as 1,500. |
100 |
| PageNumber |
integer |
No |
The page number to query. We recommend that you explicitly specify a value starting from |
1 |
| BizRegionId |
string |
No |
The ID of the business region, which is used to filter report data. You can call the ListRegions operation to obtain the ID. |
cn-hangzhou |
| StartDate |
string |
No |
The start time of the statistics. Required. Format: |
2026-09-01 00:00:00 |
| EndDate |
string |
No |
The end time of the statistics. Required. Format: |
2026-09-02 00:00:00 |
| StatDateType |
string |
No |
The statistical granularity. Required. Valid values:
|
1d |
| ProductType |
string |
No |
The product type. Optional. If you do not specify this parameter, data is queried based on the Wuying Cloud App scope. Specify the value in the exact case as follows. Data that cannot be matched is not returned. Valid values:
|
CloudApp |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The API response. |
||
| Code |
string |
The business status code. A value of |
200 |
| Count |
integer |
The total number of records that meet the query conditions. |
3 |
| Message |
string |
The description of the request processing result. Typically, |
success |
| PageNumber |
integer |
The page number corresponding to the current response. |
1 |
| PageSize |
integer |
The number of entries per page used in the current response. |
200 |
| ReportDataModel |
array<object> |
The list of session report data. |
|
|
object |
The report data object. |
||
| ConnectSessionCount |
integer |
The number of connected sessions in the record. |
30 |
| SessionCount |
integer |
The total number of sessions corresponding to the record. |
36 |
| StatDate |
string |
The statistical time. The |
2026-09-01 |
| StreamingSessionCount |
integer |
The number of sessions established through streaming access in the record. |
24 |
| 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",
"Count": 3,
"Message": "success",
"PageNumber": 1,
"PageSize": 200,
"ReportDataModel": [
{
"ConnectSessionCount": 30,
"SessionCount": 36,
"StatDate": "2026-09-01",
"StreamingSessionCount": 24
}
],
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.