GetAiAppDetailStat

Updated at:

Retrieves the statistical data of an AI application.

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

yundun-greenweb:GetAiAppDetailStat

none

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

The ID of the AI application. This parameter is required.

id-xxx

StartTime

string

No

The start time of the query. Specify the time in the YYYY-MM-DD HH:mm:ss format.

2024-09-10 14:48:01

EndTime

string

No

The end time of the query. Specify the time in the YYYY-MM-DD HH:mm:ss format.

2025-07-09 10:30:00

RegionId

string

No

The ID of the region to which the application belongs.

cn-shanghai

Response elements

Element

Type

Description

Example

object

PortalResponse

RequestId

string

The ID assigned by the backend to uniquely identify a request. You can use this ID to troubleshoot issues.

AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****

AppId

string

The ID of the application.

id-xxx

ModelCount

integer

The number of model invocations.

15

ModelCountDau

number

The day-over-day comparison of the number of model invocations.

0.15

TokenCount

integer

The number of consumed tokens.

11000

TokenCountDau

number

The day-over-day comparison of the number of consumed tokens.

-0.15

AvgModelDuration

number

The average duration of model invocations.

2.55

AvgModelDurationDau

number

The day-over-day comparison of the average duration of model invocations.

0.05

RiskEventCount

integer

The number of risk events.

1

Examples

Success response

JSON format

{
  "RequestId": "AAAAAA-BBBB-CCCCC-DDDD-EEEEEEEE****\n",
  "AppId": "id-xxx",
  "ModelCount": 15,
  "ModelCountDau": 0.15,
  "TokenCount": 11000,
  "TokenCountDau": -0.15,
  "AvgModelDuration": 2.55,
  "AvgModelDurationDau": 0.05,
  "RiskEventCount": 1
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter.%s %s. The request parameters are invalid. Please check the parameter values or value ranges and try again.
400 MissingParameter.%s %s. The request is missing required parameters. Please provide them and try again.
400 OperationFailed %s. Request processing failed, please try again later. If the problem is not resolved, contact technical support and provide RequestId.
400 ResourceNotFound.%s %s. The requested resource does not exist. Please check the resource information and try again.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.