Help Center/ CodeArts Pipeline/ API Reference/ API/ Pipeline Management/ Obtaining the Pipeline Running Statistics Trend
Updated on 2026-09-24 GMT+08:00

Obtaining the Pipeline Running Statistics Trend

Function

Obtaining the Pipeline Running Statistics Trend

Calling Method

For details, see Calling APIs.

URI

POST /v5/{tenant_id}/api/dashboard/stats-trend

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

tenant_id

Yes

String

Definition

Tenant ID.

Constraints

N/A

Range

32 characters.

Default Value

N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

pipeline_id

No

String

Definition

Pipeline ID.

Constraints

This parameter is mandatory when type is set to 3. In other scenarios, this parameter is left empty.

project_id

No

String

Definition

Project ID.

Constraints

This parameter is mandatory when type is set to 2. In other scenarios, this parameter is left empty.

start_time

No

Long

Definition

Timestamp when statistics collection starts.

Constraints

A timestamp in milliseconds

end_time

No

Long

Definition

Timestamp when statistics collection ends.

Constraints

A timestamp in milliseconds

type

No

Integer

Definition

Query type.

Range

  • 1: tenant dimension.

  • 2: project dimension.

  • 3: pipeline dimension.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

ts

Long

Definition

Timestamp.

runningTotal

Integer

Definition

Total number of executions.

queueTotal

Integer

Definition

Total number of queues.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Statistics obtained successfully.

Error Codes

See Error Codes.