GetAgentRuntimeStatistic

Updated at:

Queries the statistics of runtimes of a specified type under the current Alibaba Cloud account, grouped by agent platform and agent provider. The statistics include the total number of runtimes, the number of runtimes without a configured model, the number of runtimes without a configured channel, the number of risky runtimes, and the number of expired runtimes.

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:GetAgentRuntimeStatistic

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RuntimeType

string

Yes

The runtime environment type of the runtime resource.

Valid values:

  • WuyingWorkstation :

    personal edition JVSClaw.

  • CloudDesktop :

    AI cloud desktop.

  • LocalDesktop :

    local desktop.

  • CloudPhone :

    cloud phone.

  • LocalPlugin :

    local lightweight plugin.

CloudDesktop

AgentProvider

string

No

The agent provider used to filter the statistics scope, such as AgenticComputer. If this parameter is not specified, all agent providers are included in the statistics. If an unsupported value is passed, a parameter error is returned.

Valid values:

  • HermesAgent :

    Hermes Agent

  • OpenClaw :

    JVS Computer or OpenClaw.

  • AgenticComputer :

    AI cloud desktop.

AgenticComputer

BizType

integer

Yes

The business type used to filter runtimes of a specified business type.

Valid values:

  • 1 :

    enterprise edition.

  • 10 :

    personal edition.

  • 20 :

    commercial edition.

1

AgentPlatform

string

No

The agent platform used to filter the statistics scope, such as ENTERPRISE_AGENTIC_COMPUTER. If this parameter is not specified, all agent platforms are included in the statistics. If an unsupported value is passed, a parameter error is returned.

Valid values:

  • ENTERPRISE :

    enterprise agent.

  • JVS :

    personal edition JVSClaw.

  • ENTERPRISE_AGENTIC_COMPUTER :

    AI cloud desktop.

ENTERPRISE_AGENTIC_COMPUTER

Response elements

Element

Type

Description

Example

object

The agent runtime statistics.

Data

array<object>

The list of runtime statistics grouped by agent platform and agent provider. If AgentProvider is specified but no matching runtimes are found, a record with all statistical values set to 0 is returned.

object

AgentProvider

string

The agent provider, such as AgenticComputer.

Valid values:

  • HermesAgent :

    Hermes Agent

  • OpenClaw :

    JVSComputer/OpenClaw

  • AgenticComputer :

    AI cloud desktop.

AgenticComputer

AgentPlatform

string

The agent platform, such as ENTERPRISE_AGENTIC_COMPUTER.

Valid values:

  • ENTERPRISE :

    enterprise agent.

  • JVS :

    personal edition JVSClaw.

  • ENTERPRISE_AGENTIC_COMPUTER :

    AI cloud desktop.

ENTERPRISE_AGENTIC_COMPUTER

AgentDisplayName

string

The display name of the agent, which is determined by both the agent platform and the agent provider. For example, OpenClaw under the ENTERPRISE platform is displayed as OpenClaw, and OpenClaw under the JVS platform is displayed as JVS Claw.

Agentic Computer

TotalRuntimeCount

integer

The total number of runtime resources in this group, deduplicated by runtime ID.

10

NoModelConfiguredRuntimeCount

integer

The number of runtime resources without a configured model in this group. A runtime is considered to have a configured model if either the runtime itself or its associated resource group has a model configured.

2

NoChannelConfiguredRuntimeCount

integer

The number of runtime resources without a configured channel in this group, which is the total number of runtime resources minus the number of runtime resources with a configured channel.

3

RiskyRuntimeCount

integer

The number of risky runtime resources in this group, deduplicated by runtime ID. A runtime is counted as risky if it has any of the following risks: the model configuration is modified, the third-party channel configuration is modified, or the agent is being uninstalled.

1

ExpiredCount

integer

The number of expired runtime resources in this group. A runtime is counted as expired if its resource status is Expired or Ceased, case-insensitive.

0

TotalCount

integer

The number of returned statistics records, which is the length of the Data list.

1

RequestId

string

The request ID, which is used to uniquely identify the request.

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

Examples

Success response

JSON format

{
  "Data": [
    {
      "AgentProvider": "AgenticComputer",
      "AgentPlatform": "ENTERPRISE_AGENTIC_COMPUTER",
      "AgentDisplayName": "Agentic Computer",
      "TotalRuntimeCount": 10,
      "NoModelConfiguredRuntimeCount": 2,
      "NoChannelConfiguredRuntimeCount": 3,
      "RiskyRuntimeCount": 1,
      "ExpiredCount": 0
    }
  ],
  "TotalCount": 1,
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.