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.

HTTP
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.

Shell
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

JSON
{
  "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

data.running

integer

The number of running tasks.

data.success

integer

Number of tasks completed.

data.failed

integer

The number of failed tasks.

data.pending

integer

The number of tasks to run.

data.total

integer

The total number of tasks within the statistics window.

data.window_days

integer

The number of days in the statistics window. Not less than -2147483648. Not larger than 2147483647.

data.since

string

Statistics window start time.

data.until

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

JSON
{
  "code": "ErrServer",
  "msg": "服务器内部错误"
}

Field

Type

Description

code

string

error code.

msg

string

error message.

Last updated on