QueryConnectionReport

Updated at:

Queries the number of successful connections, the number of failed connections, the success rate, and the average connection duration within a specified time range.

Operation description

Queries connection statistical reports. Before you invoke this operation, you can invoke ListRegions and ListAppInstanceGroup to obtain the BizRegionId and AppInstanceGroupId parameters. The ProductType, StartDate, and EndDate parameters are required for server-side validation. The statistical interval is [StartDate, EndDate), which includes the start time but excludes the end time. Results are returned by page, with a maximum of 1,500 entries per page.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

appstreaming:QueryConnectionReport

none

*All Resource

*

None None

Request syntax

POST  HTTP/1.1

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 ListAppInstanceGroup 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. If you do not specify this parameter, the service processes the request as the first page, but the response may echo 0.

1

BizRegionId

string

No

The ID of the business region, which is used to filter report data. You can call ListRegions to obtain the ID.

cn-hangzhou

StartDate

string

No

The start time of the statistics. Required. Format: yyyy-MM-dd HH:mm:ss. The statistical interval includes the start time but excludes the end time. The time span cannot exceed 60 months. The string itself does not carry a time zone and is interpreted in the Asia/Shanghai (UTC+8) time zone.

2026-09-01 00:00:00

EndDate

string

No

The end time of the statistics. Required. Format: yyyy-MM-dd HH:mm:ss. The value cannot be earlier than StartDate. The statistical interval includes the start time but excludes the end time. The time span cannot exceed 60 months. The string itself does not carry a time zone and is interpreted in the Asia/Shanghai (UTC+8) time zone.

2026-09-02 00:00:00

ProductType

string

No

The product type. Required.

Valid values:

  • CloudApp: Wuying cloud app.

  • CloudBrowser: Cloud browser.

  • WuyingServer: Enterprise edition workstation.

  • WuyingWorkstation: Personal edition Linggou container workstation.

  • WuyingWorkstationTeam: Team edition Linggou container workstation.

  • WuyingWorkstationBusiness: Dedicated edition Linggou container workstation.

  • AndroidCloud: Cloud phone.

  • AIAgent: AgentBay (AI agent).

CloudApp

Response elements

Element

Type

Description

Example

object

The API response.

Code

string

The business status code. 200 indicates that the request is successful. Other values indicate that the request failed.

200

ConnectionReportDataModel

array<object>

The list of connection report data.

object

The ConnectionReportDataModel object.

AppInstanceGroupId

string

The ID of the app instance group.

aig-9ciijz60n4xsv****

ConnectionAvgDurationSeconds

number

The average duration of successful connections. In the current version, the return value is in milliseconds, so parse it as milliseconds. The Seconds in the field name is retained for compatibility and does not indicate the unit. This value may not be returned if there are no successful connections.

1250

ConnectionFailureCount

integer

The number of connection failures within the statistical window.

2

ConnectionSuccessCount

integer

The number of successful connections within the statistical window.

98

ConnectionSuccessRate

number

The connection success rate, which is calculated by dividing the number of successful connections by the sum of successful and failed connections. The value ranges from 0 to 1. Multiply the value by 100 to get the percentage. This value may not be returned if there are no connection records.

0.98

RegionId

string

The ID of the business region to which the report data belongs.

cn-hangzhou

StatEndDate

string

The end time of the statistical window. Format: yyyy-MM-dd HH:mm:ss. The string itself does not carry a time zone and is interpreted in the Asia/Shanghai (UTC+8) time zone.

2026-09-01 10:05:00

StatStartDate

string

The start time of the statistical window. Format: yyyy-MM-dd HH:mm:ss. The string itself does not carry a time zone and is interpreted in the Asia/Shanghai (UTC+8) time zone.

2026-09-01 10:00:00

Count

integer

The total number of records that meet the query conditions.

3

Message

string

The description of the request processing result. success is usually returned when the request is successful.

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

RequestId

string

The unique identifier of the current request, which can be used to troubleshoot the request.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Examples

Success response

JSON format

{
  "Code": "200",
  "ConnectionReportDataModel": [
    {
      "AppInstanceGroupId": "aig-9ciijz60n4xsv****",
      "ConnectionAvgDurationSeconds": 1250,
      "ConnectionFailureCount": 2,
      "ConnectionSuccessCount": 98,
      "ConnectionSuccessRate": 0.98,
      "RegionId": "cn-hangzhou",
      "StatEndDate": "2026-09-01 10:05:00",
      "StatStartDate": "2026-09-01 10:00:00"
    }
  ],
  "Count": 3,
  "Message": "success",
  "PageNumber": 1,
  "PageSize": 200,
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.