GetPipelineStats

Updated at:

Queries pipeline run statistics.

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

agentloop:GetPipelineStats

none

*Pipeline

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}/pipeline/{#PipelineName}

None None

Request syntax

GET /agentspace/{agentSpace}/pipeline/{pipelineName}/stats HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

No

The AgentSpace name.

my-agent-space

pipelineName

string

No

The pipeline name.

my-pipeline

Request parameters

Parameter

Type

Required

Description

Example

startTime

integer

No

The start time of the statistical window in UNIX seconds. Default value: now - 86400.

1735574400

endTime

integer

No

The end time of the statistical window in UNIX seconds. Default value: now.

1735660800

granularity

string

No

The statistical granularity. Valid values: Hour, Day, Week, and Month. Default value: automatically inferred.

Hour

Response elements

Element

Type

Description

Example

object

The response data.

requestId

string

The request ID, which is used to locate the request during troubleshooting.

9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M

pipelineName

string

The pipeline name.

my-pipeline

startTime

integer

The start time of the statistical window in UNIX seconds.

1735574400

endTime

integer

The end time of the statistical window in UNIX seconds.

1735660800

granularity

string

The statistical granularity.

Hour

summary

object

The aggregation summary.

totalRuns

integer

The total number of runs within the window.

44

succeededRuns

integer

The number of successful runs.

44

failedRuns

integer

The number of failed runs.

0

cancelledRuns

integer

The number of canceled runs.

0

successRate

number

The success rate, ranging from 0 to 1.

1.0

avgElapsedMs

integer

The average execution duration in milliseconds.

2500

totalProcessedRows

integer

The total number of processed rows.

1500000

totalProcessedBytes

integer

The total number of processed bytes.

5368709120

totalOutputRows

integer

The total number of output rows.

1200000

totalOutputBytes

integer

The total number of output bytes.

3221225472

committedWatermark

integer

The committed watermark in UNIX seconds.

1735660800

scheduleLagSeconds

integer

The scheduling lag in seconds, calculated as now minus the watermark.

120

timeSeries

array<object>

The time series data.

object

The time series data points.

timestamp

integer

The start timestamp of the time bucket in UNIX seconds.

1735574400

runs

integer

The number of runs.

5

succeededRuns

integer

The number of successful runs.

5

processedRows

integer

The number of processed rows.

100000

processedBytes

integer

The number of processed bytes.

536870912

outputRows

integer

The number of output rows.

80000

outputBytes

integer

The number of output bytes.

322122547

avgElapsedMs

integer

The average execution duration in milliseconds.

2500

Examples

Success response

JSON format

{
  "requestId": "9ACFB10A-1B2C-3D4E-5F6G-7H8I9J0K1L2M",
  "pipelineName": "my-pipeline",
  "startTime": 1735574400,
  "endTime": 1735660800,
  "granularity": "Hour",
  "summary": {
    "totalRuns": 44,
    "succeededRuns": 44,
    "failedRuns": 0,
    "cancelledRuns": 0,
    "successRate": 1,
    "avgElapsedMs": 2500,
    "totalProcessedRows": 1500000,
    "totalProcessedBytes": 5368709120,
    "totalOutputRows": 1200000,
    "totalOutputBytes": 3221225472,
    "committedWatermark": 1735660800,
    "scheduleLagSeconds": 120
  },
  "timeSeries": [
    {
      "timestamp": 1735574400,
      "runs": 5,
      "succeededRuns": 5,
      "processedRows": 100000,
      "processedBytes": 536870912,
      "outputRows": 80000,
      "outputBytes": 322122547,
      "avgElapsedMs": 2500
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.