Get task execution overview¶
View the number of task executions in the current workspace in the last 7 days, including running, completed, failed and pending.
GET $CLOUDSIGMA_API_BASE/dashboard/task-execution-overview
Before you call¶
Configure the CloudSigma regional endpoint and authentication before calling. The endpoint, credentials, workspace, and resource IDs must belong to the same region. First confirm the target workspace you want to view. Prepare personal access token and workspace ID that have access rights to the workspace.
Request parameters¶
Replace $CLOUDSIGMA_API_KEY, $WORKSPACE_ID in the example with actual values.
curl "$CLOUDSIGMA_API_BASE/dashboard/task-execution-overview" \
-H "X-API-Key: $CLOUDSIGMA_API_KEY" \
-H "X-Workspace-ID: $WORKSPACE_ID"
X-API-Key in the request header passes in the personal access token. X-Workspace-ID specifies the target workspace.
Successful response¶
{
"code": "OK",
"msg": "OK",
"data": {
"running": 2,
"success": 18,
"failed": 1,
"pending": 3,
"total": 24,
"window_days": 7,
"since": "2026-08-14T09:00:00Z",
"until": "2026-08-21T09:00:00Z"
}
}
Field |
Type |
Description |
|---|---|---|
|
integer |
The number of running tasks. |
|
integer |
Number of tasks completed. |
|
integer |
The number of failed tasks. |
|
integer |
The number of tasks to run. |
|
integer |
The total number of tasks within the statistics window. |
|
integer |
The number of days in the statistics window. Not less than -2147483648. Not larger than 2147483647. |
|
string |
Statistics window start time. |
|
string |
The end time of the statistical window. |
When you need to view specific SQL or operation records, use Query SQL execution record or Query operation log.
Error response¶
{
"code": "ErrServer",
"msg": "服务器内部错误"
}
Field |
Type |
Description |
|---|---|---|
|
string |
error code. |
|
string |
error message. |